This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am using CCSv5.3, and I need to use external packages in Rhino javascript. I need to include the .jar file in the classpath - but I could not find any option to do that. Could anyone please explain the process? The CCSv5 help shows how to include .jar files for Ant project and in Rhino I got only the option to include javascript libraries. I need to include the java packages.
Thanks in advance.
Hello,
Are you trying to launch rhino from the system command line? Or are you trying to use the scripting console?
thanks
ki
I am using the Scripting console. What I want to do is include jna.jar files - so that it can be accessed by the scripting console. I managed to include it in the Library path, but am unable to include it in the classpath.
It still does not work.
js:> Packages.com.sun.jna.NativeLibrary;
[JavaClass com.sun.jna.NativeLibrary]
js:> var c= NativeLibrary.getInstance("c");
ReferenceError: "NativeLibrary" is not defined.
js:> var c= Packages.com.sun.jna.NativeLibrary.getInstance("c");
java.lang.UnsatisfiedLinkError: Unable to load library '2': JNA native support (win32-x86/2.dll) not found in resource path (C:\ti\ccsv5\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar)
I cannot understand if it is being able to import the class, why cant it use it? Please Help. I am stuck badly.