help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java package install seems to be ok, but is NOT working.


From: Philip Nienhuis
Subject: Re: Java package install seems to be ok, but is NOT working.
Date: Thu, 24 Jan 2013 12:18:46 -0800 (PST)

Herdon wrote
> Thank you for the instructions. I followed them as precisely as I could,
> but obviously something is wrong.
> Here is what happened in Octave after I had done steps to remove java
> package installation:
> -------------------------------------------------------------------------------------------
> octave:3> setenv ("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03")
> octave:4> setenv ("PATH", [getenv("JAVA_HOME") '\bin' pathsep
> getenv("PATH")])
> octave:5> strsplit (getenv("PATH"), pathsep)
> ans =
> {
>   [1,1] = C:/Program Files/Java/jdk1.6.0_03\bin
>   ....(the rest of path is snipped)...
> }
> octave:6> system ("javac -version")
> javac 1.6.0_03
> ans = 0

OK, so the Java executables are in the PATH, which -given above commands-
implies that JAVA_HOME is set correctly.


> octave:7> pkg install -forge -auto -verbose java
> mkdir (C:\DOCUME~1\LOCALA~1\LOCALS~1\Temp\oct-2)
> untar (C:\Documents and Settings\localadmin\java-1.2.9.tar.gz,
> C:\DOCUME~1\LOCALA~1\LOCALS~1\Temp\oct-2)

?
Yeah.. where's the rest....


> For information about changes from previous versions of the java package,
> run 'news ("java")'.
> octave:8> javamem
> error: `java_invoke' undefined near line 65 column 8
> error: called from:
> error:   C:\Program
> Files\Octave362\Octave3.6.2_gcc4.6.2\share\octave\packages\java-1.2.9\javamem.m
> at line 65, column 6
> -------------------------------------------------------------------------------------------
> 
> Somehow it seems that pkg install command does not do very much, because
> there is only two lines of resulting information after that. In your
> example there was much much more!
> 
> Could it be that I should have never Java installed, or maybe there is
> just something wrong with my computer?

About the only remaining thing might be that your Java installation is
screwed up.

You've got path level 03 (1.6.0_03), I already got 33 (> 1 year old) and
AFAIK level 37 has been out for a while.
It's a good idea anyway to upgrade your Java JDK to the newest version, by
first uninstalling the current one and then installing the newer version.
Let's pray that it will solve your Java package problem.

Other than that...... I have no more suggestions... except for reinstalling
Octave.

Well that is, I have avoided spaces in various system paths: my
%Programfilesdir% = C:\Programs and where you have the IMO infinitely stupid
Windows default C:\Documents and Settings\ I simply have C:\Home\
But I never saw reports that spaces in those paths induce trouble, expect
when Octave is installed in C:\Program Files\  (you didn't, no?)

Philip






--
View this message in context: 
http://octave.1599824.n4.nabble.com/Java-package-install-seems-to-be-ok-but-is-NOT-working-tp4648763p4649080.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]