Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

NX: System.getProperty from GUIController

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that's a property you need/can set by yourself.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic