I tried to execute java sources NppExec using the following NP script:
SET jc = C:\Programme\Java\jdk1.6.0_14\bin\javac.exe
SET jr = C:\Programme\Java\jdk1.6.0_14\bin\java.exe
SET name = $(CURRENT_DIRECTORY)\$(NAME_PART)
"$(jc)" "$(FULL_CURRENT_PATH)"
"$(jr)" "$(name)"
UNSET jc
UNSET jr
UNSET name
But all the console replies is:
SET jc = C:\Programme\Java\jdk1.6.0_14\bin\javac.exe
CreateProcess() failed
SET jr = C:\Programme\Java\jdk1.6.0_14\bin\java.exe
CreateProcess() failed
SET name = C:\Learning\JavaEclipse\HelloWorldApp
CreateProcess() failed
"$(jc)" "C:\Learning\JavaEclipse\HelloWorldApp.java"
CreateProcess() failed
"$(jr)" "$(name)"
CreateProcess() failed
UNSET jc
CreateProcess() failed
UNSET jr
CreateProcess() failed
UNSET name
CreateProcess() failed
Can anybody tell me the fastest/simplest way (one click) how to compile and run java source files in NP++?
This seems to work much easier and straightforward in "TextPad", but I like NP++ more...
Thanx for help
Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is very strange, the script is OK and works OK for me. Such problems may happen only if you are using very old version of NppExec or using ANSI version of NppExec with Unicode input files (???).
Anyway, you can download latest version of NppExec.dll here: https://sourceforge.net/project/showfiles.php?group_id=189927&package_id=224034
The latest one is v0.3.0. Also you can wait a few days to download the next release - v0.3.1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not sure on how to do it using Notepad++ but instead I would suggest you to use Eclipse or Netbeans IDE for Java development, they have everything from compilation to debugging.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello NP++ forum,
I tried to execute java sources NppExec using the following NP script:
SET jc = C:\Programme\Java\jdk1.6.0_14\bin\javac.exe
SET jr = C:\Programme\Java\jdk1.6.0_14\bin\java.exe
SET name = $(CURRENT_DIRECTORY)\$(NAME_PART)
"$(jc)" "$(FULL_CURRENT_PATH)"
"$(jr)" "$(name)"
UNSET jc
UNSET jr
UNSET name
But all the console replies is:
SET jc = C:\Programme\Java\jdk1.6.0_14\bin\javac.exe
CreateProcess() failed
SET jr = C:\Programme\Java\jdk1.6.0_14\bin\java.exe
CreateProcess() failed
SET name = C:\Learning\JavaEclipse\HelloWorldApp
CreateProcess() failed
"$(jc)" "C:\Learning\JavaEclipse\HelloWorldApp.java"
CreateProcess() failed
"$(jr)" "$(name)"
CreateProcess() failed
UNSET jc
CreateProcess() failed
UNSET jr
CreateProcess() failed
UNSET name
CreateProcess() failed
Can anybody tell me the fastest/simplest way (one click) how to compile and run java source files in NP++?
This seems to work much easier and straightforward in "TextPad", but I like NP++ more...
Thanx for help
Alexander
This is very strange, the script is OK and works OK for me. Such problems may happen only if you are using very old version of NppExec or using ANSI version of NppExec with Unicode input files (???).
Anyway, you can download latest version of NppExec.dll here:
https://sourceforge.net/project/showfiles.php?group_id=189927&package_id=224034
The latest one is v0.3.0. Also you can wait a few days to download the next release - v0.3.1.
I am not sure on how to do it using Notepad++ but instead I would suggest you to use Eclipse or Netbeans IDE for Java development, they have everything from compilation to debugging.
Works for me, using N++ v5.4.3u and NppExec v0.3 RC1u. Perhaps upgrading will fix?
CChris
If you are able to compile thru the PC cmd prompt this will do the
same but with in the Notepad++ environment.
1. (after code is saved) press f6 // will bring up Execute dialog
2. type: // will auto-complete after (
cd “$(CURRENT_DIRECTORY)”
javac $(FILE_NAME)
java $(NAME_PART)
pressing enter after each command // will bring up a console and execute
3. save for future use
4. press ok