Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to compile following code  RSS feed

 
Luka Mudischev
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, guys. I have a problem compiling a simple interface:
import java.rmi.*;
import javax.ejb.*;
public interface Balance extends EJBObject
{
/* All methods here must have matching methods in BalanceBean.java */
void save(int value) throws RemoteException;
void spend(int value) throws RemoteException;

}
The following error is being shown:
Package javax.ejb.* cannot be found.
Class EJBObject cannot be found.
But JRun should have it, shouldn't it? In fact, I copied this code from JRun's documentation. Thanks for your help.
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm transferring this to the 'J2EE and EJB' forum as it's a question specific to the JRun server and should get more responses there.
 
Suneel Setlur
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
There is no problem with the code at all.
Set the classpath correctly to the jar file.
Giving you an example with J2EE server.
set J2EE_HOME=c:\j2sdkee1.2
set JAVA_HOME=c:\jdk1.2.2
set path=%path%;c:\jdk1.2.2\bin;c:\j2sdkee1.2\bin;
set classpath=c:\jdk1.2.2\lib;.;c:\j2sdkee1.2\lib\j2ee.jar;%classpath%;

------------------
Suneel
 
Luka Mudischev
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suneel, thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!