depth
Full Member
Offline
Posts: 114
[eclipse] export jar, Fat Jar, EclipseP5Exporter
Sep 12th , 2008, 9:45pm
hey all. i'm having a load of trouble getting my program out to an applet/application. it's a very simple app, basically just a bare-bones OPENGL program. i've tried three methods, and none work, though i get some different shades of failure with the different methods. details on my life's troubles follow. if anyone has been down this road before and has any suggestions, i'd be VERY thankful.... cheers, -e [eclipse Export Jar] exporting a jar via eclipse's built-in jar exporter, and running the jar from command line, i get: Exception in thread "main" java.lang.NoClassDefFoundError: processing/core/PApplet [Fat Jar] exporting a jar with Fat Jar, the jar launches, but hangs almost immediately (before loading the program), with the error: Error while running applet. java.lang.RuntimeException: Before using OpenGL, first select Import Library >opengl from the Sketch menu. i don't have 'import processing.opengl.*;' in my main class, because it tests fine from within eclipse (jogl's in my build path). regardless, even if i add it and recompile, i still have the same error. [EclipseP5Exporter > applet] exporting an applet with p5Exporter and running the created jar file, i get the same error as with the built-in jar exporter: Exception in thread "main" java.lang.NoClassDefFoundError: processing/core/PApplet [Eclipsep5Exporter > application] exporting an application with p5Exporter, and running the osx app from the command line, the app launches, but hangs in the same way as the Fat Jar, with no feedback in the command line. exporting an application with p5Exporter, and running the jar file within app/Contents/Resources/Java, i get the same error as with jars created by eclipse's jar exporter and p5Exporter's applet exporter: Exception in thread "main" java.lang.NoClassDefFoundError: processing/core/PApplet