Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I jar file and javadoc using JBuilder?

 
Daniel Chen
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I jar my classes, sources, javadoc api document using JBuilder?Is it the same result as using command-line with jdk?
 
Mag Hoehme
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Daniel,
AFAIK JBuilder provides a shell to the standard Java tools such as JAR and JavaDoc. Therefore it shouldn't be a problem when you're using JBuilder. Simply check before submission that are no JBuilder residues in your files.
I used NetBeans and had an ANT script, which also worked fine.
 
Daniel Chen
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mag,
Thank you for your reply.I also think they are the same created by java command-line or JBuilder.However I found manifest.mf file in my jar file created by java command-line has a line like "Created-By: 1.4.0 (Sun Microsystems Inc.)".The jar file created by JBuilder's manifest.mf file doesn't have this line.Though the jar file created by JBuilder run well in java command-line, I am afraid the two kind of jar file have other diffient part.And I don't know how to create jar file with JBuilder can include "Created-By: 1.4.0 (Sun Microsystems Inc.)".By the way I found my client.jar file created by JBuilder includes some class files I didn't add them to jar.I don't know the reason, I doubt JBuilder would include class files if it thought necessary.
 
friso jonge
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi daniel,
I had the same concerns, but used jbuilder all the way.
- for rmi file creation
- for packaging into multiple and executable jars
- for javadocs
- for misc. files like readme.txt etc
after making it to work which was a project by itself, I unpacked the jar files and just searched for files that i had not put in there.
There were not any. So i send it in and passed.
 
Daniel Chen
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friso,
Thank you.
 
Mag Hoehme
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniel Chen:
By the way I found my client.jar file created by JBuilder includes some class files I didn't add them to jar.I don't know the reason, I doubt JBuilder would include class files if it thought necessary.

Did you used the GUI builder? That could be the reason.
You can manipulate the contents of a jar file with a zip program, such as WinZip. Try to delete the JBuilder files and see what happens.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic