Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-24-2007, 12:35 PM
Senior Member
 
Join Date: Nov 2007
Posts: 115
ravian is on a distinguished road
JAR file with .java files
Usually JAR files have class files packed in. I want to pack the .java files along with .class files into JAR file. Please tell me how this is possible.

Why this is not a common practice?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-24-2007, 01:38 PM
khamuruddeen's Avatar
Member
 
Join Date: Dec 2007
Posts: 24
khamuruddeen is on a distinguished road
its the easy process if ur using any tool of java.just right click on the file then select Export then in jva folder jar format...and continue ..
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-24-2007, 01:41 PM
Senior Member
 
Join Date: Nov 2007
Posts: 115
ravian is on a distinguished road
Thanks. I want to do it from command prompt using JAR tool. How to do it?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-24-2007, 01:53 PM
khamuruddeen's Avatar
Member
 
Join Date: Dec 2007
Posts: 24
khamuruddeen is on a distinguished road
i think tool is must to do that.., i dont know...from command prompt
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 12-24-2007, 01:57 PM
khamuruddeen's Avatar
Member
 
Join Date: Dec 2007
Posts: 24
khamuruddeen is on a distinguished road
ya man i got it 4 ur sake

jar cf archive_name.jar files

examples:
jar CF example.jar One.java

jar CF example.jar One.java Two.java Three.java
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 12-24-2007, 01:59 PM
khamuruddeen's Avatar
Member
 
Join Date: Dec 2007
Posts: 24
khamuruddeen is on a distinguished road
i think in adv java u only posted about, Anonymous class check that one also
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 12-24-2007, 04:23 PM
Senior Member
 
Join Date: Nov 2007
Posts: 115
ravian is on a distinguished road
Thanks a lot man for looking into this.
I appreciate.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 12-24-2007, 10:15 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
pack the .java files along with .class files into JAR file. Please tell me how this is possible
See here Creating a JAR File.
Why this is not a common practice?
Sometimes jar files are used to conserve band width for network use.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet - reading text files packed into JAR file Java Tip Java Tips 0 02-08-2008 11:15 AM
How to read a text file from a Java Archive File Java Tip Java Tips 0 02-08-2008 11:13 AM
How to filter files in file upload using html contorl deivaganesh Advanced Java 0 01-29-2008 08:31 AM
can java.io.File create a list of all files and folders. MattStone New To Java 20 12-17-2007 05:20 PM
File Upload - Single to allow the search of .txt files Daniel Advanced Java 1 06-06-2007 06:20 AM


All times are GMT +3. The time now is 01:35 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org