aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes question abuot 'jar' 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 "question abuot Watch "question abuot New topic
Author

question abuot 'jar'

cindy sung
Ranch Hand

Joined: Jul 02, 2002
Posts: 34
Hi all,
I plan to have two jar files, one is server.jar, and the other is the client.jar. And I include db package in both client.jar and server.jar. I also include the stub classes in client.jar. So in non-networked mode, only client.jar is required to install.
But I am not sure whether my approach will cause deduction of marks. Since some of the files are redundant when working in networked mode, such as LockManager. And in non-networked mode, server stubs are also redundant.
What's the suggestion from you guys?
Thanks.
cindy


SCJP2; SCJD2;
Mike Piotrowski
Ranch Hand

Joined: Apr 24, 2002
Posts: 82
Cindy,
I packaged my submission the same way and had the same concerns. I only lost 1 point on the client gui and 2 points on my server and don't believe that was the reason for the point deduction. Don't think it should be a problem for you.
Mike
cindy sung
Ranch Hand

Joined: Jul 02, 2002
Posts: 34
Hi Mike:
Thank you very much.
And one further question. Actually I only have one jar file, which is the whole package of the assignment. The client codes and server codes are put inside two folders actually without using any more jar files. Does that matter?
Thanks.
cindy
Mike Piotrowski
Ranch Hand

Joined: Apr 24, 2002
Posts: 82
Cindy,
The requirements state that
You may use Jar files to contain groups of elements of your submission as you deem appropriate, for example, to support execution of your programs.

So from that you are not required to make a client.jar or a server.jar, though i found this to be a nice way to package them and easy for the assesor to run them. But as long as everything works fine and you can explain how to run everything you should be ok.
You must though submit the whole assignment as one single Jar file for submission.
Mike
cindy sung
Ranch Hand

Joined: Jul 02, 2002
Posts: 34
Hi Mike:
Thank you very much.
cindy
cindy sung
Ranch Hand

Joined: Jul 02, 2002
Posts: 34
Hi,
I suddenly got another doubt.
Can I assume the assessor will not change the database file nor move it to another directory? Now I am placing db.db in both client.jar and server.jar and I access the database file with hardcoded directory. And I also hardcoded the column names in client GUI. But I do allow the user to change the name of database file.
What's your comments?
Thanks.
cindy
Mike Piotrowski
Ranch Hand

Joined: Apr 24, 2002
Posts: 82
Cindy,
Can I assume the assessor will not change the database file nor move it to another directory?

I went under that assumption, you must though specify in your README.txt the location of the db.db file. I had one copy in my main directory that the client.jar and server.jar both used. I did not allow the user to specify the location of the database file, but looking back I would of changed that. Maybe thats where I lost a point
I also hardcoded the column names. In my design document I did mention this could be an area for a future enhancement. Overall I tried to keep things as simple as possible while sticking to the specs.
Mike
cindy sung
Ranch Hand

Joined: Jul 02, 2002
Posts: 34
Hi, Mike:
Thanks for your patience.
Just one last question.
I've tested my program on the LAN network. But I have no idea how it will funtions over the Internet? Do I have a means to test it? And when I execute my program, I do not need to set classpath nor the port number. Am I missing any cases here?
And can I use MS word to do the documentation?
Thanks.
cindy
Mike Piotrowski
Ranch Hand

Joined: Apr 24, 2002
Posts: 82
Cindy,
I only tested my assignment on a single computer and nver tried it over the interent. I did not have to set the classpath and I had the port number(1099 the default i used) hardcoded into myu server.
As far as the documentation MS Word format is not allowed at least thats what they say for the README.txt. The specs read:
You must create a single text file(plain ASCII; word processor formats are unacceptable) called README.txt ...

I would assume that would apply to the design choices document as well. My user documentation was html format. Then you have your documentation for all you clasees which will be created using Javdoc.
Hope that clears things up, feel free to ask any more questions. I'm glad to help.
Mike
cindy sung
Ranch Hand

Joined: Jul 02, 2002
Posts: 34
Hi Mike:
Thanks. You are so nice.
Hopefully I will pass it.
cindy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question abuot 'jar'