File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Where should suncertify.properties file be located Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Where should suncertify.properties file be located" Watch "Where should suncertify.properties file be located" New topic
Author

Where should suncertify.properties file be located

Chih-Wei Lee
Ranch Hand

Joined: Feb 20, 2008
Posts: 129
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


SCEA, SCJD, SCDJWS, SCWCD, SCJP
mohamed sulibi
Ranch Hand

Joined: Sep 04, 2005
Posts: 169
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.
John Mattman
Ranch Hand

Joined: Feb 18, 2008
Posts: 45
Just wondering! Shouldn't it be in the class directory
Chih-Wei Lee
Ranch Hand

Joined: Feb 20, 2008
Posts: 129
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
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
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

Joined: Feb 20, 2008
Posts: 129
Thanks a lot
Very useful response
mohamed sulibi
Ranch Hand

Joined: Sep 04, 2005
Posts: 169
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where should suncertify.properties file be located