• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

unable to compile following code

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suneel, thank you very much.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic