Adding Java ME platform in NetBeans - netbeans

I installed NetBeans 7.2.1 with JDK 7 and the plug-in - Java ME SDK 3.2 (it has Wireles Toolkit 2.5.2 inside).
I try to create new project by clicking File/New Project/Java ME/Mobile Application. Then I click next. In next window the message:
Every CLDC project needs to have CLDC compatible SDK/platform/emulator assigned to it.
Pressing Install SDK/Platform/Emulator button opens Platform Installation wizard, which allows you to "add platform".
I tried clicking Install SDK/Platform/Emulator button and I tried then indicating the folder, where Java ME 3.2 is installed. It can recognize the emulator, but the project cannot be started.
After the choice, there appear several options. How to make in new version? Most of the thing in Internet are connected to old version.

Have you tried using this Oracle tutorial online? It's fairly current (September 2012). There's also an even newer one just posted here.
If you install the Java ME SDK that way, you should have the proper Java Platforms there already. It's hard to read your screen capture, but it doesn't look like the proper Java Platforms are there. I would try again, following the steps in the link I provided.
I just tried it, with NetBeans 7.2.1, and the Java ME SDK 3.2. The version of NetBeans I used was from this download page and was the Java EE version.
One easy thing to miss in the steps below is that on this download page, you need to download both the Java ME SDK and the Java ME SDK Plugin for Netbeans. Not just the plugin. This applies for the installation instructions in either of the two links I posted above. Install the SDK, and not just the plugin.
In case that link later changes/dies, here are the important steps:
How to integrate Java ME SDK 3.2 with NetBeans
By SungmoonCho on Sep 25, 2012
Many people like to use Java ME SDK with IDEs. We provided instructions on how to integrate the SDK with NetBeans through the download page, and also through the release note, however, let me explain it here once again with some screen shots.
Download Java ME SDK and NetBeans plugin from here.
Install Java ME SDK first. You will have the emulator and the runtime on your machine. Also please unarchive the NetBeans plugin somewhere.
Launch NetBeans.
Go to "Tools" - "Plugins".
Check out the "Installed" tab. Check "Show details". If you see the previous version of Java ME SDK Tools installed already. Check those to uninstall them.
Go to "Settings" tab.
Click "Add", and provide the location of NetBeans plugin. In my case, it is "file:/C:/Users/sungcho/Downloads/nb-me-sdk-plugins-uc/updates.xml". Don't forget to add "updates.xml" at the end.
Click "Okay"
Click "Available Plugins" tab.
If you scroll down, you will see three Java ME SDK Tools. Check "Java ME SDK Tools" plugin. Also check others as you desire.
Follow the instruction and install them.
Restart NetBeans
That is it. Done. Now you will see Oracle Java ME SDK 3.2 in your Java Platform list.

Finally, I configured it. I had plug-in without SDK:). I uninstalled plug-in. I installed Java ME SDK 3.2, then I installed plug-in. I installed SDK not in the default path. I indicated platform using "Add platform" button. I indicated 2 platforms and now the project can be run in the emulator.
Here are platforms:):

Related

Installing J2ME plugins in NetBeans 12.4

I downloaded J2ME plugins from here: https://www.oracle.com/java/technologies/javame-sdk-downloads.html
I can't install the plugins, this is the error:
Some plugins require plugin Java Profiler Core to be installed.
The plugin Java Profiler Core is requested in version >= 2.1.1 (release version 2) but only 3.41 (of release version different from 2) was found.
The following plugins are affected:
    Java ME SDK CPU Profiler Snapshot Viewer
    Profiler (Java ME Projects Support)
