First of all I'm running Ubuntu 9.10
I have edited the / etc / environment file Look like:
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 "Classpace =" / home / travis / frees / lib / frits.jar: / home / travis / frites / leeb / jspa.ager: . "
I then run" source / etc / environment ", to ensure that changes are included. Then I try to compile my simple test program by using it:
javac Test.java
It throws some errors, but when I compile it:
Javac-cp /home/travis/freetts/lib/freetts.jar:/home/travis/freetts/lib/jsapi.jar:. Test.Java
It just works fine, it leads me to believe that JavaScript is not seeing the ClassSpace environment variable for some reason? I can unite it and everything in the terminal:
Counterclass $ CLASSPATH gives me what I have kept.
Any help on this will be highly appreciated.
Do you have I think you do not have to set export
in the / etc / environment
Put? / P> Export 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" Export CLASSPATH = "/ home / travis / freetts / lib / freetts.jar: /home/travis/freetts/lib/jsapi.jar: . "
CLASSPATH
before the script source, and so you are only setting a local variable. Here may be an example:
Superman @ Metro: ~ $ z = foo # for this Shell Superman @ Metro Set: ~ $ echo $ Z foo superman @ Metro: ~ $ / bin / bash superman @ Metro: ~ $ echo $ Z # Sub-processing is not set to Superman @ Metro: ~ $ exit exit superman @ metro: ~ $ export Z # is part of the Environment Superman on the export, @ Metro: ~ $ / bin / bash superman @ metro: ~ $ echo $ Z # and is now visible for sub-processes foo superman @ metro: ~ $ exit exit superman @metro: ~ $ export Export export: Export [-NF] [name [= value] ...] or export-P names are then marked for automatic export in the command environment. If -f option is given, see the NAME function. If no name has been given, or if '-p' is given, then a list of all the names exported in this shell has been printed. '-n' argues that it means to remove the exported property from the later names. A log of '-' disables further processing processing
Comments
Post a Comment