wtk

How to create J2ME midlets for Nokia using Eclipse

Hi, Nokia has stopped offering its Developer's Suite, relying on other IDEs, including Eclipse. Meanwhile, Nokia changed its own development tools again and EclipseMe has also changed. This leaves most documentation irrelevant. I want to know what does it take to make a simple Hello-World? (I already found out myself, so this is a Q&...

Capturing Audio through Linux in J2ME WTK Emulator

Is it possible to capture audio in the J2ME WTK emulator on a Linux platform? Has anyone on this forum succeeded in doing so? ...

j2mewtk - adding files to DefaultColorPhone temp settings.

I am using Netbeans and j2mewtk to develop and test mobile applications. If I want to do file IO on an image the emulator uses ...\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone[####]\filesystem\root1 to store files for the current, temporary emulation. If I want to operate on a pre-existing image I have to start the emulator, check which t...

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

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 (Throw...

Passing Byte array from Blackberry to .NET Webservice

I am trying to sent a byte array from my Blackberry application to a .NET webservice (asmx). I am using the Sun Java Wireless Toolkit (WTK) 2.5.2 to generate the webservice stubs to use within the Blackberry solution. The WTK project settings are producing the stubs using the JSR 172 specification. I have created the Webservice using ...

Why is java.io.ObjectStreamException used in WTK stub generator for enums?

I am using a web service implemented in WCF which has enums defined in the interface. I am trying to call this from a Java BlackBerry client. I am using Eclipse to develop the Java application for BlackBerry. I am using the Sun Java Wireless Toolkit (WTK) 2.5.2 to generate stub code since the web service is rather large (already in us...

Can I change where the WTK emulator stores its files?

By default, the WTK emulator saves things like files and RMS records under C:\Documents and Settings\username\j2mewtk\2.5.2\appdb Can I change this somehow? ...

Profiling doesn't work on WTK emulator

It used to work, so I know what's meant to happen. You run the emulator and once you're done with it and close it a profiling window pops up and gives you a summary of time spent in different methods. It seems to have stopped working for me. I run my app in the emulator, close it and get this on the console instead: Warning: Could not ...

Are threads really not being garbage collected on WTK emulator?

I'm pretty sure I'm not going mad when I say that Thread objects do not seem to be garbage collected in my J2ME application when running on the WTK emulator (v 2.5.2_01). I have a console message when my run method exits, and it is printed. At the same time I make a call back to the only object that has a reference to the thread and tel...

Receiving SMS sent from the WTK emulator in a custom application

Hello all, I'm using Sun WTK to run a midlet that needs to send and optionally receive SMS. WMA console can be used to send and receive messages to the midlet but I'd like to do the same thing using my own application. I have done some sniffing, and noticed that the messages are sent by UDP from the WMA console to the emulator. Does ...

WTK emulator bluetooth connection problem

Hi! I'm developing a J2ME program with eclipse / WTK 2.5.2 and having problem with connecting two emulators using bluetooth. There is one server and one .client running on two different emulators. The problem is client program cannot discover any bluetooth device. Here is the server and client codes: public Server() { try { ...

bluetooth GPS device in J2ME emulator / Wireless Toolkit

I'm developing a j2me application for my mobile phone (a Nokia). I'm using WTK (Wireless Toolkit) to test my code. Because I'm using a GPS device via a Bluetooth connection, I would like to be able to extend the emulator with bluetooth possibilities. Has anyone experience with BT & WTK? according to this article there is no way to do i...

JavaME: make emulator run a different JRE

Hi, My first steps with JavaME, currently using Sun's WTK 3.0 I understand a JavaME device runs its own Runtime Environment, and that's a 1.3 JRE. Is it possible to make the emulator run the JavaSE JDK 6 ? ...

String.substring(index) has stoped my thread in debug mode.

Hello! I work with j2me polish 2.0.7, in eclipse 3.4.2, with wtk2.5.2_01. I create control which draws text: normal, bold, and italic. The code below is parsing raw text, and search for * and _ symbols, if found than add to draw vector the text and the drawer, and it's just stops after getting second time to the line 58: String test =...

customize wtk 3.0 emulator

Hello, I'm trying to change the screen size for the WTK 3.0 emulators. In the previous versions (2.0, 2.2, 2.5 etc) you would do it in a property file. Now they seem to use .bean files for configuration, but changing the file has no effect. Furthermore, the file is not even used. For example \ClamshellCldcPhone.deviceProperties.bean is ...

Building a workspace (J2ME) on Eclipse 3.6.0

Hi all, I am beginning work on development/maintenance of a J2ME MIDlet application that uses the Nokia N97 SDK. As a first step (I have never developed J2ME/Java applications before), I completed the following steps on Eclipse 3.6.0 Helios: Imported the project using the following step: File -> Import -> Existing Projects into Worksp...

How to send Cell Broadcast message in Java ME development environment?

Hello everybody, I have been trying to develop a Java ME application using WTK 2.5.2 (Java Wireless Toolkit) and Nokia SDK 3. The application would broadcast a CBS (Cell Broadcast Service) message using the WMA (Wireless Messaging API). Documentations says that the CBS messages are read-only, thus it can not been sent. When I tried to s...

How do I run a JAD/JAR in the Java ME SDK (Mac) Emulator from a Netbeans Web Project

Hi there, I'm using Netbeans on Mac. I have a web project that I'm developing, that communicates with a Java MIDlet that has already been developed. In my project /web folder, I have a /client.jar (and .jad) that interacts with my web application. I'd like a way to be able to right-click on the jad, and say "Run as MIDlet", to bring u...

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

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. With king regards! ...