<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><br>
---------- Bug Summary ----------- <br>can not Call Scilab-6.0.0 in Eclipse Application <br><br>
<br>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - can not Call Scilab-6.0.0 in Eclipse Application"
href="http://bugzilla.scilab.org/show_bug.cgi?id=15466#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - can not Call Scilab-6.0.0 in Eclipse Application"
href="http://bugzilla.scilab.org/show_bug.cgi?id=15466">bug 15466</a>
from <span class="vcard"><a class="email" href="mailto:51164500068@stu.ecnu.edu.cn" title="Chunlin Guan <51164500068@stu.ecnu.edu.cn>"> <span class="fn">Chunlin Guan</span></a>
</span></b>
<pre>(In reply to Clement DAVID from <a href="show_bug.cgi?id=15466#c1">comment #1</a>)
<span class="quote">> 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 <a href="https://help.scilab.org/javasci_faq_v2">https://help.scilab.org/javasci_faq_v2</a> .</span >
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 <span class=""><a href="attachment.cgi?id=4674" name="attach_4674" title="steps to test call scilab in java project and plugin project">attachment
4674</a> <a href="attachment.cgi?id=4674&action=edit" title="steps to test call scilab in java project and plugin project">[details]</a></span>.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>