*
The moose likes EJB and other Java EE Technologies and the fly likes error javac + javaee.jar : custom classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "error javac + javaee.jar : custom classpath" Watch "error javac + javaee.jar : custom classpath" New topic
Author

error javac + javaee.jar : custom classpath

Richard Broersma
Ranch Hand

Joined: Apr 28, 2009
Posts: 63

When I try to use a non-default path for the classpath to javaee.jar, javac will not compile my class. However, If my use the path to the javaee.jar file in the glassfish installation it will compile. Can anyone explain to me why this is happening?



This code comes from the cattle drive example found here.
Udara Amarasinghe
Ranch Hand

Joined: Aug 17, 2009
Posts: 109

Hi Richard,

Copy javaee.jar just into the /lib/ without copying /lib/development/. And try again.
May be you have to generate build.xml files or project.xml files or edit them as necessary.
Richard Broersma
Ranch Hand

Joined: Apr 28, 2009
Posts: 63

Thanks you for your response. It looks like the result is the same when I put javaee.jar in the lib directory:



As far as altering the build.xml file. I understand that I can get everything to work if my modify the javac classpath property to point to the glassfish lib directory. But the Cattle drive assignment requires that I put the javaee.jar file in the lib\development directory. So, I'd like to find a conclusive answer as to why this isn't working the way the assignment directions say that their suppose to.

TIA.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error javac + javaee.jar : custom classpath
 
Similar Threads
Compile problem not finding package javax.servlet.http
Set Ant Classpath for Compile
New version of Ant and Assignment 3b
Ant building error
Error when compiling the servlet Page 81 of HFSJ