Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > 2+2 Communities > Other Other Topics
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2006, 05:29 PM
guids guids is offline
Senior Member
 
Join Date: Oct 2005
Posts: 12,908
Default 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.
Reply With Quote
  #2  
Old 08-16-2006, 05:38 PM
fiskebent fiskebent is offline
Senior Member
 
Join Date: Nov 2005
Location: To your right
Posts: 1,124
Default 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...
Reply With Quote
  #3  
Old 08-16-2006, 05:57 PM
Guest
 
Posts: n/a
Default 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.
Reply With Quote
  #4  
Old 08-16-2006, 06:15 PM
guids guids is offline
Senior Member
 
Join Date: Oct 2005
Posts: 12,908
Default Re: Java Programmers I need some help

Im getting a midlet not found now.
Reply With Quote
  #5  
Old 08-16-2006, 06:19 PM
Guest
 
Posts: n/a
Default 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.
Reply With Quote
Reply


Posting 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

Forum Jump


All times are GMT -4. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.