- This topic has 3 replies, 3 voices, and was last updated 21 years, 6 months ago by
support-michael.
-
AuthorPosts
-
iiscroMemberHi,
I work under Windows2000 with Eclipse Platform Version: 2.1.1
I wrote an applet in an J2EE Web Module Project and in this applet I need a connection to a camera over a twain driver. For this I have to include the javatwain.jar-classes.
By editing the applet code, the environment knows these classes and completes my code – e.g. includes “import SK.gnome.twain.TwainException” where needed and so on.But running the Project always the execution is aborted and this error list appears:
java.lang.UnsatisfiedLinkError: no javatwain in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at SK.gnome.twain.TwainManager.<clinit>(TwainManager.java:46)
at ImageCaptSendApplet.m_ButtonAuthent_actionPerformed(ImageCaptSendApplet.java:188)
at ImageCaptSendApplet.access$0(ImageCaptSendApplet.java:184)
at ImageCaptSendApplet$1.actionPerformed(ImageCaptSendApplet.java:126)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)I copied this .jar-File into
– Project-Properties-Java Build Path-Librariesand, as the error appeared I put it there, too:
– <Project name>-Web Root-WEB-INF-lib
– <Project name>-Directory
…but nothing helped.
Where do I have to put the javatwain.jar – File so that it will be found??
Thanks for your help,
Constanze
Mark WalkerMemberIs there also a .dll file related to the driver? If so this needs to be put in the correct place.
I think it’s called javatwain.dll.This .dll file will need to be added to the library path of the server in which you’re running the app. This can be added from the property page of your app server connector in MyEclipse’s properties.
HTH. ❗
iiscroMemberHi,
thanks for your answer.
Yes, there is a javatwain.dll-file.
I gave the directory the .jar and .dll-Files are in to:Window-Preferences-MyEclipse-Application Servers-Tomcat5-Paths:
Append to library pathI rebuilded all, but the same error list appears…
Do you have another idea?
Constanze
support-michaelKeymasterI’m interested in seeing the launch command created by the Tomcat connector for your project. Try this:
1) launch Tomcat through the MyEclipse Connector
2) from the debug perspective right-click on the Tomcat process and view properties
3) post the launch properties/commandline for us to review.Michael
MyEclipse Support -
AuthorPosts