Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error javac + javaee.jar : custom classpath

 
Richard Broersma
Ranch Hand
Posts: 63
Firefox Browser Postgres Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
Firefox Browser Postgres Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic