[Bugzilla] [Bug 15466] Chunlin Guan has commented the bug

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Tue Mar 6 02:59:39 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=15466
--------- Bug Summary -----------
can not Call Scilab-6.0.0 in Eclipse Application

---------- Changed by ------------
51164500068 at stu.ecnu.edu.cn

---------- What changed ----------

--- Comment #3 from Chunlin Guan <51164500068 at stu.ecnu.edu.cn> ---
(In reply to Clement DAVID from comment #1)
> Hello Chunlin Guan and thanks for the report. This issue arise when you did not put the Scilab jars into the java classpath. Please configure it
> as described in https://help.scilab.org/javasci_faq_v2 .

Hi,David
Thank you for your suggestion.My question is that I can not call scilab when running as a plugin/OSGI. I do set scilab jars into my Classpath in my
laptop system variable.
I have set some system variables in my laptop as following.If I test a java project(call scilab),run as>Java Application, It can call scilab
successfully.

Classpath=.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;C:\Program
Files\scilab-6.0.1\modules\javasci\jar\org.scilab.modules.javasci.jar;C:\Program Files\scilab-6.0.1\modules\types\jar\org.scilab.modules.types.jar
Path=C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\Program
Files\scilab-6.0.1\bin
SCI=C:\Program Files\scilab-6.0.1

Running as Java Application is not same as running as Eclipse Application.The classpath is not built the same way.I have try to put
org.scilab.modules.javasci.jar、 org.scilab.modules.types.jar in Classpath in Runtime. 

But when I launch the second eclipse,It tells me that if Scilab is used form java, make sure that your IDE(ex:Netbeans, etc)is not adding extra
dependencies which could not be found at runtime. The second console tells that java.lang.NoClassDefFoundError: org/scilab/modules/core/Scilab.

I think it due to the second plug-in project did't set path like C:\Program Files\scilab-6.0.1\bin and find javasci.dll, so it can not find related
jars.

But since I am familiar with plug-in project,I don't know how can I set path like  C:\Program Files\scilab-6.0.1\bin or add javasci.dll.

Look forward to your reply. Ps. you can see my steps of two samll project for testing call sclab in java project and plugin project in attachment
4674.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180306/d91d66f3/attachment.htm>


More information about the Bugzilla mailing list