View Single Post
  #1 (permalink)  
Old February 2nd, 2008, 12:27 AM
sanna231 sanna231 is offline
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in calling classes in simple Servlet

Hello all

Kindly help me to figure what the mistake i am making while calling the simple class file in a servlet.

i have written a simple servlet and name it as Eemlogin.java
 i am trying to call a class which i have in other notepade and saved it as LoginEemCompare.java . i have complied LoginEemCompare.java and after complilation i see class file of it.
In Servlet Eemlogin i have used below command to call the class.

LoginEemCompare lc=new LoginEemCompare();
but it gives me error cannot resolve symbol.Below is the error


C:\bea\nidhi\user_projects\nidhidomain\application s\DefaultWebApp\WEB-INF\classe
s>javac Eemlogin.java
Eemlogin.java:62: cannot resolve symbol
symbol : class LoginEemCompare
location: class Eemlogin
LoginEemCompare lc=new LoginEemCompare();
^
Eemlogin.java:62: cannot resolve symbol
symbol : class LoginEemCompare
location: class Eemlogin
LoginEemCompare lc=new LoginEemCompare();
                       ^
2 errors

i have stored both servlet(Eemlogin.java) and LoginEemCompare.java in the same folder and i am trying to run it in weblogic.
can anyone suggest what is the mistake that i might be making to get above error.if you want i can also send the code.

thanks in advance for your time .
nidhi

Reply With Quote