Please help me, thank you
First a couple of basic points:
I don't know whether Java ME works with NetBeans using a JDK version > 8 so I first set the default platform for NetBeans to JDK 8. This step may not be necessary, but it definitely works.
Do not download the NetBeans plugins from the Oracle page you linked to. Instead, use the approach detailed below to use older plugins which are compatible.
In NetBeans 12.4:
Go to Tools > Plugins > Settings and click Add to add http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz as an Upgrade Center, then check the Active column for its entry.
Click the Available Plugins tab. You should see four entries for Java ME. Click the Install checkbox for all four, then click the Install button to install those plugins:
Next download oracle-jmesdk-8-0-rr-win32-bin.exe from the Oracle page you linked to, then run the downloaded executable to install the Java ME SDK to a location of your choice (if you haven't already done that).
Add the ME JDK you just installed as a Java Platform within NetBeans using Tools > Java Platforms > Add Platform.... The exact steps are detailed in the update at the end of this answer to How to fix Netbeans 8.0 not detecting Java ME.
So Java ME SDK has been added as a Java Platform, and the older Java ME... plugins have been installed. The final step is to verify that you can now use the Project Wizard to create a Java ME Embedded Application in NetBeans 12.4:
Select Files > New Project... and you should see a new entry in the list of Categories list titled Java ME Embedded. In the Projects list there will be a single entry titled Java ME Embedded Application:
Click Next >, and you should see a screen similar to this:
Set the Project Name field, and any other fields, as necessary.
Finally, click Finish to create the Java ME project.

eclipse: Java ME SDK plugin doesn't work

I'm trying to work with Java ME Platform SDK in Eclipse Juno on Windows XP.
I have followed this tutorial: I installed Java ME SDK 3.2, MTJ toolkit and plugin for Eclipse. Everything was done without errors, and of course I have restarted Eclipse, but I can't see any effect:
Say, at this step from instruction: Select Window > Open Perspective > Other and choose Java ME, then click OK.
There is actually no "Java ME" perspective in "Other" list.
Or, this one: Select Window > Preferences > Java ME and select Device Management, and click Manual Install.
The same: I go to Select Window > Preferences, and there is NO "Java ME" item.
If I go to Help -> About Eclipse -> Installation details, then I see installed plugins there: Java ME SDK Demos, Java ME SDK Tools, Mobile Tools for Java Examples, Mobile Tools for Java SDK.
I have read instruction many times, and I still can't find what did I miss.
Any help appreciated.
I had the same problem. After enough reading I realized that there are some conflicts that occur with Mobile Tools for Java in the Juno edition. It works well with Indigo.
Alternatively, you could use Eclipse Pulsar for developing for the mobile platform. It comes preloaded with all the tools required for mobile app development.
Download Eclipse Pulsar (Helios SSR2) from http://www.eclipse.org/downloads/packages/pulsar-mobile-developers/heliossr2.

Eclipse cannot open java me perspective

I'd like to learn java me. I've gone to the following site to download what is needed. My Eclipse version is Juno.
I've done the following:
Eclipse Juno
The Oracle Java ME SDK requires the MTJ toolkit, but it is not bundled with Juno and it must be installed manually. Therefore, install MTJ toolkit first.
Go to Help > Install New Software.
In the "Work with" field, enter this URL: http://download.eclipse.org/releases/indigo
Click Add. When the plugins are discovered, open the Mobile and Device Development Tools hierarchy and check Mobile Tools for Java Examples, Mobile Tools for Java SDK, and Mobile Tools for Java Examples. Click Next. On the installation screen select all plugins and click Finish.
A Juno plugin named org.eclipse.jetty.server_(version).jar conflicts with the MTJ libraries when the plugin version is higher than 6. If it is you must prevent it from loading by changing its name so the Jar file is not parsed. For example, change it to: org.eclipse.jetty.server.old
To open the device selector, select Window > Open Perspective > Other and select Java ME.
The MTJ is installed along with the 3 packages that also need to be installed:
Mobile Tools for Java Examples
Mobile Tools for Java SDK
Mobile Tools
for Java Examples
When I choose: Window > Open Perspective > Other
there is no Java ME option. Does anyone know why that option is not shown?
I do not know exactly why, but MTJ does not run with Juno. If you like Eclipse try it with Indigo.
Have you considered using NetBeans?

Problems in Installation of Blackberry JDE Plugin for Eclipse

I am having issues installing the BlackBerry JDE plugin. I have downloaded and installed the plugin from the BlackBerry site. The installation ran smoothly and completed. However when I open Eclipse the option for BlackBerry is not showing.
I don't know what the problem is exactly. I tried many things but I am heading nowhere. I want to know how to add the plugin and get started on BlackBerry development.
The default download of the BlackBerry Java Plug-in for Eclipse is a combination of Eclipse and the BlackBerry Eclipse plugin. For version 1.3 and 1.5, the install directory will contain a full Eclipse Helios installation, along with the BlackBerry plugin. You should start eclipse from that directory.
From the download page, one of the new features for version 1.5 is:
Ability to download and install the BlackBerry Plug-in into an existing Eclipse environment by providing the BlackBerry Plug-in through an Eclipse update site.
So to take advantage of that, follow the instructions on "BlackBerry Java Plug-in for Eclipse Update Site" which explain how to add the site to your existing Eclipse setup, and then install the plugin from the site.
There are 2 options, as noted above.
The blackberry way: you download the full plugin (the name is misleading, since it's a full eclipse install including the plugin) from here.
The eclipse way: you install a 32-bit Java 6 SDK (64-bit is not supported and Java 7 has known problems with the code signing tool), then download the 32-bit Eclipse (I use version 3.7 "Indigo"), and install the plugin from Eclipse (Menu Help->Install new software, type the url "http://www.blackberry.com/go/eclipseupdate/3.6/java" inside the "Work with" box, then you need to select the plugin and at least a Blackberry SDK from the list)
If everything works, you should see the blackberry icon in the "About" box.
You should also see a Blackberry perspective (under Window->Open Perspective), a Blackberry menu item under "Project"), and a Blackberry section if you create a new project.
There is no such thing as a "Blackberry tab". The Blackberry development tools are integrated with the environment.
you could have done some mistakes while the installation. I am also using in windows 7 only. Its working perfectly for me. Please delete the current eclipse and try to install as shown in this tutorial.
I have installed it on my new laptop just yesterday. Simple, follow the steps and you will be done. Note that the latest eclipse is Indigo and not Helios; I am using Indigo and I advocate it.
Go grab your Indigo
Unzip into ANY dammed directory. You must see a folder with "eclipse" created.
Double click the Violet eclipse Icon. You must now be seeing eclipse smiling at you.
Select the menu Help->Install New Software
Select a hyperlink present at label "Find more software by working with the "Available Software Sites" preferences"
Now select Preferences and the select the button "Add".
Fill up Name and Location values with the following
Name:BlackBerry Java Plug-in Update Site, Value: "http://www.blackberry.com/go/eclipseUpdate/3.6/java"
Select OK.
That's it!

Configuring Blackberry Eclipse plugin for 4.70 or 5.0 components

I am looking for help in configuring the Blackberry development environment. In fact, it is quite a frustrating process. The blackberry site is pretty useless. Between links that have been moved, details that are assumed and documents that are out of date it is proving very difficult to get anywhere with blackberry development.
Pheww, now that my rant is done. Here is my problem:
I have finally got the JDE for Eclipse working (that is a story in itself). However, my blackberry workspace is only giving me the option of targeting the 4.5 JDE components. How do I update it to use the 4.7 components?
It would be preferable to have step-by-step instructions but I would appreciate any help that can be provided.
Here are the details:
I have Java jdk1.6.0_14
Eclipse version 3.4.1
I have installed the Blackberry JDE 4.7
I have installed the Blackberry JDE Component Package 4.7
I have installed the Blackberry Smartphone simulators 4.7
Totally agreed - it's not at all obvious what to do. I've never had luck using their update site, so I just download and install the component packs manually:
Download the "Eclipse Software Update for the BlackBerry JDE v4.7 Component Pack" from the BlackBerry developer zone (it's a zip file)
From Eclipse open the Help menu and choose Software Updates
Click on the Available Software tab
Click Add Site
Choose Archive and select your zip file
Make sure everything under the JDE 4.7 tree is checked
Click Install and continue through the wizard
You are a life saver!!!!!!!!!!! This worked perfectly. I understand the frustration. If this. If this doesn't work I would recommend deleteing the entire directory and reinstalling eclipse.
You should already have JDK installed:
This is what I downloaded for 64bit windows:jdk-6u16-windows-x64.exe get one that matches your OS. Should be jdk version 6.
I installed this version: Should work for windows x86 and 64bit:
eclipse-java-ganymede-SR2-win32.zip
Other versions shouldn't work. has to be 3.4 but not 3.5 (gallileo) and it has to be for java.
Then I installed the plugin. Then I followed the instructions above and it worked.
eclipse-java-ganymede-SR2-win32.zip does not work with the 64-bit JDK.
You have to use eclipse-SDK-3.4.1-win32-x86_64 with the 64-bit JDK. Once you use these two things together and install the Eclipse Plugin, the installation works fine, but I always get "Cannot find RIMIDEWin32Util.dll. This is a required component of the IDE." and then "Cannot find RIMUsbJni.dll. Without this dll the IDE cannot connect to USB enabled handhelds. Add RIMUsbJni to java.library.path". Both of the supposedly missing files are located in my workspace path under .metadata.plugins\net.rim.eide.bootstrapper\installDlls. I have placed those two files pretty much everywhere I could think of, even c:\windows\system32, and it still claims to not be able to find these files.
Now for the fix....
You can use eclipse-java-ganymede-SR2-win32.zip with the 32-bit JDK. Make sure you add the JDK\bin to your %PATH% environment variable. You can then install the Blackberry JDK Plugin and Component Pack and everything will work!
Note: In order to "Configure Blackberry Workspace" from the Blackberry menu, you must first create a Blackberry project. Found this out the hard way.