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

[1989 byte] By [Sri_Sria] at [2007-11-27 8:23:18]
# 1
Cross-post: http://forum.java.sun.com/thread.jspa?threadID=5186931&tstart=0
nogoodatcodinga at 2007-7-12 20:12:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
hithe problem is in setting the classpath.Bala
art84a at 2007-7-12 20:12:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
okthank u, i got ans
Sri_Sria at 2007-7-12 20:12:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
thank you for giving the solution for the problem,i got the answer msg posted from other friendmy request is you are told class path onlygive the detail way(how to set in j2ee sdk)i got ans CLASSPATH=C:\Sun\AppServer\lib\j2ee.jarok thank you for ur
Sri_Sria at 2007-7-12 20:12:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...