Carol Murphy wrote:Where your file is named javaee.jar, I have a file named j2ee.jar. Maybe the name of the file has something to do with it?
Carol Murphy wrote:Uhh, forgive me for asking, but did you put javaee.jar in your Classpath?
When I go to the link for Enterprise Edition Software Development Kit I see that they only have J6EE rather than J2EE. I hope that's okay. I do know that when manually complying these files use JAVAC with the appropriately supplied -cp parameter, the compile is successful. It's only ANT that is having a hard time complying and not seeing javaee.jar.
Carol Murphy wrote:Download the J2EE SDK(Java 2 Enterprise Edition Software Development Kit) from Sun, and install it. It is a supplement to the JDK you already have installed.
Do you mean setting it as an environment variable? When reading the ANT documentation, it mentions that the CLASSPATH should be left unset as mentioned in the Windows Note:.
Carol Murphy wrote:You need to include the javaee.jar in your classpath. ... You may need to add javvee.jar to your classpath variable.
I was able to verify that the javaee.jar file is good. I spent some time to familiarize myself with ANT and I discovered some interesting things about this problem. I used the command, which produced all of the options that ANT was passing to javac. When I manually constructed these options for this compilation I get the same error that ANT does:
Grasping at straws here, but did you look inside the copy of javaee.jar inside of your app to verify that it contains the files that ANT can't locate? Maybe the jar file was corrupted somehow?
Richard Broersma wrote:command, which produced all of the options that ANT was passing to javac. When I manually constructed these options for this compilation I get the same error that ANT does:
Richard Broersma wrote:
Since the javaee.jar in my lib dir is a direct (and repeated refreshed) copy of the javaee.jar in the glassfish lib directory, I suspect there is another reason why the compilation is failing. Could it be the modern versions of javaee.jar rely on peer jar file in the glashfish lib directory?