I'm not sure this is the right place to post this but here's my issue:
I've been trying to wrap a processing sketch into an exe using launch4j. The problem is that I get an error: "Could not load the main class: calc. Program will exit" when I run the exe.
I believe the problem is somewere in the classpath. I have:
Main Class: calc
Classpath: core.jar
core.jar and calc.jar are in the same folder, as is the xml file
my launch4j generated xml file is:
Code:<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>C:\calc.jar</jar>
<outfile>C:\c.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>false</customProcName>
<stayAlive>true</stayAlive>
<manifest></manifest>
<icon></icon>
<classPath>
<mainClass>calc</mainClass>
<cp>core.jar</cp>
</classPath>
<jre>
<path></path>
<minVersion>1.1.1</minVersion>
<maxVersion>1.9.1</maxVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>
and my error output is:
Code:java.lang.NoClassDefFoundError: processing/core/PApplet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.lang.ClassNotFoundException: processing.core.PApplet
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
Exception in thread "main"
I know processing uses a modified version of launch4j, so this should work. I'm not exactly sure what's wrong. I've tried setting the main class to Applet, and PApplet and still nothing.
Any hints would be greatly appreciated.