• 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

Where should suncertify.properties file be located

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The instruction said "suncertify.properties file must be located in the current working directory"

Where is the current working directory?
If my server is under /suncertify/server, is this where I should put suncertify.properties in?

Thanks

Lee
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;

it must be located in the current working directory, so in the same folder where the runme.jar file reside. because the app will run with out any classpath list so the current working directory is the same folder.

Regards.
Mohamed Darim.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just wondering! Shouldn't it be in the class directory
 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi:
Do you mean suncertify.properties is supposed to be located in the same folder with runme.jar?

But it seems client and server GUI both need suncertify.properties.
but it doesn't make sense that put all client and server settings in the same file becuase client and server should be different machine.

Thanks

Lee
 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chih-Wei Lee:
[QB]Hi:
Do you mean suncertify.properties is supposed to be located in the same folder with runme.jar?



Yes, the file should be created at the same level as runme.jar (which is your current directory).


But it seems client and server GUI both need suncertify.properties.
but it doesn't make sense that put all client and server settings in the same file becuase client and server should be different machine.



When executing on different machine, both applications are accessing 2 distinct files (that happen to have the same name).

Since your application can be launched in multiple mode, you could consider using multiple keywords to distinguish them :

- server.ip=locahost
- client.ip=127.0.0.1
- ...
[ March 16, 2008: Message edited by: Alex Belisle Turcot ]
 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot
Very useful response
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;

in the properties file i think we can use just one key for server host address

complete props example:

dblocation=c:\\project\\db.db
serverPort=9876
serverAddress=localhost

and use these configuration in the standalone mode and in the network mode
so the server and client alone and client network will use the same file.

Why not ?

Best regards.
Mohammed Darim.
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic