Friday Dec 16, 2011

How To Integrate Java ME SDK With NetBeans?

Now that you have installed NetBeans and Java ME SDK, but you don't see Java ME SDK menus yet? Probably you have not installed Java ME SDK plugin yet.

After Java ME SDK installation is complete, start your NetBeans to see what happened. You'll notice new 'Java ME' menu up there. It will show only one item "Download JavaME SDK Tools". Plugin download and installation will happen once you press "Yes" button on the corresponding dialog. Be patient, because download takes time. See the progress bar down there. Wait until the Tools are installed, and restart NetBeans. Go to 'Java ME' menu and enjoy the new GUI for Java ME SDK.

font-size: 14px; line-height: 20px; text-align: left; ">Of course, the SDK still can be used via command line interface. The command line tools are in <SDK install dir>\bin. For example, try emulator.exe

Friday Aug 12, 2011

NetBeans vs. Eclipse?

NetBeans vs. Eclipse. Which IDE are you using when you develop a Java ME application?

You know that Java ME SDK has been officially supporting only Eclipse platform. We wondered how many Java ME developers were using NetBeans versus Eclipse. So we did a quick poll. Here is the result.

120 people participated. 52% use NetBeans, while 34.5% use Eclipse as primary IDE. "Other" included IntelliJ. 34.5% is a significant number, so we are considering to add support for Eclipse in the future.

Do you agree with the result? What do you think?

Wednesday Sep 02, 2009

A Window Into History

Today I'm not going to write anything serious and even anything related to the mobile development. As every working day I came to the office, started to read emails and found one with a link to A Tribute to Sun Microsystems web page. It moved me back in time. Before I joined Java ME SDK team I was a member of NetBeans engineering team, working on different parts of NetBeans IDE. I spent eight years working on this great product and from this time are also pictures which want to show you. Trip to one cold February day eight years ago starts here :-)

Looking out from the window it seems that autumn weather came to Prague. Winter will be here in a few months and hopefully there will be good conditions for another snowball batlle, this time between Java ME SDK and JavaFX teams :-)

PS: I'm throwing the snowballs from the farther terrace.

NetBeans Snow Battle

Tuesday Jul 21, 2009

NetBeans 6.7 and Java ME SDK 3.0

Three weeks ago has been released NetBeans 6.7. This release integrates Java ME SDK 3.0 so mobile developers can now use all advantages of NetBeans Mobility and Java ME SDK 3.0 together for their development.

For more information visit NetBeans 6.7 release information page.

Tuesday Jun 23, 2009

Java ME wireless on-device debugging

There is a geeky alternative to the common on device debugging process. You usually take a cable, connect your device to the computer and wait until Active Sync connects your device and your computer. After it your device appears in the Device Selector in the GUI and in the emulator -Xquery command output.
There is an other (a bit unusual and untested ;) ) way, that requires no cable, no Active Sync. You just needs a Windows Mobile device that supports Wi-Fi and that a Wi-Fi enabled computer or a wireless router. Here is a simple HOWTO.
  1. Install a Java(TM) ME runtime on your device. You can find it in the on-device/winmobile-arm subdirectory of your Java ME SDK 3.0 installation directory. More info about this in the previous blogpost.
  2. Make sure that your computer is running and somehow accessible via Wi-Fi. There is no difference between plugging it into Wi-Fi enabled router and starting an ad-hoc network on the computer.
  3. Turn the WiFi on your device on, write down it's IP address. (This can be different for different vendors and models a good point to start your search is START -> Settings -> Connections -> WLAN Settings -> Connection Status. Otherwise you should check documentation shipped with your device.)
  4. Check, that the phone is accessible from the computer. Run ping <IP_OF_THE_DEVICE> or tracert <IP_OF_THE_DEVICE>.
  5. Run the Sun Java CLDC Emulator runtime, that you have installed on device.
  6. Go to the bin subdirectory of SDK installation. Run device-address.exe add ip <IP_OF_THE_DEVICE> command here.
  7. Wait a few seconds, check that emulator.exe -Xquery output contains a newly connected device. (Or run the GUI shipped with the SDK and have a look at the Device Selector)
  8. Now you are done, the device should work as any other device or emulator. You can for example run emulator.exe -Xdescriptor:../apps/FPDemo/dist/FPDemo.jad -Xdevice:<NAME_OF_THE_DEVICE_FROM_XQUERY> that installs an example midlet on the device. For debbuging you can use NetBeans Mobility or run emulator.exe -Xjam:install=<YOUR_JAD> -Xdevice:<NAME_OF_THE_DEVICE_FROM_XQUERY> -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=12345,suspend=n and connect any debugger to the port 12345

And some smaller tips at the end:

  • if you use a wireless router, you probably can configure it's DHCP server to provide all the time the same IP to your device. In such a situation, you don't need to run the device-address command every time. Your device is detected and connected every time, it appears in the wireless network.
  • it is possible to connect multiple phones to the computer at the same time. It is great for debugging on several different devices.
About

Java ME Platform SDK is a toolbox for developing mobile applications. Java ME SDK Download

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today