[Bugzilla] [Bug 15475] New: I cannot call scilab 6.0.1 in Eclipse Application may be due to javasci.dll
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Tue Mar 6 05:44:01 CET 2018
http://bugzilla.scilab.org/show_bug.cgi?id=15475
--------- Bug Summary -----------
I cannot call scilab 6.0.1 in Eclipse Application may be due to javasci.dll
---------- Changed by ------------
51164500068 at stu.ecnu.edu.cn
---------- What changed ----------
bug_id, short_desc, product, version, rep_platform, op_sys, bug_status, bug_severity, priority, component, assigned_to, reporter, attachments.created
Bug ID: 15475
Summary: I cannot call scilab 6.0.1 in Eclipse Application may
be due to javasci.dll
Product: Scilab software
Version: 6.0.1
Hardware: (not used)
OS: Windows 7
Status: NEW
Severity: Minor
Priority: (field not used)
Component: Dynamic Link
Assignee: bugzilla.admin at scilab.org
Reporter: 51164500068 at stu.ecnu.edu.cn
Created attachment 4675
--> http://bugzilla.scilab.org/attachment.cgi?id=4675&action=edit
steps to test call scilab
BUG DESCRIPTION:
----------------
Firstly,I try to prove I can call scilab in a Java Project,it is succeed. I test java1 project(Java project), run as>Java Application, it's ok to
call scilab and I can get the result in console.
PS. To call scilab, I have set some system variables in my laptop.
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
Secondly,I try to call scilab in eclipse application, but it didn’t succeed.
1. I create a plugin project plugin1, choose "Hello world command" template.
2. plugin1> right click>new folder lib, add three jars about calling scilab.
3. In MANIFEST.MF>Runtime, Classpath, I add the jar from lib.
4. add call scilab code in SampleHandler.java like the picture
5. launch the second eclipse application
6. click the sample menu, the hello is shown , but the result should be called from scilab is not shown in console.
I think it is due to the path C:\Program Files\scilab-6.0.1\bin I didn't set in plugin project, so it can not find related jars.
where should I set ? In Environment when launch? or the error is caused by other reasons.
ERROR LOG:
----------
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.
java.lang.NoClassDefFoundError: org/scilab/modules/core/Scilab
at org.scilab.modules.javasci.Call_ScilabJNI.Call_ScilabOpen(Native Method)
at org.scilab.modules.javasci.Call_Scilab.Call_ScilabOpen(Unknown Source)
at org.scilab.modules.javasci.Scilab.open(Unknown Source)
at org.sun.plugin.test1.handlers.SampleHandler.execute(SampleHandler.java:23)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: java.lang.ClassNotFoundException: org.scilab.modules.core.Scilab cannot be found by org.sun.plugin.test1_1.0.0.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 48 more
HOW TO REPRODUCE THE BUG:
-------------------------
you can see my attachment, it includes my steps.docx
OTHER INFORMATION:
------------------
--
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/71f47b2f/attachment.htm>
More information about the Bugzilla
mailing list