java-wireless-toolkit

I canot add Mobile SDK (Sun Wireless Toolkit) to IntelliJ IDEA

断了今生、忘了曾经 提交于 2020-01-07 04:36:26
问题 I have IntelliJ IDEA 10.3 Community Edition installed along with JDK 1.6 which has been working fine for Android development. Now that I am trying to develop J2ME applications, I installed Sun WTK 3.0, but I am unable to add it to IDEA since there is no "Add mobile SDK" option in Project Structure dialog. 回答1: Java ME plug-in is not available in the Community Edition. It is supposed to be available from Settings | Plugins , but for some reason it was not published there. The solution would be

j2me wtk find memory leak

送分小仙女□ 提交于 2019-12-11 21:01:23
问题 I built a game in j2me and I have memory leak because from time to time I get out of memory exception, now I want to spot where this leak is coming from and I heard you can do it with sun's wireless tool kit. Can someone explain me exactly what is this wireless tool kit, how I install it and how to use it in-order to find memory leaks ? Thanks in advance ! 回答1: After you download wtk,Go to \bin\utilsw.exe.Under Utilities you will see "Memory monitor".Here you can graphically view app memory

J2ME - PNG created in PhotoShop not displaying in emulator

时间秒杀一切 提交于 2019-12-11 12:08:17
问题 My midlet is showing some images fine, but not others. They are all 8-bit PNGs, but the ones that aren't displaying are the ones I have created myself in PhotoShop. So I am thinking maybe my PhotoShop (CS6) settings are wrong... PNG-8, Selective, Diffusion, Colors: 256, Dither: 100%, Matte: None, Web Snap: 0%, Convert to sRGB: ticked, Width: 48, Height: 48, Percent: 100%, Quality: Bicubic. I've experimented with a few of these settings, but to no avail. Any ideas? There is a similar problem

How to make a j2me project in NetBeans 7.0?

耗尽温柔 提交于 2019-12-11 10:01:19
问题 I have installed Netbeans 7.0 (in window xp SP3) and I also installed "Wireless Toolkit 2.5". But when I open Netbeans File->New Project then there is only option for Java SE and Java EE. Not for Java ME. I also try Tools-> Plugin -> and search for Java ME but I was not able to find "Java ME". 回答1: At first install 'Mobility' plugin for NetBeans IDE for J2ME development. You can do this from Tools > Plugins > (Select and install). Then DO this.. In netbeans, Tools > Java Platforms >Select Add

Png Image support of J2ME WTK Emulator

孤者浪人 提交于 2019-12-08 01:32:24
问题 I use a png image in my project that is not displayed in emulator but it can be displayed in phone. Then i open it with photoshop, save as png and use that image. It is displayed both emulator and phone. I couldn't figure out the difference of original and edited one. And is there any setting of emulator for image display? And how can i understand any png file is supported or not? original image edited image 回答1: I preferred PNG files is good for MIDP. You can check following links, It will

Why is my NullPointerException not being caught in my catch block?

非 Y 不嫁゛ 提交于 2019-12-07 08:17:23
问题 I have a thread in which I catch all errors in a big, all-encompassing catch block. I do this so that I can report any error, not just expected ones, in my application. My Runnable looks like this: public final void run() { try { System.out.println("Do things"); /* [1] */ doUnsafeThings(); } catch (Throwable t) { System.out.println("Catch"); /* [2] */ recover(); } finally { System.out.println("Finally"); /* [3] */ } } I would expect the NPE to be caught by the Throwable catch block. Instead,

Png Image support of J2ME WTK Emulator

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 15:53:58
I use a png image in my project that is not displayed in emulator but it can be displayed in phone. Then i open it with photoshop, save as png and use that image. It is displayed both emulator and phone. I couldn't figure out the difference of original and edited one. And is there any setting of emulator for image display? And how can i understand any png file is supported or not? original image edited image I preferred PNG files is good for MIDP. You can check following links, It will helps you. What image types does MIDP support? Image Formats in J2ME 来源: https://stackoverflow.com/questions

How to start two J2ME Midlets on Mac OS X with WTK 3.0.

血红的双手。 提交于 2019-12-06 06:19:07
Whenever I want to start second Midlet, I get error MIDlet suite is already running. I'm developing under Netbeans. On Windows it work OK. you have to choose a different phone or emulator from the project properties while you're running the first emulator. 来源: https://stackoverflow.com/questions/4014079/how-to-start-two-j2me-midlets-on-mac-os-x-with-wtk-3-0

Why is my NullPointerException not being caught in my catch block?

风格不统一 提交于 2019-12-05 16:15:25
I have a thread in which I catch all errors in a big, all-encompassing catch block. I do this so that I can report any error, not just expected ones, in my application. My Runnable looks like this: public final void run() { try { System.out.println("Do things"); /* [1] */ doUnsafeThings(); } catch (Throwable t) { System.out.println("Catch"); /* [2] */ recover(); } finally { System.out.println("Finally"); /* [3] */ } } I would expect the NPE to be caught by the Throwable catch block. Instead, the output at [2] is not printed, and neither is [3]. The output at [1] is printed. What I do get on

Some input files use or override a deprecated API

半世苍凉 提交于 2019-11-30 23:37:44
问题 I just downloaded the new LWUIT 1.5 and when I compiled my project then I saw in the output trace these lines: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. I use Sun Java ME SDK 3.0 So how to make the -Xlint recompilation? 回答1: according to comments in older SO question, "-Xlint in NetBeans is set under project properties, run or compile options" - see details here: Compiling issue in NetBeans There is also a thread at Netbeans