• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

final packaging (directory structure : scjd\starting)

 
Rasika Chitnis
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are we supposed to use the same directory structure (scjd\starting) that was used by SUN when they packaged the assignment jar ? For example when I downloaded and extracted their assignment jar file in my d: drive, it created scjd\starting directory. Now I have my server.jar, client.jar and db.jar in d:\scjd\starting. If I create a jar of these three jar files and all other files from this directory, it is not going to have scjd\starting in it. But if I create the jar from d:, it will have scjd\starting in it. But then, in my instructions, I will have to ask them to change the directory to scjd\starting.
Comments please ??
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No you don't need to keep that directory structure.
Actually I prefer it not, and it being able to run from any directory that you might put it into. That's what the executable jar files gives for you.
Actually to quote the instructions.html
Read the last sentence.
How to execute the programs. You must provide exact command-line instructions. If any environmental setup is required, do not just say what needs to be done; provide instructions on how to perform the setup. For example, do not say something like "add server.jar to your classpath". You should document exactly how to add the jar file to the classpath. Note: your program must run correctly no matter what directory it is installed in.

Mark
[ May 09, 2002: Message edited by: Mark Spritzler ]
 
Abhinav Anand
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Executable jar files are a good idea. But if we use executable jar files then how the other environmental setup like classpath, codebase, security policy file etc will be done.
Thanks,
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well actually with an executable jar file you don't need classpath, unless there is some other library that you want to access, but in this assignment that shouldn't happen, and the same thing with Codebase, you don't need it in an executable jar file.
As far as security, you can still have that option, I did on the client side. But there are also threads here that have said that Security poilicies aren't really necessary and you won't lose points if you don't have one.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic