Author Topic: Using Netbeans To Build Java Apps  (Read 6211 times)

AsLan^

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://
Using Netbeans To Build Java Apps
« on: December 28, 2006, 09:48:12 pm »
Below is my original post that someone might find useful...

But right after finagling with this for hours (and starting this thread), I discovered a very simple way to do it without all these plugins.

Basically my problem stemmed from the fact that I couldn't find a template for an AWT Frame in NetBeans so for some reason I assumed it didn't exist.

It's "hidden" in the "New File" dialog. I was only using the right click "New" which only shows JFrames, bah!

Anyway... you still need to set the Source Level to 1.3

Bah humbug, that was my morning

Quote
This works for me using Windows running on Parallels and running the resultant app on my SL-6000.

Install NetBeans 5.5

Install NetBeans 5.5 Mobility Pack for CDC

Install Nokia Series 80 Platform SDK for Symbian OS, for Java, Personal Profile (download the Personal Profile version as opposed to the MIDP one).

Be sure to register the Nokia platform in NetBeans from the Java Platform Manager menu.

In NetBeans:

Choose New Project.
Select CDC Application.
Select Nokia S80 CDC S80_DP2.0_PP_SDK as your Platform, CDC S80_DP2.0_PP_SDK as your Device, and PP-1.0 as your Profile (these should be default).
Name your project, leave other options as default.

You can now build your app as desired.

I personally find it helpful to include a "Close" button into the interface so you can end the program without having to close the Nokia emulator which take a while to load (at least in Parallels).

To create a jar runnable on the Zaurus:

Right click your project and select Properties.
Select Sources.
Change Source Level to 1.3 (for some reason this doesn't get saved on restarts) and click OK.
Right click your project again.
Select Build Target Bundle.

The resultant jar file will be placed in the target directory of your NetBeans project directory.

Copy that jar file to the Zaurus and run using the command: evm -jar AppName.jar
« Last Edit: December 28, 2006, 10:39:00 pm by AsLan^ »
doublethink.