This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First Setup Document For Windows XP

 
Dirk Lombard
Greenhorn
Posts: 18
  • Likes 2
  • Mark post as helpful
  • send pies
  • 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:

http://www.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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic