I just installed Ubuntu 12.04 on my computer and am trying to get IzPack working correctly to no avail. I've installed IzPack just fine, but setting the JAVA_HOME environment variable is causing problems.
I installed the JDK (I need to compile with IzPack), and am now trying to figure out which path is the correct path for my JAVA_HOME variable.
In /usr/lib/jvm I have the following:
- java-1.6.0-openjdk-amd64
- java-6-openjdk-common
- java-6-openjdk-amd64
- java-7-openjdk-amd64
My question is, what is the difference between these and which one is suppose to be my JAVA_HOME? Additionally, I've tried to set every single one of these to JAVA_HOME and when I try to compile with IzPack I get this error message:
Warning: JAVA_HOME environment variable is not set. If build fails because sun.* classes could not be found you will need to set the JAVA_HOME environment variable to the installation directory of java.
Also, the IzPack website says I need to set the following variables as well, if anyone could help me to find the correct paths for the following that would be great. Thanks!
- export JAVA_HOME=/usr/java/j2sdk1.4.2_06
- export JAVA_JAR=/usr/java/java_jar
- export JRE_HOME=/usr/java/j2sdk1.4.2_06/jre
- export CLASSPATH=/usr/java/j2sdk1.4.2_06/bin
- export PATH=/usr/java/j2sdk1.4.2_06/bin:/usr/java/j2sdk1.4.2_06/jre/bin:$PATH