It's not a secret anymore!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Java Developer Certification (I have a question about nested jar files???) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Java Developer Certification (I have a question about nested jar files???)" Watch "Java Developer Certification (I have a question about nested jar files???)" New topic
Author

Java Developer Certification (I have a question about nested jar files???)

Jim Martin
Ranch Hand

Joined: Oct 31, 2002
Posts: 80
Hello
I am about done with my assignment, but I am totally confused about the nested jar files. I have a Server.jar and a Client.jar. Each of these two have their own main methods, one for the server and one for the client. I am trying to put these two in a main jar file, for example Outer.jar. However, I don't know how to run this from the java command line, so that each of the inner two jar files can be accessed. I would greatly appreciate any help you can give me.
Also, I used the XYlayaout of JBuilder6 for my application and I have included the com.borland.jbcl.layout.*;
It works perfectly fine from the MSDos command prompt using java -jar Client.jar.
My concern is that residual dependency clause, although my application does run under a production environment (java command line in a MSDos window)???
Thank you very very much
Regards
ahoo
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
I think you're not allowed to use external packages (borland jbuilder) in your application...
Check your instructions.html...
About the jar, regarding always instructions.html, I think you must explain in your README how to extract the two main jar, set the CLASSPATH and finally run the application(s).
Hope it helps.


Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : a.gazzarini@gmail.com<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>
Pete Lyons
Ranch Hand

Joined: Aug 18, 2002
Posts: 109
You cannot use the Borland XYLayout. This is considered a residual dependency. All classes used must either come with the JDK or be written by you. You can use JBuilder for the GUI, but you must stick to the layout manager provided by Sun.
As for the jar files, the big outer jar is just to simplify the file transfer, and the assesor will extract it first using 'jar xf yourfile.jar', and then use 'java -jar server.jar' style commands to launch your server and client. ALl you need to do is make sure your outer jar has all the right files in the right places, but only your server and client jars need to have a manifest entry that makes them "executable".
Jim Martin
Ranch Hand

Joined: Oct 31, 2002
Posts: 80
Thank you very much for your responses.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Developer Certification (I have a question about nested jar files???)
 
Similar Threads
Can I jar file and javadoc using JBuilder?
How to Jar?
readme.txt and designchoices.txt
The mode flag
Passed 149/155