permaculture playing cards*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Unclear on how to set up for EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Unclear on how to set up for EE" Watch "Unclear on how to set up for EE" New topic
Author

Unclear on how to set up for EE

Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 137
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.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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).
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

If you decide to go for Eclipse, download the Eclipse for J2EE Developers package.


[My Blog]
All roads lead to JavaRanch
 
 
subject: Unclear on how to set up for EE