I've installed Glassfish 3 and confirmed that it's up and running.
I'm on Windows XP. I'm not using any IDE.
Now I want to compile an EJB but the compiler says it cannot find javax.ejb.*. Of course I see the file it needs, in glassfish/modules. What I don't understand is what, if anything, I'm supposed to do with my environment variables to get the compiler using EE, as opposed to the SE jdk (1.6) I've used up to this point. My classpath is unchanged, and JAVA_HOME still points to my SE version. So I don't see that installing Glassfish did any such setup, and I sort of expected that it would.
So what is it I need to do to get on EE? And is Glassfish one and the same with the EE edition?
Costs matter. Justice lies in processes not outcomes. Crime is caused by criminals.
Joined: Oct 04, 2006
I would strongly advise you to use an IDE such as Eclipse or NetBeans when attempting development of an EJB project, or a web application project with EJBs.
The gains you may do by doing it "by hand" will, most likely, be obscured by the complexity of managing the classpath etc.
If you want to be "closer to the metal" with as little as possible hidden from you, I suggest using Eclipse.
NetBeans is nice, but when learning, it tends to hide a little too much (my personal experience).