octave-maintainers
[Top][All Lists]
Advanced

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

Re: Java on MinGW


From: Philip Nienhuis
Subject: Re: Java on MinGW
Date: Wed, 12 Dec 2012 10:53:56 -0800 (PST)

Rik-4 wrote
> On 12/12/2012 02:39 AM, 

> octave-maintainers-request@

>  wrote:
>> On MinGW (gcc 3.5.2):
>>
>> ## W/o JAVA_HOME:
>> :
>> configure: WARNING: JAVA_HOME environment variable not initialized.
>> configure: WARNING: Auto-detection will proceed but is unreliable.
>> checking for java... /c/WINDOWS/system32/java
>> checking for javac... no
>> checking for jar... no
>> configure: WARNING: No javac compiler or jar executable found. Octave
>> will
>> not be able to call Java methods.
>> configure: creating ./config.status
>> :
>> Java home: C:\Programs\Java\jre6
>> Java JVM path:
>> Java CPPFLAGS:
>> Java libraries:
>> :
>>
>> ## W. JAVA_HOME /c/Programs/Java/jdk1.6.0_33
>> :
>> checking for java... /c/Programs/Java/jdk1.6.0_33/jre/bin/java
>> checking for javac... /c/Programs/Java/jdk1.6.0_33/bin/javac
>> checking for jar... /c/Programs/Java/jdk1.6.0_33/bin/jar
>> checking for Java version... 1.6.0_33
>> configure: WARNING: Library libjvm not found. Octave will not be able to
>> call Java methods.
>> :
>> Java home: /c/Programs/Java/jdk1.6.0_33
>> Java JVM path:
>> Java CPPFLAGS:
>> Java libraries:
>> :
>>
>> Looks similar to what happens on my Linux-Mageia 2 box; it finds the
>> executables OK but not the jvm.
> 12/12/12
> 
> Philip,
> 
> I'm not too surprised.  I have a FIXME note about uncertainties I had
> about
> MinGW and Cygwin platforms.
> 
> I can accommodate, but can you tell me what the name of the library to
> look
> for is?  On Unix systems it is libjvm.so.  On Cygwin or MinGW a little
> Google searching seems to show that it might be "jvm.dll", "jvm.dll.a",
> "libjvm.dll", "libjvm.dll.a".  I don't use either platform and have no
> idea.

Part of the problem may be that on Windows many settings are kept in the
registry. There is a Windows package in OF containing functions to invoke
registry calls, but we'll probably all agree that road is out of the
question.

In OF Java package's pre-install.m the logic for finding the jvm is
outlined. In <JAVA_HOME>/jre/lib/i386/ (on 32 bit systems) there's a file
jvm.cfg - AFAICS that may be all one needs to know.

In <JAVA_HOME>/bin/client/ resides the very jvm.dll you looked for. There's
another one in <JAVA_HOME>/bin/server/ but it has a a different size
(smaller). All adding to the confusion.
I don't know how the situation is on 64 b Windows, but later tonight I can
have a remote look on my PC at work (win7 64b).


> Secondly, can you open a shell and go to the top-level Octave source
> directory.  From there, run the following and report what it says.
> 
> cd build-aux
> java OctJavaQry JAVA_HOME
> java OctJavaQry JAVA_LDPATH
> java OctJavaQry JAVA_BOOTPATH
>  
> Finally, where is the jni.h include file?  Is it at $JAVA_HOME/include as
> it is for Linux platforms?  Is there a $JAVA_HOME/include/win32 directory
> that has jni_md.h?

Yes; and yes.


> --Rik
> 
> p.s. I checked in more changes today
> (http://hg.savannah.gnu.org/hgweb/octave/rev/eade542fedaa).  Please do 'hg
> pull; hg update; bootstrap' to generate the new configure

I'll have to look for the answers to your other questions, but currently my
MinGW dev box is occupied by my daughter; no way I dare to try now :-)

Later tonight I'll report.

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Re-Java-on-MinGW-tp4647811p4647813.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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