• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Examiner's Path to JDK executables

 
Jack Coleman
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always hate to assume anything.
Do we need to explicitly tell the examiner how to set up their path to the java and jar executables? The instructions state that:
"If any environmental setup is required, do not just say what needs to be done; provide instructions on how to perform the setup."
Since these people most likely work for Sun, can't we assume(ugh) that their system path is properly set up?
If anyone who has already submitted can respond, I would appreciate it.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this helps. Here is the only instructions I wrote in my readme.txt in regards to running the program

-----------------------------------------
To run the server
1. run the following command
java -Drmi.security.policy=policy.all -jar server.jar

this starts the server and it's GUI.
----------------------------------------------------------------------------------------------------------
To run the client
1. to run in Local mode
a. run the following command
java -jar client.jar

OR


2. to run in Remote mode
a. run following command

java -Djava.security.policy=policy.all -jar client.jar {URL of Server}

make sure you add the URL location of the database in that call.
as an example

java -Djava.security.policy=policy.all -jar client.jar Localhost
or
java -Djava.security.policy=policy.all -jar client.jar 192.155.255.16
-----------------------------------------

Hope that helps
Mark
 
Jack Coleman
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, from your response, it looks like you did not tell them to put the JDK in their path.
Thanks.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
 
Dasong
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark
when I run java -jar client.jar
Got the error message as "Failed to load Main-Class manifest attribute from client.jar" . how did you do.
 
Daniela Ch
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dasong,
you need a linefeed in the manifest file...
daniela
 
Robert Stuart
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I spent some time chasing improperly ending manifest file with hard return. Not likely to forget mistake. The things we learn in pursuit of SCJD.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic