Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > .jar file - how to open in os x?

.jar file - how to open in os x?
Thread Tools
Junior Member
Join Date: Apr 2001
Status: Offline
Reply With Quote
May 28, 2001, 06:15 AM
 
hi, i'm completely new in programming java on os x. i've a .jar-file from a visual age project (windows). i just want to know how to open this .jar file archive - so that i can work with it. developer tools are installed. thx and greets,

granny
grannysmith
     
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
May 28, 2001, 09:56 AM
 
I am not quite sure what you need but I will cover some ground below and hope it's some value.

1. To view the contents of a jar file: You can use the Java Browser that shipped with Development Tools it is usually at /YourHD/Developers/Applications.

2. To work with the jar: just add the the jar itself directly to your classpath. If you search this forum, you will find a ton of stuff and some very explicit directions.

iMac 17" G4 800MHZ & 768 SDRAM
     
Junior Member
Join Date: Apr 2001
Status: Offline
Reply With Quote
May 28, 2001, 10:04 AM
 
can i extract the .jar-archive somehow?
grannysmith
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 28, 2001, 01:05 PM
 
If it's a program you can run java -jar jarfile.jar from a terminal window and that will launch it.

You can work with it as it is... If you really want to, you could unzip it, I think (aren't jar files just zip archives, anyways?)
     
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
May 28, 2001, 02:27 PM
 
Yes, just use 'unzip'.

.jar's are nothing more than zip'd collections of .class files.
     
Junior Member
Join Date: Apr 2001
Status: Offline
Reply With Quote
May 28, 2001, 03:06 PM
 
jep - just unzipped the jar-file by dragging it on the stuffit expander. thx. i'll just have to put the pieces together in a new project, i think.

greets,
volker
grannysmith
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: brooklyn, ny
Status: Offline
Reply With Quote
May 28, 2001, 05:55 PM
 
from the terminal command line you can also do

jar xf whatever.jar

x for extract, f for 'use following filename'

use

jar tf whatever.jar

to get a listing of what's in the archive.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2