• 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: PWO - Newbie can't figger out eclipse....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PWO - Newbie can't figger out eclipse....


  • Subject: Re: PWO - Newbie can't figger out eclipse....
  • From: Sam loy <email@hidden>
  • Date: Fri, 1 Jul 2005 17:43:33 -0500

OK. Fixed that issue, but now when I run it, I get this error, that makes no sense to me, as it did build resulting in a Chap4App.woa file....

Exception in thread "main" java.lang.NoClassDefFoundError: com/apress/practicalwo/chap4app/Application
On Jul 1, 2005, at 5:09 PM, Chuck Hill wrote:


On Jul 1, 2005, at 12:58 PM, Sam loy wrote:


Okay...a bit irritated....
Trying to build the Chap4App from Practical Web Objects in eclipse, which - for some reason - EVERYONE says is da bomb.....I haven't even used xcode enough to understand why eclipse is SOOO great....but being the good little indian I am, I've decided to give it go.


:-)



I can build all the other apps from Practical WO just fine, and I've already worked thru several class path issues with chap 4 successfully, but I keep getting this error:

"The import com.apress.practicalwo.appserver cannot be resolved" in Application.java" Of course this leads to "PWOApplication cannot be resolved or is an invalid super class" error.

Adding this to my classpath doesn't help. The PWExampleApp is include as a Project, if I try to create a src folder in the Chap4App project it says "It already exist" in...of course...PWExampleApp....so....

If Eclipse know so much about this class - the project its in - the src directory its in -- etc....why the heck can't it use it to build Chap4App????


I suspect that you have somehow messed up the classpath while working through the other classpath issues you had in that chapter.  The jar file from PWOExampleApps needs to be in the libraries.  Check that it is.  The projects etc are just for build ordering and ensuring that prerequisites are built first.  The Libraries are all that matters for compiling.  I also found this aspect of Eclipse confusing at first.


Sam "Will ever be able to deploy a WO App?" Loy


Some day, grasshopper.

Chuck


-- 
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: PWO - Newbie can't figger out eclipse....
      • From: Chuck Hill <email@hidden>
References: 
 >PWO - Newbie can't figger out eclipse.... (From: Sam loy <email@hidden>)
 >Re: PWO - Newbie can't figger out eclipse.... (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Reference current session...common accessor ??
  • Next by Date: Re: PWO - Newbie can't figger out eclipse....
  • Previous by thread: Re: PWO - Newbie can't figger out eclipse....
  • Next by thread: Re: PWO - Newbie can't figger out eclipse....
  • Index(es):
    • Date
    • Thread