• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Difficulty with Java application: cannot find main class at run time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Difficulty with Java application: cannot find main class at run time
      • From: David Ewing <email@hidden>
  • Prev by Date: "distccsched" eating cpu, running hot
  • Next by Date: Re: "distccsched" eating cpu, running hot
  • Previous by thread: Re: "distccsched" eating cpu, running hot
  • Next by thread: Re: Difficulty with Java application: cannot find main class at run time
  • Index(es):
    • Date
    • Thread