Java package: Difference between revisions
Jump to navigation
Jump to search
→Make sure that the build environment is configured properly
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. | ||