(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
09-25-24 05:21 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - creating .jar files
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
never-obsolete
Posts: 32/79
i tried:

jar cmf META-INF/mainClass.txt JN6502A.jar JN6502A/*.class

and the jvm exits on this error:

Exception in thread "main" java.lang.NoClassDefFoundError: JN6502A/JN6502A (wrong name: JN6502A)


EDIT: nevermind, i figured it out.
neotransotaku
Posts: 1162/1860
I believe the manifest file needs to be in META-INFdirectory. So if /developement is your root folder, then in that folder you will have:

JN6502A/
META-INF/
never-obsolete
Posts: 31/79
Im trying to create a .jar file and everytime i run it, i get an error "Could not find main class."

my manifest is in "\development" and all the class files are in "\development\JN6502A" .

main() is in JN6502A.class and the manifest contains:


Main-Class: JN6502A.JN6502A


The jar program makes the file and all the needed class are included in the .jar so i am at a loss as to what is wrong. Any help would be appreciated.
Acmlm's Board - I3 Archive - Programming - creating .jar files


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.003 seconds; used 348.14 kB (max 385.09 kB)