[scilab-Users] use scilab with existing java

Sylvestre Ledru sylvestre.ledru at scilab.org
Thu Nov 3 00:29:09 CET 2011


Le mercredi 02 novembre 2011 à 23:09 +0000, e-letter a écrit :
> On 02/11/2011, Sylvestre Ledru <sylvestre.ledru at scilab.org> wrote:
> >> The bash profile file contains:
> >>
> >> export JAVA_HOME=/usr/local/java/java/jre/bin/java
> > This declaration is wrong.
> > JAVA_HOME must point to a path which should be
> > /usr/local/java/java
> > here
> >
> 
> But this works for other java programs?
It should not.

Anyway, first, why are you not using Scilab official binaries ?

> > JAVA_HOME=/usr/local/java/java scilab
> > should start Scilab
> >
> 
> scilab didn't start, command terminal output:
> 
> /usr/local/java/java/jre/bin/java /usr/local/scilab/scilab/bin/scilab
> Exception in thread "main" java.lang.NoClassDefFoundError:
> .usr.local.scilab.scilab.bin.scilab
> Caused by: java.lang.ClassNotFoundException: .usr.local.scilab.scilab.bin.scilab
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
> Could not find the main class: /usr/local/scilab/scilab/bin/scilab.
> Program will exit.
Please use the exact command as I told you:
JAVA_HOME=/usr/local/java/java /usr/local/scilab/scilab/bin/scilab

Sylvestre




More information about the users mailing list