ok so I put a Java program into Notepad++ (I know it works cuz I have an IDE and it works on there). so how do I get the program to run?
(I'm sorry, this is probably a really basic question, but I can't find out how to!!)
Thanks!! :D
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it a plugin or do you have to start it by a command??? Don't know what "put" means in this case.
If you would like to run a program by command, you could do this in two ways.
1. Go to menu and select "Run->Run...". Here you could type in your command. If you would like to start it with the current opened file, there are some macros available. See in FAQ of Notepad++ side.
2. There is a nice plugin developed by Vitaliy (DV__). It's a console like program called NppExec. You could type directly shell commands and organisate and start scripts. You don't need a batch file anymore to start more than one command.
To get this plugin visit: http://sourceforge.net/projects/npp-plugins/
Best Regards
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to run the PHP executable in NPPExec to do a syntax check. I have tried
npprun php -l $(FULL_CURRENT_PATH)
and
php -l $(FULL_CURRENT_PATH)
Note that php.exe is in my PATH, so shouldn't need the full path. This command will perform a syntax check of a PHP file
Assuming I get the above to run, I would like the output from the command to also be captured in nppexec's dialog
Is all this possible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry umm what I mean is I have a Java code in Notepad++. I want that program to run. I know on NetBeans (I use that at school), when I want to run my program, I click build and then run. And then it works. How do I do that on Notepad++??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, Notepad++ is not really an IDE as such. It's a powerful text editor. You would need your Java runtime to run your program, or perhaps you have your Java extension register to your Java runtime and can simply use one of the options that Jens mentioned above. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The extension is necessary (i.e. php.exe instead of just php). This behaviour is fixed in a new version 0.2 beta1 (or maybe 0.2 RC1 - it will depend on implemented features) which will be available on the next week.
When you run an executable file in NppExec directly (without prefix npp_run), then NppExec tries to redirect the output to its docked Console dialog.
When you use npp_run, then NppExec runs an executable file as external process and does not wait until this process returns.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok so I put a Java program into Notepad++ (I know it works cuz I have an IDE and it works on there). so how do I get the program to run?
(I'm sorry, this is probably a really basic question, but I can't find out how to!!)
Thanks!! :D
how to compile .java files with notepad++?
Take a java compiler and integrate it with console. Keep in mind, Notepad is not an IDE, it's more like a Notepad with syntaxhighlighting.
Best Regards
Jens
I used the old version before and i can compile it directly on NOTEPAD face, but now changed, i cant find the compile shortcut in this newest version.
Is it a plugin or do you have to start it by a command??? Don't know what "put" means in this case.
If you would like to run a program by command, you could do this in two ways.
1. Go to menu and select "Run->Run...". Here you could type in your command. If you would like to start it with the current opened file, there are some macros available. See in FAQ of Notepad++ side.
2. There is a nice plugin developed by Vitaliy (DV__). It's a console like program called NppExec. You could type directly shell commands and organisate and start scripts. You don't need a batch file anymore to start more than one command.
To get this plugin visit: http://sourceforge.net/projects/npp-plugins/
Best Regards
Jens
I am trying to run the PHP executable in NPPExec to do a syntax check. I have tried
npprun php -l $(FULL_CURRENT_PATH)
and
php -l $(FULL_CURRENT_PATH)
Note that php.exe is in my PATH, so shouldn't need the full path. This command will perform a syntax check of a PHP file
Assuming I get the above to run, I would like the output from the command to also be captured in nppexec's dialog
Is all this possible?
sorry umm what I mean is I have a Java code in Notepad++. I want that program to run. I know on NetBeans (I use that at school), when I want to run my program, I click build and then run. And then it works. How do I do that on Notepad++??
Well, Notepad++ is not really an IDE as such. It's a powerful text editor. You would need your Java runtime to run your program, or perhaps you have your Java extension register to your Java runtime and can simply use one of the options that Jens mentioned above. --Joel
what? I was so sure that Notepad++ was kinda like an IDE ... ok thanks though, I obviously misunderstood what I was previously told. thanks :D
For current version of NppExec you must type:
php.exe -l $(FULL_CURRENT_PATH)
The extension is necessary (i.e. php.exe instead of just php). This behaviour is fixed in a new version 0.2 beta1 (or maybe 0.2 RC1 - it will depend on implemented features) which will be available on the next week.
When you run an executable file in NppExec directly (without prefix npp_run), then NppExec tries to redirect the output to its docked Console dialog.
When you use npp_run, then NppExec runs an executable file as external process and does not wait until this process returns.