• 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

Head First Setup Document For Windows XP

 
Greenhorn
Posts: 18
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I hope this help someone else

Head First Setup Document

The code in the book does not work with SDK 1.5 so you have to download SDK1.4
Software to download
Download the J2EE RI (Reference Implementation) 1.3
http://java.sun.com/j2ee/sdk_1.3/

Go to the DOWNLOAD button for Java 2 SDK, Enterprise Edition 1.3.1:

Install the above in c:\ j2sdkee1.3.1

Download J2EE SDK 1.4.2_15
http://java.sun.com/products/archive/

Install the above in j2sdk1.4.2_15

Set environmental variables
PATH=%J2EE_HOME%\bin;%JAVA_HOME%\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
JAVA_HOME=c:\j2sdk1.4.2_15
J2EE_HOME=c:\j2sdkee1.3.1

Reboot your PC.
Compiling and running Running Advice Client

I got most of this from Java ranch and can�t improve on it so I will use it.

(This I am adding for those that wonder just like me)
The Windows alternative for the Unix command on page 57 in HFEJB is:
javac -classpath %CLASSPATH%;AdviceAppClient.jar;. AdviceClient.java

But the above might still not work for you!!


One that might work for you:
javac -classpath %J2EE_PATH%\lib\j2ee.jar;AdviceAppClient.jar;. AdviceClient.java



Another alternative:

https://coderanch.com/t/162202/java-EJB-SCBCD/certification/Trouble-running-Advice-EJB

The section below I found in a post by Dewang Lakhani
I would like to repeat the formulae to run AdviceCient :-

INCLUDE ";." AFTER YOUR CLASSPATH i.e
To Compile use :-
"C:\Dewang\j2EEStuff\projects\advice>javac -classpath C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Dewang\j2EEStuff\projects\advice\AdviceAppClient.jar;. AdviceClient.java"


INCLUDE ";." AFTER YOUR CLASSPATH i.e

TO Run use :-
"C:\Dewang\j2EEStuff\projects\advice>java -cp C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Dewang\j2EEStuff\projects\advice\AdviceAppClient.jar;. AdviceClient"


I know it's not necessary to include j2ee.jar explicitly if you have it in your environment varibale. I have it set in my environment but then too i had to explicitly add it.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic