(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 07:18 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - creating .jar files New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
never-obsolete

Paragoomba








Since: 05-14-06
From: AZ

Last post: 6430 days
Last view: 6430 days
Posted on 05-23-06 08:34 PM Link | Quote
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.
neotransotaku

Sledge Brother
Liberated from school...until MLK day








Since: 11-17-05
From: In Hearst Field Annex...

Last post: 6431 days
Last view: 6428 days
Posted on 05-24-06 06:00 AM Link | Quote
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

Paragoomba








Since: 05-14-06
From: AZ

Last post: 6430 days
Last view: 6430 days
Posted on 05-24-06 08:14 AM Link | Quote
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.


(edited by never-obsolete on 05-24-06 06:12 PM)
Add to favorites | Next newer thread | Next older thread
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.009 seconds; used 357.70 kB (max 426.12 kB)