Java package: Difference between revisions

16 bytes added ,  1 October 2013
Line 116: Line 116:
:<pre>octave> system ('javac -version 2> nul')</pre>
:<pre>octave> system ('javac -version 2> nul')</pre>
:doesn't return zero (i.e., the command "javac -version" doesn't return normally), the command:
:doesn't return zero (i.e., the command "javac -version" doesn't return normally), the command:
:<pre>octave> setenv ("PATH", [ JAVA_HOME filesep bin pathsep getenv("PATH") ])</pre>
:<pre>octave> setenv ("PATH", [ getenv("JAVA_HOME"), filesep, "bin", pathsep, getenv("PATH") ])</pre>
:should do the trick. Watch out that 'getenv("PATH")' contains no spaces.
:should do the trick. Watch out that 'getenv("PATH")' contains no spaces.


Anonymous user