Try this simple Java and Servlet Program
dear friends,
1.when i am compile and runthis simple program,it is ok i can getclass file
import java.io.*;
class samples
{
publicstaticvoid main(String args[])
{
int sum=0;
int num1=2;
int num2=5;
int num3=4;
sum=num1+num2+num3;
System.out.println("The sum="+sum);
}
}
****
2. we i compile and runthis below program means error occur
,i am not able to createclass file
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.ejb.EJBHome;
import javax.ejb.CreateException;
publicinterface mybankHomeextends EJBHome
{
mybank create()throws RemoteException,CreateException;
}
**********
Error is : javax.ejb.EJBHome doesn't exist
what is the problem
i am using : Sun J2EE 1. 4 SDK
i am set the environment path variable (C:\Sun\AppServer\bin)
what i wan't to do,what is the problem
give me detailed way,as soon as possible

