Quantcast

use scilab with existing java

classic Classic list List threaded Threaded
7 messages Options
e-letter e-letter
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

use scilab with existing java

Readers,

The tarball was downloaded and expanded.

Java is installed at:

/usr/local/java/java/

The bash profile file contains:

export JAVA_HOME=/usr/local/java/java/jre/bin/java
PATH=$PATH:/usr/local/java/java/jre/bin:/usr/local/bin
export PATH

The libjava file is at:

/usr/local/java/java/jre/lib/i386/libjava.so

The scilab file was edited:

detect_java_vm() {

    proc="i386"

    # If the user has the variable JAVA_HOME in the ENV

    if test -n "$JAVA_HOME" ; then

        if test $SCIVERBOSE -ne 0; then
            echo "Using specified vm: $JAVA_HOME"
        fi

#        if test ! -x "$JAVA_HOME/bin/java" ; then
        if test ! -x "$JAVA_HOME" ; then
            echo "Cannot find $JAVA_HOME/bin/java"
            exit 1
        else
            JAVA_BINDIR=$JAVA_HOME/bin
        fi

        # Manage JRE & JDK because libjava.so and others are stored in the JRE
        if test -d $JAVA_HOME/jre; then
            JRE_HOME=$JAVA_HOME/jre
        else
            JRE_HOME=$JAVA_HOME
        fi

        # Configuring LD_LIBRARY_PATH for libjava.so libhpi.so and libxxxx.so

        JAVA_SHLIB="libjava.so"
#        LIBJAVA="$JRE_HOME/lib/$proc/$JAVA_SHLIB"
        LIBJAVA="$JRE_HOME/../../lib/i386/$proc/$JAVA_SHLIB"

Trying to start scilab causes an error:

/usr/local/scilab/scilab/bin/scilab

Could not load JVM dynamic library (libjava).
Error: libjvm.so: cannot open shared object file: No such file or directory
If you are using a binary version of Scilab, please report a bug
http://bugzilla.scilab.org/.
If you are using a self-built version of Scilab, update the script
bin/scilab to provide the path to the JVM.
The problem might be related to SELinux. Try to deactivate it.

Scilab cannot open JVM library.

Any help please?
sylvestre sylvestre
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: use scilab with existing java

Hello


Le mercredi 02 novembre 2011 à 22:37 +0000, e-letter a écrit :

> Readers,
>
> The tarball was downloaded and expanded.
>
> Java is installed at:
>
> /usr/local/java/java/
>
> 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

JAVA_HOME=/usr/local/java/java scilab
should start Scilab

FYI,
SCIVERBOSE=1 scilab
will give you some debug information.

Regards,
S


e-letter e-letter
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: use scilab with existing java

On 02/11/2011, Sylvestre Ledru <[hidden email]> 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?

> 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.

> FYI,
> SCIVERBOSE=1 scilab
> will give you some debug information.
>

Sorry but it is not understood how to use this command
sylvestre sylvestre
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: use scilab with existing java

Le mercredi 02 novembre 2011 à 23:09 +0000, e-letter a écrit :

> On 02/11/2011, Sylvestre Ledru <[hidden email]> 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

e-letter e-letter
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: use scilab with existing java

On 02/11/2011, Sylvestre Ledru <[hidden email]> wrote:

> Le mercredi 02 novembre 2011 à 23:09 +0000, e-letter a écrit :
>> On 02/11/2011, Sylvestre Ledru <[hidden email]> 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.
>

I assure you it does, for examples using jedit, freeplane, rssowl.

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

Because it wants to install extra java software and I have already
java installed.

>> > 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
>

That does not work:

JAVA_HOME=/usr/local/java/java /usr/local/scilab/scilab/bin/scilab

Could not load JVM dynamic library (libjava).
Error: libjvm.so: cannot open shared object file: No such file or directory
If you are using a binary version of Scilab, please report a bug
http://bugzilla.scilab.org/.
If you are using a self-built version of Scilab, update the script
bin/scilab to provide the path to the JVM.
The problem might be related to SELinux. Try to deactivate it.

Scilab cannot open JVM library.
Christophe-3 Christophe-3
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Copula

Hi,

Is there any copula toolbox in scilab?

Thanks
e-letter e-letter
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: use scilab with existing java

In reply to this post by e-letter
What is copula toolbox?
Loading...