run neuron from a java class
Posted: Sun Jul 31, 2005 9:53 am
Hello,
I've tried to start neuron from a java class by doing the following
public class test
{
public static void main(String args[])
{
Neuron.execute(new String("print \"Hello, World\""));
}
}
but after successful compile, I get a runtime error :
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Exception in thread "main" java.lang.UnsatisfiedLinkError: execute
at neuron.Neuron.execute(Native Method)
at test.main(test.java:9)
I've compiled neuron with --with-nrnjava so I dont know what
vent wrong ..
also I could not find "NEURON + Java Interface programmer
reference" anywhere, it is originally linked in
nrn/src/nrnjava/nrnjava.html. If someone knows a good
information source dealing with neuron java coding or
examples I would be glad if he could point it out
(my goal is to start neuron from java and let it load and
execute a hoc file)
thanks in advance
peter
I've tried to start neuron from a java class by doing the following
public class test
{
public static void main(String args[])
{
Neuron.execute(new String("print \"Hello, World\""));
}
}
but after successful compile, I get a runtime error :
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Exception in thread "main" java.lang.UnsatisfiedLinkError: execute
at neuron.Neuron.execute(Native Method)
at test.main(test.java:9)
I've compiled neuron with --with-nrnjava so I dont know what
vent wrong ..
also I could not find "NEURON + Java Interface programmer
reference" anywhere, it is originally linked in
nrn/src/nrnjava/nrnjava.html. If someone knows a good
information source dealing with neuron java coding or
examples I would be glad if he could point it out
(my goal is to start neuron from java and let it load and
execute a hoc file)
thanks in advance
peter