简体   繁体   English

Notepad ++当前目录

[英]Notepad++ Current directory

I'm using notepad++ to as editor to my java program. 我正在使用notepad ++作为Java程序的编辑器。 it is installed in windows.. and i'm doing a program to UNIX (server).. 它安装在Windows中。我正在对UNIX(服务器)进行程序。

well i used NppFTP plugin to connect my notepad++ to server remotely.. in that case, i can edit java file from server through my machine. 好吧,我使用NppFTP插件将我的notepad ++远程连接到服务器。在这种情况下,我可以通过本机从服务器编辑Java文件。

i'm also using NppExec plugin to compile my java file. 我还使用NppExec插件来编译我的java文件。 compiling my java using NppExec in my machine is easy. 在我的机器上使用NppExec编译Java很容易。

The problem is i cant set the directory to server. 问题是我无法将目录设置为服务器。 current directory of my notepad++ is location of installed notepad++ example C:\\Program Files\\Notepad++.. I'm configuring this location through cd command.. 我的notepad ++的当前目录是已安装的notepad ++的位置,例如C:\\ Program Files \\ Notepad ++ ..我正在通过cd命令配置此位置。

compiling java program in server (UNIX) through NppExec is so hard to do, since i can't configure the directory to path of server.. is it possible to used NppExec plugin to compile java program from UNIX through my windows?? 通过NppExec在服务器(UNIX)中编译Java程序是如此困难,因为我无法将目录配置为服务器路径。.是否可以使用NppExec插件通过Windows从UNIX编译Java程序? thanks a lot 非常感谢

Short answer is no, not easily. 简短的回答是不,不容易。 Your goal sounds like you want to use NppExec to compile your Java program on the remote Unix server. 您的目标听起来像是要使用NppExec在远程Unix服务器上编译Java程序。 All that NppExec can do is some basic commands PLUS it can run other programs. NppExec所能做的就是一些基本命令,加上它可以运行其他程序。 If you want to be configuring your Unix server and running any commands on it (including invoking the Java compiler or running your Java program) you should be using SSH. 如果要配置Unix服务器并在其上运行任何命令(包括调用Java编译器或运行Java程序),则应使用SSH。 Putty is one among many tools for this: 腻子是许多工具之一:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html上

In addition, while Java is cross-platform I would suggest compiling in just one place, probably in the environment you are most comfortable with. 另外,尽管Java是跨平台的,但我建议只在一个地方进行编译,可能是在您最熟悉的环境中进行。 For example, once you start including libraries in your code things can get complicated. 例如,一旦开始在代码中包含库,事情就会变得复杂。 IDEs are designed to help you with this and I might suggest going over to an IDE instead of using Notepad++. IDE旨在帮助您解决此问题,我建议您改用IDE,而不要使用Notepad ++。

What NppFTP is: 什么是NppFTP

It is just a simple add-in to use the FTP (and other) protocols. 这只是使用FTP(及其他)协议的简单插件。 The FTP protocol is only for getting files from point A to B and perhaps minimal directory management on a server. FTP协议仅用于从A点到B点获取文件,并且可能仅用于服务器上的最小目录管理。 It is technically possible to execute SSH commands with SFTP (FTP over SSH), but not implemented in the NppFTP plugin. 从技术上讲,可以通过SFTP(SSH上的FTP)执行SSH命令,但未在NppFTP插件中实现。

What NppExec is (from the documentation): NppExec是什么(来自文档):

  • NppExec is an intermediary between Notepad++ and external tool/compiler. NppExec是Notepad ++和外部工具/编译器之间的中介。 It allows to run external tool/compiler directly from Notepad++. 它允许直接从Notepad ++运行外部工具/编译器。
  • NppExec is a Console window which can show the running process'es output, and can redirect the Console window's input to the running process (with some limitations). NppExec是一个控制台窗口,可以显示正在运行的进程的输出,并且可以将控制台窗口的输入重定向到正在运行的进程(有一些限制)。
  • NppExec is an interpreter of its own internal commands. NppExec是其内部命令的解释器。 NppExec can execute several commands one after another (so-called NppExec's script) from its "Execute..." dialog and can execute single command directly from its Console window. NppExec可以从其“执行...”对话框中依次执行几个命令(所谓的NppExec脚本),并且可以直接从其控制台窗口执行单个命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM