0 Replies Latest reply on Feb 24, 2002 3:56 PM by javauser

    compile problem - cannot  resolve symbol

    javauser

      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;
      }