Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Wits end - UnsatisfiedLinkError no jogl in java.library.path  (Read 1836 times)
0 Members and 2 Guests are viewing this topic.
Offline Kakashi266

Jr. Member
**

Posts: 55



« on: 2010-04-13 21:19:42 »

I'm using jogl 1.1.1a. My program was actually working perfectly about 2 hours ago. It worked in class. Then I shut down, drove home, started up, and now it doesn't work.

What gets me is that a sample program also using the same libraries does work.

I'm using Netbeans 6.7.1. It will compile and run just fine in the IDE. But when I build the jar, it does nothing. And yet it did just a few hours ago. I've been scouring the internet for hours looking for something helpful, but there's nothing. Any help?

Offline Nate

JGO Neuromancer
****

Posts: 1063
Medals: 30


mooooo


« Reply #1 on: 2010-04-14 04:49:39 »

UnsatisfiedLinkError means it can't find the native libraries. Put them in the working directory on Windows. Otherwise, put them in a directory and add -Djava.library.path=/path/to/directory to you VM arguments.

Offline Kakashi266

Jr. Member
**

Posts: 55



« Reply #2 on: 2010-04-14 12:42:05 »

Otherwise, put them in a directory and add -Djava.library.path=/path/to/directory to you VM arguments.

I should mention that I tried that. It didn't work.

Games published by our own members! Go get 'em!
Offline Nate

JGO Neuromancer
****

Posts: 1063
Medals: 30


mooooo


« Reply #3 on: 2010-04-14 20:03:09 »

Well, that is how loading native libraries in Java works. If it didn't work, you must have made a mistake.

Wait, you said "now it doesn't work" and as a JAR "it does nothing". Post errors if you get them, otherwise use System.out.println to determine where execution gets stuck.

Offline Knetic

JGO n00b
*

Posts: 3



« Reply #4 on: 2010-04-14 21:28:04 »

It might not be the native libraries. If it works in your IDE and not in a jar, it might be the JOGL jars (gluegen-rt and jogl), which either have to be classpath'd or put in java.home/lib/ext.
Offline cylab

JGO Kernel
*****

Posts: 1940
Medals: 27



« Reply #5 on: 2010-04-15 06:57:50 »

Nah, it is the natives. It probably works in the IDE because of the Netbeans OpenGL Pack. Just do as Nate say: post full and precise error messages and the steps you took to produce them.

Mathias - I Know What [you] Did Last Summer!
Offline Kakashi266

Jr. Member
**

Posts: 55



« Reply #6 on: 2010-04-15 20:41:27 »

Well, I sorta solved it with advice I got from Reddit. Frankly, I have no idea how I did it. According to hours upon hours of research, I made absolutely no mistakes (I quintuple+ checked everything).

EDIT - Thanks for the suggestions though- forgot to say that.

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.091 seconds with 18 queries.