Timothy Field wrote:
> This shouldn't be sent to help-octave anymore, sorry for the confusion.
>
>         I've never used or tested the java package under OS X, the Java
>         detection code in the configure script was donated by a OS X
>         user. The
>         best is to look at it (starts at line 322):
>         
> http://octave.svn.sourceforge.__net/viewvc/octave/trunk/__octave-forge/extra/java/src/__configure.base?revision=8029&__view=markup
>         
> <http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/java/src/configure.base?revision=8029&view=markup>
>
>         So basically under OS X, it expects java to be located at
>         /System/Library/Frameworks/__JavaVM.framework
>
>         But in this case, I think the most important message is the warning
>         about the Java version that is needed to be>= 1.5. Clearly the
>         configure test fails to detect your java version correctly.
>
>         Michael.
>
>
>     ??
>     Higher up in the messages I see:
>
>      >> checking for Java version... 1.6.0_31
>
>     ...so his Java version should be OK (it is even newer than mine).
>
>     Let's just wait and see what happens if he sets JAVA_HOME properly.
>
>     BTW Michael, do you think we could add preinstall.m with a check if
>     JAVA_HOME points <in the end> to the proper jvm, and to abort the
>     installation if it can't find it?
>     If that would work it would save users a lot of frustration with
>     half-baked Java package installations. Timothy (the OP) shows a fine
>     example of this in his postings.
>
>     Philip
>
>
> So I've tried to set the JAVA_HOME correctly, I found some great help here:
>
> http://decoding.wordpress.com/2010/02/26/how-to-set-the-java_home-variable-in-mac-os-x-snow-leopard/
>
> JAVA_HOME should now be set to
> '/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home' (Which I
> confirmed as the directory to the home for JDK), but I still get the
> same errors when I uninstall and try to reinstall the package.
>
> I've also tried 'setenv ("JAVA_HOME",
> "/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home");'
>
> Could you walk me through JAVA_HOME? Am I looking for a file or folder
> called something similar to JVM or JRE? Because if so I cannot find
> anything in the directory above, or in '/Developer/usr/bin'. Where
> should I be looking?

Only thing I know is that JAVA_HOME should resolve to something like
<JAVA_HOME>/jre/bin/client/
or
<JAVA_HOME>/jre/bin/server/
in which directory there should be a library file called jvm.dll or 
jvm.lib or jvm.so or jvm.la or jvm.whatever

Now, the java pkg expects that jvm.<> in .../client, so if you find it 
in .../server/ you should make a symlink in .../client/ pointing to the 
jvm library in .../server

A google shows up this:

http://developer.apple.com/library/mac/#releasenotes/Java/JavaSnowLeopardUpdate3LeopardUpdate8RN/NewandNoteworthy/NewandNoteworthy.html

(watch out for line break)
from where I note that JVMs should be in:

/Library/Java/JavaVirtualMachines or ~/Library/Java/JavaVirtualMachines

so perhaps you should make a dir structure /jre/bin/client with a 
symlink pointing to the JVM in one of those folders indicated above 
(possibly in some subfolders of it).

I have no access to a Mac or OSX, so I can't be of much help and you are 
basically on your own..... sorry.

Please keep us informed of your progress (or even lack thereof).

Philip


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to