jhandles on windows problem

View: New views
4 Messages — Rating Filter:   Alert me  

jhandles on windows problem

by Hall, Benjamin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd like to try out jhandles on the windows 3.0.1 version of Octave, but I
am having some trouble.

If I try to run octave with jhandles as the default graphics backend, Octave
seg-faults before a prompt appears.  The same happens when I try to execute
"pkg laod jhandles".  I believe that the default version of java on our
system is 1.4.2, but we've got 1.6.0 also available.  I've tried to setup my
environment to find 1.6, but none of my efforts have made any change in the
behavior.

Is there anything that I can try that might help me track down the problem?
Should I be able to run any of the .jar files outside of octave?

Thanks
Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: jhandles on windows problem

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, May 12, 2008 at 10:34 PM, Hall, Benjamin
<benjamin.hall@...> wrote:

> I'd like to try out jhandles on the windows 3.0.1 version of Octave, but I
>  am having some trouble.
>
>  If I try to run octave with jhandles as the default graphics backend, Octave
>  seg-faults before a prompt appears.  The same happens when I try to execute
>  "pkg laod jhandles".  I believe that the default version of java on our
>  system is 1.4.2, but we've got 1.6.0 also available.  I've tried to setup my
>  environment to find 1.6, but none of my efforts have made any change in the
>  behavior.
>
>  Is there anything that I can try that might help me track down the problem?
>  Should I be able to run any of the .jar files outside of octave?

You should make sure that Java 1.6 is the default one. Octave looks in
the Windows registry to discover the JVM, using the key
HKLM\software\javasoft\java runtime environment Currentversion

Normally, this key is updated automatically when you install a new
Java version.

Michael.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Parent Message unknown RE: jhandles on windows problem

by Hall, Benjamin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>-----Original Message-----
>From: Michael Goffioul [mailto:michael.goffioul@...]
>Sent: Tuesday, May 13, 2008 5:07 AM
>
>On Mon, May 12, 2008 at 10:34 PM, Hall, Benjamin
><benjamin.hall@...> wrote:
>> I'd like to try out jhandles on the windows 3.0.1 version of Octave, but
I
>>  am having some trouble.
>>
>>  If I try to run octave with jhandles as the default graphics backend,
Octave
>>  seg-faults before a prompt appears.  The same happens when I try to
execute
>>  "pkg laod jhandles".  I believe that the default version of java on our
>>  system is 1.4.2, but we've got 1.6.0 also available.  I've tried to
setup my
>>  environment to find 1.6, but none of my efforts have made any change in
the
>>  behavior.
>>
>>  Is there anything that I can try that might help me track down the
problem?

>>  Should I be able to run any of the .jar files outside of octave?
>
>You should make sure that Java 1.6 is the default one. Octave looks in
>the Windows registry to discover the JVM, using the key
>HKLM\software\javasoft\java runtime environment Currentversion
>
>Normally, this key is updated automatically when you install a new
>Java version.
>
>Michael.
>

It seems I don't have enough privileges to update the registry to point to a
newer version of java that is on our network (at least not yet...I am
looking into that battle too).  I poked a bit through the __java__.c to try
to see if there were any other tricks (for example, trying to start a 1.6
version of JVM before running octave), but I have been unsuccessful.

Would you consider allowing environment variables (such as JAVA_HOME) to
override the registry settings for locating the JVM?

Thanks again
Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: jhandles on windows problem

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, May 13, 2008 at 4:54 PM, Hall, Benjamin
<benjamin.hall@...> wrote:
>  It seems I don't have enough privileges to update the registry to point to a
>  newer version of java that is on our network (at least not yet...I am
>  looking into that battle too).  I poked a bit through the __java__.c to try
>  to see if there were any other tricks (for example, trying to start a 1.6
>  version of JVM before running octave), but I have been unsuccessful.
>
>  Would you consider allowing environment variables (such as JAVA_HOME) to
>  override the registry settings for locating the JVM?

This is probably a good solution to handle this kind of situation.
However, this will require a recompilation of the java package.
For the time being, there's no way to force a specific java
version.

Michael.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave