-
1. Re: cannot find /lib/ext/ejb.jar - problem compiling
adrian.brock Feb 24, 2002 7:07 AM (in response to javauser)The jar you want is jboss\lib\ext\jboss-j2ee.jar
Regards,
Adrian -
2. problem compiling - cannot resolve symbol
javauser Feb 24, 2002 2:12 PM (in response to javauser)Thanks for your help.
I was trying to compile a sample java file from an example.
the error I get is
C:\usr\lib\jboss>javac -classpath usr/lib/jboss/lib/ext/jboss-j2ee.jar:. com/web
_tomorrow/interest/Interest.java
com/web_tomorrow/interest/Interest.java:2: cannot resolve symbol
symbol : class EJBObject
location: package ejb
import javax.ejb.EJBObject;
^
com/web_tomorrow/interest/Interest.java:11: cannot resolve symbol
symbol : class EJBObject
location: interface com.web_tomorrow.interest.Interest
public interface Interest extends EJBObject
^
2 errors
Interest.java
package com.web_tomorrow.interest;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
/**
This interface defines the `Remote' interface for the `Interest' EJB. Its
single method is the only method exposed to the outside world. The class
InterestBean implements the method.
*/
public interface Interest extends EJBObject
{
/**
Calulates the compound interest on the sum `principle', with interest rate per
period `rate' over `periods' time periods. This method also prints a message to
standard output; this is picked up by the EJB server and logged. In this way we
can demonstrate that the method is actually being executed on the server,
rather than the client.
*/
public double calculateCompoundInterest(double principle,
double rate, double periods) throws RemoteException;
} -
3. Re: problem compiling - cannot resolve symbol
adrian.brock Feb 25, 2002 6:08 AM (in response to javauser)Hi,
Your classpath is all wrong for windows.
It should be
javac -classpath c:\usr\lib\jboss\lib\ext\jboss-j2ee.jar;. etc.
Notice the \ and ;
Regards,
Adrian -
4. Re: problem compiling - cannot resolve symbol
javauser Feb 25, 2002 4:46 PM (in response to javauser)Thanks a lot adrain.