• 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
Re: Can't find Application class at launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't find Application class at launch


  • Subject: Re: Can't find Application class at launch
  • From: Jean-François GUILLAUD <email@hidden>
  • Date: Wed, 02 Jun 2004 09:32:10 +0200
  • Organization: CRI - Universite de La Rochelle

Hi Allen,

Some ideas:

You may check that your classpath is properly defined. See in "YourApp".woa/Contents/"YourPlatform" folder. The classpath text file should start with:

<code>
# JVM              == java
# JVMOptions       ==
# JDB              == jdb
# JDBOptions       ==
# ApplicationClass == Application
APPROOT/Resources/Java/"YourApplication".jar
WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
etc...
</code>

You could also check that your jar file contains Application.class with:

<code>
jar tf "YourApplication".jar
</code>

If not, check if your Application.java file is selected in the Application Server target.


If your project is not too big, you could try to create a new one and add your sources. Sometimes that helps...


If none of this works, give your body a rest. ;-)

Regards.

Jeff



Allen Cronce a icrit :

Hi all,

I've got a very basic application that won't start. Here's what's in the log:

Can't load Application class, exiting...
java.lang.ClassNotFoundException: Application
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:68)

I had exactly this same error when I first wrote the application. I shook all the usual dead chickens to try and clear the problem (clean builds, deleting build folders, manually deleting, rebuilding and installing our custom frameworks, etc.) None of these attempts worked.

Ultimately what made it work was forcing a compile error in Application.java by removing a required import for one of our framework classes, fixing the compile error, then rebuilding. Unfortunately the problem is back and that particular magic spell is not working now.

Any suggestions as to how I resolve this problem? Note that I'm not above smearing my body with chicken blood and chanting if that would help.

Best,
--
Allen Cronce
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Can't find Application class at launch
      • From: Allen Cronce <email@hidden>
References: 
 >Can't find Application class at launch (From: Allen Cronce <email@hidden>)

  • Prev by Date: Problems launching a process
  • Next by Date: Re: Off Topic (Slightly) Missing Groups in Documentation Window xCode 1.2
  • Previous by thread: Can't find Application class at launch
  • Next by thread: Re: Can't find Application class at launch
  • Index(es):
    • Date
    • Thread