 |
 |
Trouble creating JAR archives?
|
 |
|
 |
|
Forum Regular
Join Date: May 2002
Location: Kyaro
Status:
Offline
|
|
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
|
|
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
|
|
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.
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2002
Location: Kyaro
Status:
Offline
|
|
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
|
|
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.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |