PDA

View Full Version : Using Netbeans to develop an MIDP app



Nathan_M
January 31st, 2009, 06:02 PM
Hi,
I've seen the awesome screencast on the Netbeans site, and I want to give it a go. Unfortunately, I can't find an emulator that works on Linux with Netbeans. Has anyone had any luck with this?

drubin
January 31st, 2009, 11:19 PM
Hi,
I've seen the awesome screencast on the Netbeans site, and I want to give it a go. Unfortunately, I can't find an emulator that works on Linux with Netbeans. Has anyone had any luck with this?

The standard installed wireless toolkit has an emulator that would be enough for testing on.

Have you installed the wireless toolkit WTK ?
Did you install the netbeans mobile enabled version?

Nathan_M
February 1st, 2009, 02:29 AM
I can't get that working. Whichever path I select for the Java interpreter, it doesn't work. Here's what it says when I run the installer, with the bits I entered in blue(ish).


Do you agree to the above license terms? [yes or no] y


No suitable Java interpreter was detected

0) Specify a path to a Java interpreter directory.
1) Cancel this installation.
Select a choice [0-1]: 0

This application requires Java 2 SDK, Standard Edition (1.5 or later). Enter a path to a Java 2 SDK (For example: /user/jdk1.5/bin). You can type "exit" to cancel installation.
Enter a path to the Java 2 SDK: /usr/lib/jvm/java-6-sun/jre/bin
/usr/lib/jvm/java-6-sun/jre/bin/java
Testing /usr/lib/jvm/java-6-sun/jre/bin/java...

Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.2 for CLDC.
[ default is /home/nathan/Downloads/WTK2.5.2 ]:/home/nathan/wtk
Installation directory is /home/nathan/wtk.

Check for Product Updates

Sun Java(TM) Wireless Toolkit for CLDC includes Check for Product Update feature.
This feature will be active every 7 days and will inform you about the new Product Updates.
No personally identifiable data such as name, address, or e-mail address will be collected. You can disable this feature later in Preferences.
The information collected by Product Update includes the following:

* Operating system
* Country and Language setting on your computer
* Date and version of the Wireless Toolkit that you are about to install
* Unique random user ID generated by the Wireless Toolkit

Collected data will be used for future improving of the product.
Please read Sun's Privacy Policy at http://www.sun.com/privacy/index.html

Check for Product Updates? [yes or no] y

Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
/home/nathan/wtk/
JVM Folder
/usr/lib/jvm/java-6-sun/jre/bin/
Check for Program Updates
Enabled

Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings .
1) Cancel the installation.
Select a choice [0-1]: 0
Checksumming...

Extracting the installation files...
./sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh: 466: /usr/lib/jvm/java-6-sun/jre/bin/jar: not found
Failed to extract files. Installation will stop now.
Please try to install Sun Java(TM) Wireless Toolkit again, or contact wtk-comments@sun.com for assistance.

coolen
September 6th, 2009, 08:42 AM
I don't know if you're still trying, but for anyone who runs across this thread and has that error:

The path to use is not /usr/lib/jvm/java-6-sun/jre/bin, it's /usr/lib/jvm/java-6-openjdk/bin