Results 1 to 1 of 1
- 09-14-2008, 03:47 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 2
- Rep Power
- 0
ALERT: java/lang/ClassFormatError: Bad version information
Hello..i'm a newbie in this forum..i wanna ask you about JAVA : ALERT: java/lang/ClassFormatError: Bad version information..I have execute this code :
package org.if06035.ei.praktikum;
import java.util.Date;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
public class DateTimeApp extends MIDlet {
Alert timeAlert;
public DateTimeApp() {
timeAlert = new Alert("Alert!");
timeAlert.setString(new Date().toString());
}
public void startApp() {
Display.getDisplay(this).setCurrent(timeAlert);
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
}
and then when i've compiled this code..with command :
1. jar cfvm DateTimeApp.jar Manifest.mf .\org
this is the result:
added manifest
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/if06035/(in = 0) (out= 0)(stored 0%)
adding: org/if06035/ei/(in = 0) (out= 0)(stored 0%)
adding: org/if06035/ei/praktikum/(in = 0) (out= 0)(stored 0%)
adding: org/if06035/ei/praktikum/DateTimeApp.class(in = 892) (out= 502)(deflated 43%)
2. ..\..\..\bin\emulator.exe -Xdescriptor DateTimeApp.jad
this is the result:
Running with storage root DefaultColorPhone
Method............: b6db58 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
Stack Chunk.......: 1260e48
Frame Pointer.....: 1260ea0
Current IP........: bf1715 = bf1707 + offset 14
Previous Frame....: 1260e68
Previous IP.......: c14d75 (offset 22)
Frame size........: 7 (1 arguments, 6 local variables)
Argument[0].......: 1261d14
Local[1]..........: 0
Local[2]..........: 1260e68
Local[3]..........: 1278648
Local[4]..........: 1260e7c
Local[5]..........: b5a478
Local[6]..........: 1260e48
Operand[1]........: 1261d14
Method............: b84618 'com/sun/midp/midlet/Selector.run (virtual)'
Stack Chunk.......: 1260e48
Frame Pointer.....: 1260e68
Current IP........: c14d75 = c14d5f + offset 22
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 6 (1 arguments, 5 local variables)
Argument[0].......: 1261f6c
Local[1]..........: 1278808
Local[2]..........: 1261d14
Local[3]..........: 0
Local[4]..........: 0
Local[5]..........: 0
Operand[1]........: 1278808
VM status:
Instruction pointer.: bf1715 (offset within invoking method: 14)
Next instruction....: 0x4c
Frame pointer.......: 1260ea0
Local pointer.......: 1260e84
Stack size..........: 128; sp: 1260eb8; ranges: 1260e50-1261050;
Contents of the current stack frame:
1260e84: 1261d14 (lp)
1260e88: 0
1260e8c: 1260e68
1260e90: 1278648
1260e94: 1260e7c
1260e98: b5a478
1260e9c: 1260e48
1260ea0: 1260e68 (fp)
1260ea4: c14d75
1260ea8: 1260e80
1260eac: b6db58
1260eb0: 1260e48
1260eb4: 0 (end of frame)
1260eb8: 1261d14 (sp)
Execution stack contains 108 items:
1261f6c
1278808
1261d14
0
0
0
0
1
1260e4c
b84618
1260e48
0
1278808
1261d14
0
1260e68
1278648
1260e7c
b5a478
1260e48
1260e68
c14d75
1260e80
b6db58
1260e48
0
1261d14
Execution completed.
719383 bytecodes executed
9 thread switches
741 classes in the system (including system classes)
3679 dynamic objects allocated (103624 bytes)
1 garbage collections (0 bytes collected)
Execution completed.
719383 bytecodes executed
9 thread switches
741 classes in the system (including system classes)
3679 dynamic objects allocated (103624 bytes)
1 garbage collections (0 bytes collected)
ALERT: java/lang/ClassFormatError: Bad version information
May you help me please to handle this error ??:(
Similar Threads
-
How to find java version
By roshithmca in forum New To JavaReplies: 3Last Post: 04-27-2012, 06:10 AM -
Error: cannot resolve symbol' on Person (java.lang.String, java.lang.String)
By baltimore in forum New To JavaReplies: 2Last Post: 09-18-2008, 07:30 AM -
version of java????
By j2vdk in forum New To JavaReplies: 6Last Post: 09-07-2008, 04:34 PM -
Java Script comes with No proper error message in the Alert box in Struts.
By anandguna in forum Advanced JavaReplies: 4Last Post: 07-31-2008, 01:43 PM -
Plz help me reg chaging the java version in commandprompt
By shobha2k8 in forum New To JavaReplies: 7Last Post: 06-05-2008, 03:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks