Firstly, I am running Ubuntu 9.10
I edited the / etc / environment file to look like this:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20" CLASSPATH="/home/travis/freetts/lib/freetts.jar:/home/travis/freetts/lib/jsapi.jar:."
Then I run "source / etc / environment" to make sure the changes are included. Then I try to compile my simple test program using the following command:
javac Test.java
It produces some errors, but when I compile like this:
javac -cp / home / travis / freetts / lib / freetts.jar: /home/travis/freetts/lib/jsapi.jar :. Test.java
This works fine, does it make me believe that for some reason javac doesn't see the CLASSPATH environment variable? I can repeat it and everything in the terminal:
echo $ CLASSPATH gives me what I insert.
Any help on this would be greatly appreciated.
source share