2007年4月9日 星期一

How to set up UltraEdit to work with a Java Compiler

How to set up UltraEdit to work with a Java Compiler

How to set up UltraEdit to work with Java compiler

  1. UltraEdit may be downloaded for free (45 day evaluation only) from http://www.ultraedit.com/.
    For your convenience it is made available on the network drive H:. You may use it for 45 days after you run it the first time from your account. After that time the program will refuse to work anymore.
  2. Start UltraEdit
  3. Open menu: Advanced/Tool Configuration
  4. Type in the following information to the dialog box which pops up

    For your convenience you may want to copy and paste one of the following lines into the command line text filed. Select appropriate one:
    C:\Progra~1\JAVA\bin\javac.exe -deprecation -O -classpath . %n%e
    G:\java\java2\bin\javac.exe -deprecation -O -classpath . %n%e
    G:\java\java1\bin\javac.exe -deprecation -O -classpath . %n%e

    You may choose to remove the optimization option -O or another option that enables checking against using deprecated features of old Java -deprecation. The latter, however, is not recommended
  5. Then press INSERT button.
  6. Type in the following information to the dialog box which is still being displayed.
  7. Once again, for your convenience you may want to copy and paste one of the following lines into the command line text filed. Select appropriate one:
    C:\Progra~1\JAVA\bin\java.exe -classpath . %n
    G:\java\java2\bin\java.exe -classpath . %n
    G:\java\java1\bin\java.exe -classpath . %n
  8. Then press INSERT button again.
    To modify the settings already created double click on the item listed in the lower box you want to change, modify the dialog box, and press REPLACE. Warning: pressing INSERT would duplicate the entry. Only the new entry has the modified settings.

The meaning of the %-letter

  • %f states for the complete file name of a currently edited file
  • %p states for the current directory (it might contain space characters)
  • %n states for the file name only.

Do not use capitalized %-letter because it results in a truncated old DOS (8+3 character) file name and cannot be recognized correctly by the Java compiler because of original 4-letter .java extension.

Amendments to your system

  • The actual location of your Java software may wary
  • The location used in this example is for my hard drive which is C:\progra~1\java\bin\
  • The default location of JDK2 for the EE computer labs is G:\java\java2\bin\

沒有留言: