View Single Post
  (#1 (permalink)) Old
joezaloom joezaloom is offline
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