Maybe this can help. The next solution adds these java tools to PN:
==javac current .java file
==javac -g current .java file
==debug class of current .java file
==debug jar containing class of current .java file [PN will ask the name of jar file]
==debug applet from current .java file [see below running applets in java files]
==run jar containing class of current .java
[PN will ask the name of jar file]
==run class of current .java file
==run applet in current .java file [see below running applets in java files]
==see java docs and tutorials.
**Note: for running applets from java files, write this code at the top of your java file:
/*
<HTML>
<BODY>
<APPLET CODE="YourApplet.class" ARCHIVE="YourFile.jar" WIDTH=100 HEIGHT=300></APPLET>
</BODY>
</HTML>
*/
this allows you to run appletviewer YourApplet.java and launch YourApplet.class in YourFile.jar without html files.
Also notice jar files aren't created with tools above - for this kind of processes I'd recommend write a make.bat file.
OK, here is the solution:
Backup and then open your UserTools.xml file with notepad (this file is in documents and settings\your username\program data\echo software\PN2\)
Then look for the tag block <scheme name="java> </scheme>and replace it by:
<scheme name="java">
<tool command="C:\Archivos de programa\Java\bin\javac.exe" flags="105" folder="%d" index="0" name="compile" params="%f" parsepattern="%f:%l:" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\javac.exe" flags="105" folder="%d" index="1" name="compile -debug" params="-g %f" parsepattern="%f:%l:" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\jdb.exe" flags="40" folder="%d" index="2" name="debug class" params="%n" parsepattern="" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\jdb.exe" flags="40" folder="%d" index="3" name="debug jar" params="-sourcepath .; -classpath %?.jar %n" parsepattern="" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\appletviewer.exe" flags="40" folder="%d" index="4" name="debug applet" params="-debug %f" parsepattern="" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\javaw.exe" flags="41" folder="%d" index="5" name="run jar" params="-classpath %?.jar %n" parsepattern="" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\javaw.exe" flags="41" folder="%f" index="6" name="run class" params="%n" parsepattern="" shortcut="0" />
<tool command="C:\Archivos de programa\Java\bin\appletviewer.exe" flags="41" folder="%d" index="7" name="run applet" params="%f" parsepattern="" shortcut="0" />
<tool command="c:\windows\explorer.exe" flags="40" folder="" index="8" name="java tutorial" params="C:\Archivos de programa\Java\tutorial\index.html" parsepattern="" shortcut="0" />
<tool command="c:\windows\explorer.exe" flags="40" folder="" index="9" name="java API" params="C:\Archivos de programa\Java\docs\api\index.html" parsepattern="" shortcut="0" />
</scheme>
Note: verify your java path. Mine is "C:\Archivos de programa\Java\bin"
If you don't have still the block <schemer name="java></scheme> just insert the code above inside <schemetools></schemetools>
No environment vars needed. And also the javac tools are configured to parse output, so you can easily find errors by clicking on them!.
I help it is usefull.