Saatvi Sudhahar

Greenhorn
+ Follow
since Sep 22, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Saatvi Sudhahar

hi..

iam developing a media player in j2me. i have all the midlets working now.. when running in the emulator with netbeans the application is running smoothly. but when i install it to the mobile each midlet is getting installed seperately without in one whole application. emulators have a built in option for integrating them. but how can i do the same after deploying it. i used Nokia 6120..midlets are working..but i need to bring them into one application. should i create a base midlet and called all other midlets from it? i tried it,,but it failed. can anyone suggest me a way please. ? i tried calling other midlets' run method from the base midlet. but something goes wrong...

looking forward for a reply soon...

regards
Saatvi
15 years ago
hi..

can anybody provide some useful ebooks or links to useful code regarding media applications in j2me.. im doing the audio, video capturing and image capturing. but still i din find any useful code. can anyone help me with this. im trying to deploy it in a Nokia phone.

Regards
Saatvi S.
15 years ago
when running my j2me application in eclipse im getting the following run time error stack. can you please tell me why is that? this happens when im loading the midlets in the application. the emulator exits at this point. I created a Manifest.mf file and created a jar file including the manifest in it. Then used the jad file to run the application. But the midlets run when deployed and run in the Wireless ToolKit 2.5.2.

Error verifying method MediaMIDlet startApp()V
Approximate bytecode offset 3: Inconsistent or missing stackmap at target
Method............: 10233084 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
Stack Chunk.......: 22700ac
Frame Pointer.....: 2270104
Current IP........: 1033a48b = 1033a46e + offset 29
Previous Frame....: 22700cc
Previous IP.......: 103ce331 (offset 22)
Frame size........: 7 (1 arguments, 6 local variables)
Argument[0].......: 22709fc
Local[1]..........: 0
Local[2]..........: 23eb59c
Local[3]..........: 228064c
Local[4]..........: 23eb5b0
Local[5]..........: 10274b20
Local[6]..........: 23eb57c
Operand[1]........: 246f80c

Method............: 10295954 'com/sun/midp/midlet/Selector.run (virtual)'
Stack Chunk.......: 22700ac
Frame Pointer.....: 22700cc
Current IP........: 103ce331 = 103ce31b + offset 22
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 6 (1 arguments, 5 local variables)
Argument[0].......: 2270ba4
Local[1]..........: 2280728
Local[2]..........: 22709fc
Local[3]..........: 0
Local[4]..........: 0
Local[5]..........: 0
Operand[1]........: 2280728

VM status:
Instruction pointer.: 1033a48b (offset within invoking method: 29)
Next instruction....: 0x4c
Frame pointer.......: 2270104
Local pointer.......: 22700e8
Stack size..........: 128; sp: 227011c; ranges: 22700b4-22702b4;
Contents of the current stack frame:
22700e8: 22709fc (lp)
22700ec: 0
22700f0: 23eb59c
22700f4: 228064c
22700f8: 23eb5b0
22700fc: 10274b20
2270100: 23eb57c
2270104: 22700cc (fp)
2270108: 103ce331
227010c: 22700e4
2270110: 10233084
2270114: 22700ac
2270118: 0 (end of frame)
227011c: 246f80c (sp)
Execution stack contains 108 items:
2270ba4
ALERT: java/lang/VerifyError: MediaMIDlet.
2280728
22709fc
0
0
0
0
1
23eb580
10295954
22700ac
0
2280728
22709fc
0
23eb59c
228064c
23eb5b0
10274b20
23eb57c
22700cc
103ce331
22700e4
10233084
22700ac
0
246f80c

Execution completed.
3558357 bytecodes executed
144 thread switches
1669 classes in the system (including system classes)
18695 dynamic objects allocated (561732 bytes)
3 garbage collections (484200 bytes collected)
Execution completed.
3558357 bytecodes executed
144 thread switches
1669 classes in the system (including system classes)
18695 dynamic objects allocated (561732 bytes)
3 garbage collections (484200 bytes collected)
ALERT: java/lang/VerifyError: MediaMIDlet.

The code inside startapp() looks like this.

public void startApp() {
if ((playerGUI != null) && restartOnResume) {
playerGUI.playSound();
}

restartOnResume = false;
}

Regards
Saatvi S.
15 years ago
Congrats on your great achievement...
Keep it up



Saatvi S.
SCJP 1.4
16 years ago
HI,

Actually the real exam was quite tricky. But i think it would be easier if you practice more and more mock exams and just complete all the practice exams available in Whizlabs. It helped me a lot. Go through the e-book of kathy sierra thoroughly. The questions provided for each chapter will be very helpful. Do those fully.
I think practice of doing more and more questions will be more helpful when you are facing the final exam. I didnt do anything other than these. Just refered to some simple java books if i had doubts. Thats it.

All the Best

Regards
Saatvi
SCJP 1.4
[ September 25, 2007: Message edited by: Saatvi Sudhahar ]
16 years ago
Thanks to Kathy Siera .i went through the ebook once. Did the mock exams in Whizlabs, studied for 3 weeks and managed to get this score. Now i have started SCWCD 1.4. Javaranch is really helpful for me..

Thanks to the Javaranch community

Saatvi S.
University of Colombo School of Computing (Undergraduate)
16 years ago