permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes Newbie to J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Newbie to J2EE " Watch "Newbie to J2EE " New topic
Author

Newbie to J2EE

Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Hi guys,
I've just started studying J2EE today, and have already ran into a roadblock. I'm using the Developer Guide which came with the download, but cannot figure out how to compile the first example, the Converter.
I simply do not know how to set up the path, and am starting to feel somewhat dumb.
The book says the following:
1. In the following script,(what do they mean by script in this context?), compileEJB.bat, change <installation-location> to the directory in which you installed the J2EE SDK.
set J2EE_HOME=<installation-location>
set CPATH=.; %J2EE_HOME%\lib\j2ee.jar
javac -classpath %CPATH% ConverterEJBljava ConverterHome.java
Converter.java
2. Run the compileEJB.bat script
I must confess, I have never studied how to do anything like this, and I don't have anyone to turn to for an explanation.
If someone can help me with this I would certainly appreciate it!
Howard


<a href="http://www.getlocaldeals.com" target="_blank" rel="nofollow">Free local coupons</a>
Marilyn Monickam
Ranch Hand

Joined: Jun 05, 2001
Posts: 66
Hi Howard,
the compileEJB.bat looks like this
set J2EE_HOME=<installation-location>
set CPATH=.;%J2EE_HOME%\lib\j2ee.jar
javac -classpath %CPATH% ConverterEJB.java ConverterHome.java Converter.java
so if you have installed your J2EE server in the location c:\j2sdkee1.2.1 ,you should change it as
set J2EE_HOME=c:\j2sdkee1.2.1
and you must find it working
(All you have to do is find your installation directory and give that path to J2EE_HOME variable)
Good Luck
Marilyn
Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Thanks for the reply, Marilyn.
How do I get to the compileEJB.bat?
Do I do this from the command prompt?
Thanks,
Howard
Marilyn Monickam
Ranch Hand

Joined: Jun 05, 2001
Posts: 66
Hi Howard,

Yes,you run it from the command prompt.
Hope it works
Marilyn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie to J2EE