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

NX: System.getProperty from GUIController

 
Vivian Chai
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I am reading the sun certified java developer exam with J2se 1.4 by Mehran Habibi. In the GUIController class, there is

But I can't find out where the value referenced by "sampleproject.hostname" is. Could anybody tell me where it is located? How did you get the hostname from that statement? Thanks a lot.
 
Jianming Wang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that's a property you need/can set by yourself.
 
Michael Dreese
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In Ch. 8, when you run the sampleproject in network mode, you have to specify the hostname and use the following command (p. 327):
> java -Dsampleproject.hostnmae=Bertrand - jar sampleprojec.jar
You can see where you can set the value of sampleproject.hostname from. Hope I have answered your question.
Cheeers,
Michael
[ June 12, 2003: Message edited by: Michael Dreese ]
[ June 12, 2003: Message edited by: Michael Dreese ]
[ June 12, 2003: Message edited by: Michael Dreese ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic