Difficulty with Java application: cannot find main class at run time
Difficulty with Java application: cannot find main class at run time
- Subject: Difficulty with Java application: cannot find main class at run time
- From: Christopher Henrich <email@hidden>
- Date: Thu, 20 Jan 2005 19:44:20 -0500
I am trying to compile and run a Java application, built with example
code for Daniel Selman's book _Java_ _3D_ _Programming_.
I am able to build the application, but at run time it fails with these
messages:
[LaunchRunner Error] The main class "AppearanceTest" could not be found.
[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Exception in thread "main" java.lang.NullPointerException
at apple.launcher.LaunchRunner.run(LaunchRunner.java:85)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.ja
va:52)
Executable “AppearanceTest” has exited with status 0.
Simpler applications, such as the "Hello World!" app that you get when
you initialize an XCode project, run.
In Selman's code, the main class is deeply nested in a package. This
is the only relevant difference that I can think of.
How do I tell XCode to arrange for the run time support to kmow how to
find the main class?
some details:
Hardware: dual 867 MHz PowerPC G4
OS: Mac OS X Version 10.3.7
Xcode version: 1.5
Java 1.4.2 installed.
Java3D downloaded from Apple - I think it is a port of Sun's Java 3D
1.3.1.
TIA for any help.
Chris Henrich
_______________________________________________
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