Skip to main content

A Fast doubt

6 replies [Last post]
devarde
Offline
Joined: 2007-04-11
Points: 0

Firstly, I want thank stylertim for answer my question on following thread of this forum: http://forums.java.net/jive/thread.jspa?threadID=28719&tstart=0. But I have another doubt that I put like a reply post to stylertim, but anyone answered:
Why if I add the Jars of Java 3D as a user library named Java3D my application doesn't work, and If I put the same jars, only adding like external jars, and not as user library my program runs? Is it a bug or a unfamiliarity of mine concering to a some characteristic of Eclipse?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
devarde
Offline
Joined: 2007-04-11
Points: 0

Sorry stylertim. I didn't answer your counterquestion because I forgot to click for watching this thread. In relation to what I wrote I just wanted experiment new things, and I thought put Java3D like a user library in Eclipse would do the work for reconfigure a application to use Java3D easier and more ordened because the PATH wouldn't grow up anymore. But for not bother me I've decided add the location of the dlls in the PATH. Though I would like to know what's going wrong. In NetBeans I didn't have any problem concerning it. Why ithappened?
It's just it. Thank you stylertim for all.

Best Regards
Edward

stylertim
Offline
Joined: 2006-05-04
Points: 0

>... I just wanted experiment new things ...

Hey Edward,

that's a sufficent argument for me. :)

I will check it out tomorrow and report me findings to you.

- Thomas

stylertim
Offline
Joined: 2006-05-04
Points: 0

Sorry Edward.

I didn't find a way to achieve what you desire. :(

Using the J3D as external JARs only works if the DLLs are located in the /bin folder of the JRE. For some reason my eclipse won't even let me create a user library. I guess sticking to the conventional way of using J3D and Eclipse is the best call to make.

- Thomas

devarde
Offline
Joined: 2007-04-11
Points: 0

Thank you. OK, I will accept your suggestion.

Best regards
Edward

stylertim
Offline
Joined: 2006-05-04
Points: 0

Hey Edward!

After I found out what was messing up my Eclipse - it was the co called VistaMizer, adding a Vista theme to XP - I tried to work this out again, since I was now able to create and use user libraries. And it works! :)

If you want to separate your J3D libs and DLLs from the JRE/JDK, you can, for example, do the following:

1. Put the Jars and the DLLs in one folder
2. Create a user library and add the Jars
3. After that, have a look at the lib in the "Java Build Path -> Libraries" section and expand the user library so you can see a the node: "Native library location". Double-click on it and set the folder where the DLLs reside.
4. Happily run your program.

For me it looks like this: http://www.uni-koblenz.de/~tkranz/j3d.jpg

This way you can preserve your Java3D libs and DLLs independently. I guess this settles this one. :)

- Thomas

stylertim
Offline
Joined: 2006-05-04
Points: 0

Hi Edward!

Sorry, but I didn't have the time to reply yet.

My counterquestion would be: Why would you add the J3D jars as a user library? If you simply install it the way the J3D team and I recommend, you won't run into any trouble.

If you still insist on doing it your way, I'm gonna check this problem out. If you insist... ;)

-Thomas