• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems creating a .jar file from a project  RSS feed

 
Chris Blanchard
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We're using Eclipse, we can create a jar file fine and set the main entry point, but when we run it it says:

Exception in thread "main" java.lang.NoClassDefFoundError: /javax/media/opengl/GLEventListener

We're using opengl so that may be causing the problem as it can't find the dir or something but I think Eclipse is meant to sort that out.

Anyone got any ideas?

Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That leading "/" on the class name is wrong; someplace you've specified the main class with a leading slash, and it doesn't belong there.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jar export can't do much about the classpath you use at runtime, as far as I can tell.

What exactly do you think Eclipse should "sort out" for you?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!