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

HFEJB AdviceApp

 
Richard Rex
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried doing the AdviceApp of HFEJB in Chapter 1 but I was having an error compiling the client program. I was able to correctly created the jar file. I am using windows as my platform.

What's the windows version of this command? As this was the command used in the book. I believe this is for UNIX platform.
$javac -classpath {$CLASSPATH}:AdviceAppClient.jar AdviceClient.java

I tried this one but I am having an error telling that the package javax.ejb.* does not exist.
C:\>javac -classpath C:\projects\advice\AdviceAppClient.jar AdviceClient.java

Thanks for the help in advance.
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mastering the Java CLASSPATH:
...

javac -classpath %CLASSPATH%;dir1 ir2 ...

Finally, please note that if directories in your class search path have spaces in their names, you may have to use double-quotes on the command line to prevent the CLASSPATH being split up. For example:
javac -classpath "%CLASSPATH%";dir1 ir2 ...
[ June 13, 2006: Message edited by: wise owen ]
 
Richard Rex
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks wise owen for that wonderful site! It did really helped me a lot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic