1) change 'returns' to 'return' 2) the method name is "setId", not "setID"
HTH, Dirk -----Original Message----- From: Allan Kamau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Compiling Haefel's example EJB 2.0 .java files in JBoss 3 I have tried compiling the example EJB application list in Richard Monson-Haefel's book. The application consists of the following *.java files i)CabinHomeRemote ii)CabinHome iii)CabinBean I am using the command below to compile. "javac -classpath %JBOSS_DIST%\client\jbosssx-client.jar;%JBOSS_DIST%\client\jboss-j2ee.jar;%JBOSS_DIST%\client\jboss-client.jar; com\burudani\cabin\*.java" I get errors below. com\burudani\cabin\CabinBean.java:9: not a statement returns null; ^ com\burudani\cabin\CabinBean.java:9: ';' expected returns null; ^ com\burudani\cabin\CabinBean.java:8:cannot resolve symbol symbol : method setID (java.lang.Integer) location: class com.burudani.cabin.CabinBean this.setID(id); ^ 3 errors Attached find the *.java files __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
