posted 19 years ago
Michelle,
First, you'll need to set an environment variable to point to your JDK install. Create the environment variable JAVA_HOME to point to the root of your install, i.e JAVA_HOME=C:\java\j2sdk1.4.2_04
Now, make sure you are running the latest version of Editplus (2.11); go to the tools menu and select "Configure user tools...".
Click "Group Name" and type "Java" then OK. Click "Add Tool>>", select "program", type "Compile" for the menu text. The command should be "%JAVA_HOME%\bin]javac.exe", and I use "-deprecation -classpath ./ $(FileName)" for the argument and "$(FileDir)" for the initial directory.
Check capture output and save open files. Compiler errors will appear in the pane below the editor. You can click on the error containing the line number to go to the offending line in the editor.
Now make a tool entry for "Run". It's a program tool; menu text is "Run"; command is "%JAVA_HOME%\bin\java.exe"; argument is "-classpath ./ $(FileNAmeNoExt)"; and initial directory is $(FileDir).
I usually have save open files and capture output selected. If you capture output, the programs output shows up in the pane below the editor. However, you can not provide data to your program from the keyboard if you capture the output. If your program requires keyboard input, uncheck capture output and the program will run in a command window.
I also set up a "Run GUI" program tool to run graphical programs. The command is "%JAVA_HOME%\bin\javaw.exe", argument is "-classpath ./ $(FileNameNoExt)" and initial directory is "$(FileDir). "Close window on exit" and "save open files are checked".
I also have a Javadoc command set up to javadoc all the source files. The command is "%JAVA_HOME%\bin\javadoc.exe", the argument is "-author -version *.java", initial directory is "$(FileDir)". Capture output and save open files are checked.
Finally, I have a show javadoc program tool. I'm using IE to display the files, so my command is "C:\Program Files\Internet Explorer\IEXPLORE.EXE" (you will need to browse for your browser executable if you use something different or it is not in the standard spot). The argument is "file://$(FileDir)/index.html", and the initial directory is "$(FileDir)". In this case, capture output is not checked.
Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>