• Post Reply Bookmark Topic Watch Topic
  • New Topic

where is PortableRemoteObject  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am trying to compile the Client Application and am getting the following error. The classpath has been set to JNDI.jar and ejb.jar.
i tried finding the PortableRemoteObject in the java and Javax package but did not find it. where is this class located.

C:\weblogic\examples\ejb\basic\statefulSession>javac *.java
Client.java:11: Class javax.rmi.PortableRemoteObject not found in import.
import javax.rmi.PortableRemoteObject;
^
1 error

Regds.
Rahul.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai, If you are using weblogic4.5.1,try adding j2ee.jar and weblogicaux.jar to the classpath.If you are using weblogic 5.1 use the build.bat file supplied by weblogic.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Unknown,
thanks i got it when i set the specified jar files in the lib directory of weblogic.
Regds
Rahul
 
EJB
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but if there is no j2ee.jar file in the lib directoy.set how can i add it to the classpath.
WEBLOGICCLASSPATH=.\license;.\classes;.\myserver\serverclasses;.\lib\weblogicaux.jar;e:\WebLogic\classes\JDBC\classes111.zip;e:\dev\classfiles;
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai EJB,
you have to download java2 enterprise edition which will have j2ee.jar in its lib directory.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!