File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem compiling a managed bean from command line in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem compiling a managed bean from command line in linux" Watch "Problem compiling a managed bean from command line in linux" New topic
Author

Problem compiling a managed bean from command line in linux

Iulian Nicula
Greenhorn

Joined: Nov 21, 2012
Posts: 2
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

Joined: Nov 21, 2012
Posts: 2
the path to glassfish was /home/glassfish3/glassfish ..............
instead of /home/USERNAME/glassfish3/.......



and this was the problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem compiling a managed bean from command line in linux