• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Newbie to J2EE

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Howard,

Yes,you run it from the command prompt.
Hope it works
Marilyn
 
Destroy anything that stands in your way. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic