This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Getting error while compling the First Java file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Getting error while compling the First Java file" Watch "Getting error while compling the First Java file" New topic
Author

Getting error while compling the First Java file

ankush patni
Greenhorn

Joined: Oct 11, 2007
Posts: 11
HI,
I am new to EJB and i made a very small program.While compling the TestreHome.java I am getting error

TesterHome.java:13: package javax.ejb does not exist
public interface TesterHome extends javax.ejb.EJBHome {
^
TesterHome.java:15: cannot find symbol
symbol : class Tester
location: interface tester.TesterHome
Tester create() throws java.rmi.RemoteException, javax.ejb.CreateException;
^
TesterHome.java:15: package javax.ejb does not exist
Tester create() throws java.rmi.RemoteException, javax.ejb.CreateException;

Please help me what is problem.And what should i do.
Mladen Grabowsky
Greenhorn

Joined: Sep 19, 2007
Posts: 29
Hi ankush,

the JEE libs are missing.

My Tipp for you: Start with Java Standard Edition, not the Enterprise Edition. You wouldn't get far if you tried to learn Java by starting with JEE, all you get is frustrated.
ankush patni
Greenhorn

Joined: Oct 11, 2007
Posts: 11
Can you please let me know from where i can get JEE file.
and i didn't get properly what you want to say.I have installed the JDK 1.5 and jboss-4.0.5.GA so please tell me where i should make changes.
 
wood burning stoves
 
subject: Getting error while compling the First Java file
 
Similar Threads
Cannot resolve Symbol (EJB)
How do I set the classpath for J2EE apis?
Compile time Error(EJB)
NeedJ2EE 1.3 RI server Installation Help
Unable to compile home interface file