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  
  [SOLVED] Deployment to JAR [urgent :(]  (Read 692 times)
0 Members and 1 Guest are viewing this topic.
Offline Rockin

JGO n00b
*

Posts: 2



« on: 2008-06-24 18:38:21 »

Ok, I opened my eyes wider, and the instructions here do work: http://www.java-gaming.org/topics/how-to-getting-started-with-jogl/1474/60/view.html
The tip about setting the current path using "." was crucial  Tongue

/////////////////////
Hello everybody,

I have an already working JOGL project in Eclipse.

I want to be able to deploy my project to jar so I can run it on other computers. That's why I haven't put the jogl files (jar & dll) in the program files folder, but I have configured Eclipse to use those specific files when it builds this project. Everything works fine from Eclipse.

However, when I go to File>Export.. and choose export to JAR, the JAR gets exported. But when I want to run the app from the command line: java -jar project.jar it gives me a NoClassDefFoundError for GLEventListener.

I thought that is the project works in Eclipse, it should be a breeze to make it work as a JAR. I'm so stupid for not testing it until now and there are only 7 hours left until I have to give it to school. It's also 1.30 a.m here, so I maybe it's a really simple solution that I don't see.

Any idea is welcome!
Offline Rockin

JGO n00b
*

Posts: 2



« Reply #1 on: 2008-06-24 18:55:50 »

Update: I tried to point the vm to the libraries using Djava.library.path and classpath options.
Still nothing  persecutioncomplex
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.089 seconds with 21 queries.