• 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

Submitting the Project

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, do I have to allow the grader to change the java.rmi.codebase parameter and can i assume that he will install my project in the root directory? also, which parameters are required to be inputted by the grader? My instructions listed about 5 like DNS name of server, codebase, port of server? Which ones of these do I have to handle?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually you don't "have" to handle any of those. But of course it would be nice to provide the ip address of the server if in remote mode.
You cannot guarantee that the assessor will "Unzip" your submission ino the root directory. However, your code should be able to run in whatever directory the assessor puts it in.
If you used System.getProperty(user.dir). That is all you really need to handle that.
As far as codebase parameter, that is a valid command line entry, and if your code needs it then you need to explain to the assessor how to type that into the command line.
I didn't need this as I had executable jars so the classes knew where to look.
Mark
 
Alex Gregory
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mark, if he could unpack it anywhere, can I assume that he will put it in the right classpath because how else can I determine what classpath he needs?
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alex Gregory:
Mark, if he could unpack it anywhere, can I assume that he will put it in the right classpath because how else can I determine what classpath he needs?


No, you can't assume anything. But if you have an executable jar file, then you won't have to worry about classpath, well except for the JDK, and that you can assume he has correct.
Here's part of my readme.txt to help


Hope that helps
Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic