Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem compiling a managed bean from command line in linux

 
Iulian Nicula
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I have a problem compiling a class that is a managed bean and i am using ubuntu 12.0.4
The way I am trying to compile the class is from the console and the command is this



javac -d ../../web/WEB-INF/classes -classpath .:glassfish/modules/\*
com/corejsf/UserBean.java


of course instead of glassfish i use the actual path of glassfish but the jars in the classpath are not recognize by this command



this is the java code



it is the first example from core java server faces

I also tried to add the location of the jars to the CLASSPATH and still it doesn't work

 
Iulian Nicula
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the path to glassfish was /home/glassfish3/glassfish ..............
instead of /home/USERNAME/glassfish3/.......



and this was the problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic