Program compiles, but does not run
Program compiles, but does not run
- Subject: Program compiles, but does not run
- From: Brigit Ananya <email@hidden>
- Date: Fri, 09 Jan 2009 10:57:53 -0800
Hi,
I am new to XCode, and I am trying to port a Java application from the PC
to the Mac. The program compiles, but does not run.
When I try to run the ...app, I get the message that the main class is
not specified, etc.
When I try to run the ...jar, I do not get the message that the main
class is not specified, but I do get the message that there is no
Manifest section for bouncycastle, etc.
Here are the detailed messages I get in the Console when I try to run the
program:
When I try to run the ...app, I get the following message:
1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253]
[LaunchRunner Error] No main class specified
1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253]
[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253]
Exception in thread "main" java.lang.NullPointerException
1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at
apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at
apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
When I try to run the ...jar, I do get the following message:
1/9/09 7:22:43 AM [0x0-0x8d08d].com.apple.JarLauncher[2262] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] Exception in
thread "main"
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277]
java.lang.SecurityException: no manifiest section for signature file
entry org/bouncycastle/asn1/DEREnumerated.class
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:377)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:231)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.util.jar.JarVerifier.processEntry(JarVerifier.java:233)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.util.jar.JarVerifier.update(JarVerifier.java:188)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.util.jar.JarFile.initializeVerifier(JarFile.java:325)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.util.jar.JarFile.getInputStream(JarFile.java:390)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:620)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.misc.Resource.cachedInputStream(Resource.java:58)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.misc.Resource.getByteBuffer(Resource.java:113)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.security.AccessController.doPrivileged(Native Method)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.lang.ClassLoader.loadClass(ClassLoader.java:316)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
I do specify the main class in both, the Manifest file and the Info.plist
file, in the correct way, "package.MainClass". Is there another
place where I need to specify it?
Why do I need org/bouncycastle/asn1/DEREnumerated.class, and how would I
have to specify it in Manifest?
Please help! Thanks!
Brigit Ananya
Ananya Systems
(408) 353-3000 business
(408) 313-3333 cellular
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden