[scilab-Users] Re: Scilab in Eclipse

Mathieu Dubois mathieu.dubois at limsi.fr
Wed May 9 12:43:14 CEST 2012


On 05/09/2012 09:47 AM, Tima wrote:
> Hi,
> Thanks for your reply ^^
>   I try it from me, but Eclipse, always, don't know SCI variable!
> You define the variable in /etc/bash.bachrc , right?
No I define them from the shell in which I launch eclipse.
If you define them in /etc/bash.bachrc you have to start a new 
interactive shell otherwise they are not set.
>
> I tried with another method, by define a makefile where I put this lines:
> ********************
> /SCI = /usr/share/scilab
> CLASSPATH =
> $(SCI)/modules/javasci/jar/org.scilab.modules.javasci.jar:$(SCI)/modules/types/jar/org.scilab.modules.types.jar
> LIB_PATH = /usr/lib/scilab
> all:
> 	javac -cp $(CLASSPATH) Example1.java
> 	java -cp $(CLASSPATH). -DSCI=$(SCI) -Djava.library.path=$(LIB_PATH)
> Example1/
> ********************
>
> but when I do* make all*, it appears:
>
> ******************
> /Exception in thread "main" java.lang.NoClassDefFoundError: Example1
> Caused by: java.lang.ClassNotFoundException: Example1
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: Example1. Program will exit.
> make: *** [all] Error 1/
>
> ******************
>
>
> there is something missing in my makefile ??
No idea here.

> Help Please! Really, It make me stuck!!
> Regards,
> Tima
>
> --
> View this message in context: http://mailinglists.scilab.org/Scilab-in-Eclipse-tp3961649p3973422.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> users-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/
>




More information about the users mailing list