Post #198,905
3/16/05 1:16:06 AM
|
Having trouble configuring Eclipse for Java
Getting this: The project was not built since its classpath is incomplete. Cannot find the class file for javax.servlet.ServletException. Fix the classpath then try rebuilding this project. I've got the JRE System Library showing in the package explorer. Which, by the way, I can't figure out how to add more items to that list without creating a new project. From the command line, CLASSPATH is empty, so somewhere in Ant, Tomcat and/or JRE configs are settings that resolve where stuff is installed. But I can't figure out how to get Eclipse to find what it needs.
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #198,926
3/16/05 2:25:28 AM
|
Not having used it, a pure guess:
DrooK omnplains: From the command line, CLASSPATH is empty, Maybe that's the problem? so somewhere in Ant, Tomcat and/or JRE configs are settings that resolve where stuff is installed. Maybe the problem is that there aren't? (As in, if the CLASSPATH env-var is empty, *no wonder* the IDE thinks "the classpath is incomplete"...(?)) But I can't figure out how to get Eclipse to find what it needs. Have you tried setting the CLASSPATH environment variable before starting the IDE? Not that I have the fucking faintest; just guessing... HTH, anyway.
[link|mailto:MyUserId@MyISP.CountryCode|Christian R. Conrad] (I live in Finland, and my e-mail in-box is at the Saunalahti company.)
Your lies are of Microsoftian Scale and boring to boot. Your 'depression' may be the closest you ever come to recognizing truth: you have no 'inferiority complex', you are inferior - and something inside you recognizes this. - [link|http://z.iwethey.org/forums/render/content/show?contentid=71575|Ashton Brown]
|
Post #198,928
3/16/05 2:38:06 AM
|
Left a detail out of my description
From the command line, everything works. I can compile, test, deploy and serve everything just fine. It's only the IDE that is complaining about the lack of CLASSPATH.
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #198,954
3/16/05 9:22:52 AM
|
Re: Having trouble configuring Eclipse for Java
That stuff is in your Tomcat installation.
$TOMCAT_DIR/common/lib/servlet-api.jar, although for purposes of compilation you probably just want to add everything under the common directory.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #198,997
3/16/05 11:40:13 AM
|
But *how* do I add them?
I know where the files are, but I can't figure out how to tell Eclipse about them. When I created the project, I was able to define all the libraries that it would reference. I apparently missed a couple. Now I can't figure out how to add more references.
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #199,003
3/16/05 11:45:41 AM
|
Project Properties -> Java Build Path -> Libraries
Add external library.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #199,021
3/16/05 12:00:23 PM
3/16/05 11:20:08 PM
|
No luck
I don't see a 'Project Properties' menu item. I select the project in the Package Explorer and select properties and get "No property pages for JDoc". (JDoc is the name of the project.)
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
Edited by drewk
March 16, 2005, 11:20:08 PM EST
|
Post #199,144
3/16/05 11:26:07 PM
|
Sounds like a corrupted project or something.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #199,213
3/17/05 12:01:56 PM
|
Ok, since it's not working anyway ...
I'll delete it and try to re-import. I see that Eclipse has cvs integration. If I plan on using cvs would it be better to put it in cvs first check out from cvs straight into Eclipse, or import to Eclipse and create the repository from within Eclipse?
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #200,778
3/27/05 3:56:38 PM
|
Eclipse -> CVS
All the Eclipse project files will be where they are supposed to be and it is the easiest route by far.
|
Post #200,806
3/27/05 9:47:45 PM
|
Thanks for the feedback
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #199,010
3/16/05 11:51:09 AM
|
Have you forgotten how to
Point and Click?
/me ducks and runs for cover.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"] No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
|