The Artima Developer Community
Sponsored Link

Java Answers Forum
Eclipse and JNI libraries

1 reply on 1 page. Most recent reply: Jun 22, 2005 8:26 AM by David Ramsey

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
David Ramsey

Posts: 34
Nickname: dlramsey
Registered: Apr, 2002

Eclipse and JNI libraries Posted: Jun 22, 2005 7:32 AM
Reply to this message Reply
Advertisement
I've been using Eclipse for a while and am growing more happy with it as I go along. However, recently I wanted to experiment with the Java 3D API. I can build a sample project from Sun and all Java files compile correctly both inside Eclipse and outside with Ant. I have the %JAVA_HOME%\bin directory in my path, which contains the Java 3D DLLs and the Java 3D jars are in the lib/ext directory as installed by Sun's own installer. The example starts and runs fine from an Ant task or from a batch file from the command line.

But inside Eclipse I get a java.lang.UnsatisfiedLinkError: no J3D in java.library.path exception. I'm using 3.1RC3 version of Eclipse and I've found no obvious way of setting the java.library.path to include these DLLs. I am sure that I am missing something very obvious but I have no idea what that is. Does anyone have a pointer for me on where to look to configure this? Obviously it can be done since Eclipse uses SWT DLLs itself.


David Ramsey

Posts: 34
Nickname: dlramsey
Registered: Apr, 2002

Re: Eclipse and JNI libraries Posted: Jun 22, 2005 8:26 AM
Reply to this message Reply
Nevermind! I figured it out. It seems the installer did not update the JRE in the JDK directory but did update the JRE installed in the C:\Program Files\Java directory. Manually copying the DLLs and jars to the proper folders fixed the problem.

Flat View: This topic has 1 reply on 1 page
Topic: Conversion af java  .class file into .dll file Previous Topic   Next Topic Topic: query

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use