DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Can't remove j2ee.jar from build path
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Feb 2008
Default Can't remove j2ee.jar from build path - 02-08-2008, 03:19 PM

Eclipse 3.1.0 on Windows XP.

I can't find a way to remove a reference to the j2ee.jar file from my build path. I removed the jar file from the jre/lib/ext directory, but Eclipse "remembers" the file and displays an error saying the required library is missing.

My project contains no references to the j2ee library. I am able to compile and run the project on a Solaris machine that does not have the j2ee.jar file in the jre runtime library path. I think I put j2ee.jar in the jre library on my windows box early on in the development of the project, but I no longer use any classes from that library. The existence of j2ee.jar in the jre library has not caused me any problems until I began developing an email component, and used the javax.mail.* stuff. After I put mail.jar and activation.jar in the library path I'd get a NoClassDefFoundError when compiling in Eclipse. I searched the newsgroups and found that this problem occurs when both j2ee.jar and mail.jar are in the library classpath because both jars contain some of the same classes.

I can't find any way to remove the reference to j2ee.jar in the Eclipse build path configuration dialog box. I grepped the Eclipse install dir for any references to j2ee.jar, and searched the registry, thinking I could find where Eclipse stores settings like these, but came up with squat. Any help would be appreciated.

Thanks,
JoeZaloom
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Location: Chicago Land Area, USA
Default 02-12-2008, 08:46 PM

Okay, post the contents of .classpath and .project files in your project folder so we can take a look..

If the jar is not mentioned there than its the .metadata sub folder and files in yoru project folder
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building to chroot OR how to remove "built-in values" zmalex Eclipse 1 03-19-2009 08:54 PM
why aren't plugins in my build path? Greg.Dorval Eclipse 0 09-19-2008 03:54 PM
Does your Java/J2EE Resume Stand-Out? arulk Java 0 07-01-2008 10:50 PM
J2EE help walterw Java 7 04-02-2008 11:42 PM
Eclipse and j2ee preview MrMiagi Eclipse 6 03-11-2008 06:06 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com