File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlet can't import the model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet can Watch "servlet can New topic
Author

servlet can't import the model

Murari Madkyto
Greenhorn

Joined: May 13, 2012
Posts: 5
Hello all, this is my first posting.

I have a problem in learning JSP+servlet, maybe this question is too often to ask, bu I really confuse, I have been look to other similiar problem in many forum including this forum, I have tried their solution but it's still error and show notification that my model class is doesn't exist . could you review my work, is there anything wrong ?

This my folder structure for my development enviroenment :




This my model called : BeerExpert.java



This is my servlet called : BeerSelevt.java



this is my HTML form called : form.html



this is my JSP file called : result.jsp



and this is my XML file : web.xml



this my CLASSPATH setting : E:MyProject\beerV1;E:\tomcat\common\lib\servlet-api.jar
I use apache-tomcat 5.5.36.

I have been succed to compile my BeerExpert.java with this command :

but when I try to compile my BeerSelect.java with this comand :

The system tell me this error message :



Thanks for your help...
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Are you compiling these java files console ???


http://plainoldjavaobject.blogspot.in
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10201
    
166

Welcome to the forums

Murari Madkyto wrote:

but when I try to compile my BeerSelect.java with this comand :


The classpath separator there looks incorrect. It shouldn't be classes:. but instead should be classes;. See if this works



For more details on setting the classpath, see this documentation http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html


[My Blog] [JavaRanch Journal]
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Are you compiling your code from the console ???
Murari Madkyto
Greenhorn

Joined: May 13, 2012
Posts: 5
Lalit Mehra wrote:Are you compiling your code from the console ???


Yes, I compile it using console, I am new to JSP+servlet I buy headfirst book and they suggest me to use console in this chapter instead of IDE...

Murari Madkyto
Greenhorn

Joined: May 13, 2012
Posts: 5
Jaikiran Pai wrote:Welcome to the forums

Murari Madkyto wrote:

but when I try to compile my BeerSelect.java with this comand :


The classpath separator there looks incorrect. It shouldn't be classes:. but instead should be classes;. See if this works



For more details on setting the classpath, see this documentation http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html


Wow, it works ! thank for your help Jaikiran Pai...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet can't import the model