Java Compile Howto

- Set environment variable JAVA_HOME and PATH (also add ANT_HOME for using ANT)

  • For Linux/Unix/Bsd environment
    • JAVA_HOME=/opt/jdk-1.5.0
    • ANT_HOME=/opt/ant-1.6.5
    • PATH=$JAVA_HOME/bin:$ANT_HOME/bin

- For Windows Start→Control Panel→System→Advanced→Environment variables

  • add new entry and enter JAVA_HOME in Variable name field
  • add path where java is installed in Variable value field
  • Similalrtly add an entry for ANT_HOME
  • Edit the users PATH statement or create a new entry for PATH if one does not exist. In the variable value field add %JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%


javaccompile.txt · Last modified: 2014/10/25 21:52 (external edit)
CC Attribution-Share Alike 3.0 Unported Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0