• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Examiner's Path to JDK executables

 
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.
 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
Posts: 17346
11
Mac IntelliJ IDE Spring
 
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.
 
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
 
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic