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 > Trouble creating JAR archives?

Trouble creating JAR archives?
Thread Tools
Forum Regular
Join Date: May 2002
Location: Kyaro
Status: Offline
Reply With Quote
Apr 13, 2004, 09:01 PM
 
Does anyone else have trouble creating JAR archives on a mac, but not on a PC? I ask because today I was able to create a JAR archive with the help of the new NetBeans version. So out of curiosity, I tried the same thing with the new NetBeans on my mac later on, but I get a no class def found error even after following the same steps I did to get it to work on the PC. Is there something that the mac does that screws up the cretaion of JAR archives or is it just my machine?
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Apr 13, 2004, 09:03 PM
 
Originally posted by Jowy:
Does anyone else have trouble creating JAR archives on a mac, but not on a PC? I ask because today I was able to create a JAR archive with the help of the new NetBeans version. So out of curiosity, I tried the same thing with the new NetBeans on my mac later on, but I get a no class def found error even after following the same steps I did to get it to work on the PC. Is there something that the mac does that screws up the cretaion of JAR archives or is it just my machine?
I don't use NetBeans, but I have no issues creating jar files on the Mac with the command-line jar utility.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Apr 13, 2004, 10:42 PM
 
jar cvf foo.jar <list of classes> META-INF

???

No problem with netbeans either
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Jowy  (op)
Forum Regular
Join Date: May 2002
Location: Kyaro
Status: Offline
Reply With Quote
Apr 14, 2004, 10:29 AM
 
Hm perhaps it's in the method that I'm trying to do it, but I did try the commandline first and even tried this command:jar cvfm myjar.jar meta-inf/manifest.mf *.class. That was given to me by someone on the Sun's forums but it still didn't work even after I fixed the path to point to the manifest file correctly. I may just have to try it again and see if I'm adding an extra step in there that doesn't belong.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Apr 15, 2004, 02:24 PM
 
Why don't you run jar from the command line and paste the output here so we can at least know why the problem is.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
   
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 09:08 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