#1
|
|||
|
|||
Java Programmers I need some help
I am trying to get this damn java ap to run on my PDA, its a .jar file, I downloaded my jvm, but I keep getting this error: No Main-Class attribute
I edited the manifest file from: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.2 Created-By: 1.4.2_07-b05 (Sun Microsystems Inc.) MIDlet-1: Easy Jack,/easyjack/images/icon.png,easyjack.EasyJack MIDlet-Vendor: Cyberactive MIDlet-Version: 1.0 MIDlet-Name: Easy Jack MicroEdition-Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-2.0 to Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.2 Created-By: 1.4.2_07-b05 (Sun Microsystems Inc.) MIDlet-1: Easy Jack,/easyjack/images/icon.png,easyjack.EasyJack MIDlet-Vendor: Cyberactive MIDlet-Version: 1.0 MIDlet-Name: Easy Jack MicroEdition-Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-2.0 Main-class: /easyjack/easyjack.class Im just kind of putzing around because I dont know java that well. Can anyone help. I know wrong forum, but I know Ill get a better response here. |
#2
|
|||
|
|||
Re: Java Programmers I need some help
I don't know that much about Java, but the language itself is case sensitive. So maybe "Main-Class" will work and "Main-class" won't...
|
#3
|
|||
|
|||
Re: Java Programmers I need some help
Whoever gave you the jar didn't set things up apparently.
I don't know MIDlet's too well, but your main application line has to be case-correct. Probably something like: Main-class: easyjack.EasyJack It doesn't want a path, it wants the fully scoped name. It's probably the same name that's on the MIDlet-1 line (easyjack.EasyJack). If that doesn't work though, I'm out of ideas. I only played with MIDlets a little and the tool I used created the correct manifest so that things ran. |
#4
|
|||
|
|||
Re: Java Programmers I need some help
Im getting a midlet not found now.
|
#5
|
|||
|
|||
Re: Java Programmers I need some help
[ QUOTE ]
Im getting a midlet not found now. [/ QUOTE ] Was the jar written to be a midlet or an normal application? If it wasn't written to be a midlet, it won't run. It doesn't have the right interface. A programmer can make it run as either, but most don't. They only implement the interface for their target (pc or PDA). You're SOL without the original developers help I think. |
|
|