Page 1 of 1
java and versions of NEURON above 5.6
Posted: Fri Dec 02, 2005 7:58 am
by AG
Dear all,
I recently tried to use java from inside the NEURON command line which works perfectly with NEURON 5.6. With the versions 5.7 and 5.8 of NEURON, the call
generates an error message concerning segmentation violation. Could somebody help me with this problem ? I use the J2SDK (j2sdk1.4.2_06) version of java. Thanks for your help !
AG.
Posted: Fri Dec 02, 2005 9:20 am
by hines
All kinds of things can go wrong due to an installation error, but a segmentation violation at that point is not supposed to be one of them. I'd like to try to reproduce the error.
Are you using linux?
Did you install from an rpm or from the sources?
Did you update the nrn.defaults file so that it points to the right Java Virtual machine? When you launch nrngui, does the banner mention that the jvm is loaded?
Posted: Fri Dec 02, 2005 10:45 am
by AG
Dear M. Hines,
I am working under windows XP pro and this is precisely what I see when trying to call the java command:
Code: Select all
NEURON -- Version 5.8 2005-5-2 13:16:27 rel5_7_159 (1)
by John W. Moore, Michael Hines, and Ted Carnevale
Duke and Yale University -- Copyright 2001
Created Java VM
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
oc>load_java("java.lang.String")
ERROR in nrnjava_init : neuron/NrnClassLoader not found
nrniv: Segmentation violation See $NEURONHOME/lib/help/oc.help near line 3
load_java("java.lang.String")
^
load_java("java.lang.String" )
oc>
to configure the JVM I used
Code: Select all
// The full pathname for the Java VM dynamically loadable
// library is specified here
// two examples for mswin on my machines are
*jvmdll: C:\j2sdk1.4.2_06\jre\bin\client\jvm.dll
When I use the older 5.6 version of NEURON, I obtain the usual result and it works. Is there any problem in my configuration ?
AG.