Adding Java ME platform in netbeans 8.0 - java

I am having trouble installing the ME platform for Netbeans 8.0 - I have:
Installed Netbeans IDE 8.0
Installed jmesdk-3.4
Installed the jmesdk-3.4 plugin & activated it in Netbeans
When I try to create a New Java ME > Mobile application project
I get a warning saying
No Java ME Platform found. Please add at least one
When i try to add the java platform by locating the jmesdk-3.4 folder, it tells me no platform was detected automatically(failed) and it requires me to add manually.But adding it manually just creates more confusion.
need help please.

How to install JAVA ME SDK 3.4
Go to the Java ME SDK Download page javame-sdk/downloads/index.html.
Click the Accept License Agreement option.
Create an Account or login
Download the Java ME SDK installer file and save it to any location on your computer.
Double-click the installer file to run the installer, and follow the instructions.
Remember the installations directory. e.g. -> U:\Java_ME_platform_SDK_3.4
When the installation is complete,
the Java (TM) ME Platform SDK Device Manager icon appears in the Windows system tray.
Unzip the downloaded oracle-jmesdk-3-4-rr-nb-plugins.zip to a folder
e.g. oracle-jmesdk-3-4-rr-nb-plugins
How to activate Java ME support in NetBeans IDE?
Choose Tools > Plugins from the main IDE's toolbar.
In the Plugins dialog box, click the Installed tab and select Java ME in the list of available features.
Click Activate.
At the Welcome panel of the Installer dialog box, click Activate.
When the activation is successfully completed, click Finish.
Click Close to close the Plugins dialog box.
How to register Java ME SDK as a platform in NetBeans IDE?
Choose Tools > Java Platforms in the IDE.
In the Java Platform Manager dialog box, click Add Platforms.
In the Add Java Platform dialog box, select Java ME CLDC Platform Emulator and click Next.
Select the folder where Java ME SDK is installed in the Choose directory to search for platforms dialog box and click Open.
Ensure the Java ME SDK platform is chosen in the Add Java Platform dialog box and click Next.
After the IDE detects the platform, click Finish. Java ME SDK should now be registered in the IDE.
In the Java Platform Manager dialog box, click Close.
How to install the downloaded plugin
Go to Tools -- Plugins -- Downloaded
Click Add Plugins
Navigate to the Plugin folder e.g. oracle-jmesdk-3-4-rr-nb-plugins
Select all .nbm
Restart Netbeans
enjoy the new program examples
Done
More Information wiki.netbeans

I heve readed that that can be being caused by the new serialization filter feature in the JDK(Serialization Filtering. Seems that it was added to JDK 8 after the 112 update so on this update of the JDK it shall work but it certainly is possibly to use the Java ME SDK on JDKs with this feature. I did it at least on JDK 1.8.0_192. To this I had to make some changes on the java.security file.
The chages were:
Remove the # on front of jdk.serialFilter
Replace the texto after
jdk.serialFilter to *
Romove the # on front of
sun.rmi.registry.registryFilter property and of it parametres and
remove the whitespaces and / from the same.
Do the same on the
sun.rmi.transport.dgcFilter property.
Append ;* at the last parameter
of sun.rmi.registry.registryFilter
It seems to be importante to not corrupt the parameters because I do this and the emulator wasn't starting.
I tried on JDK 11.0.1 and it don't work.

I did what the other answer recommends, which worked, but only when using Netbeans IDE 7.4 and JDK 1.7 for a 32-bit system (https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html). Currently using a Windows 10 64-bit system. Note that I did not accept any updates for the required Java ME plugins, as I hear that might make things crash.

Related

Eclipse and Java Runtime Environment Portable

I want to run eclipse and java portable, for this i did the following steps:
Download and install Eclipse Portable
Download and install the Portable Java Runtime Environment
Open the Eclipse settings file ../EclipsePortable/App/Eclipse/eclipse.ini
Set the -vm as your portable Java installation at the beginning
Eclipse is running now, but when i want to add a new project, there is no Java Project.
Does anyone know how to fix this?
Taken from this answer, you need to do below steps
Go to "Help" -> "Install new software"
Select your eclipse version by clicking the small arrow next to "Add"
search for "java" in the search bar
Tick "Eclipse Java Development Tools" and hit finished.
after installation click on "restart eclipse"

How to manually install e(fx)clipse addon for Java Eclipse?

I need the e(fx)clipse Window Builder to develop my application. I am using Windows XP Java 8 is unsupported. I must use an older version of e(fx)clipse to that supports Java 7. I've looked everywhere on how to do this but all sources are leading me to installing the latest version via the (Install New Software) feature in Eclipse. This doesn't work for me as I cannot find the correct p2 link for older versions of the software. Please help.
Here is the steps for offline install plugins.
Open WindowBuilder Pro download page, click the link under Zipped Update Site. If you are using Eclipse 3.8, you can download WB v1.7 for offline install.
If you don't want to install extra plugins, select menu item Windows > Preference. Then select tree item Install/Update > Available Software Sites, uncheck all items and press OK to close it.
Unpack the downloaded zip file to a folder (do NOT use the file expleror of Windows...)
Select menu item Help > Install New Software.... Click Add... button and Local... button to select the folder in previous steps.
Eclipse will list avaiable features for install. You can select the features and click Next button. You may get errors such as:
Cannot complete the install because one or more required items could not be found.
Software being installed: SWT Designer XWT Support (requires Eclipse WTP/WST) 1.7.0.r42x201405021548 (org.eclipse.wb.xwt.feature.feature.group 1.7.0.r42x201405021548)
Missing requirement: WindowBuilder Core for XML GUI's 1.7.0.r42x201405021458 (org.eclipse.wb.core.xml 1.7.0.r42x201405021458) requires 'bundle org.eclipse.wst.sse.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: SWT Designer XWT Support 1.7.0.r42x201405021548 (org.eclipse.wb.xwt 1.7.0.r42x201405021548)
To: bundle org.eclipse.wb.core.xml 0.0.0
Cannot satisfy dependency:
From: SWT Designer XWT Support (requires Eclipse WTP/WST) 1.7.0.r42x201405021548 (org.eclipse.wb.xwt.feature.feature.group 1.7.0.r42x201405021548)
To: org.eclipse.wb.xwt [1.7.0.r42x201405021548]
In this case, you can unselect features: WindowBuilder Core for XML and SWT Designer XWT Support. Since they depend on the plugins of Eclipse webtools... (Or install Eclipse webtools before install WB)
Once all errors gone, accept the license agreement and click Next to finish the installation. Then you can use WB after restarting Eclipse.

How to get Window Builder's SWT designer in 64-bit Eclipse

I am trying to create a SWT WindowBuilder application in 64-bit Eclipse running on Windows 7.
I removed both the 32-bit and 64-bit JRE on my computer along with the old Eclipse and old JDK, rebooted, downloaded the latest version yesterday evening, and then installed the latest 32/64 versions of the JRE and the JDK. Yes, I used a "professional" unzip utility, 7-zip, to unzip the "Eclipse IDE for Java Developers" and then copied the contents to the "C:\Program Files\Development\Tools\Eclipse", which I created.
I launched Eclipse this morning and tried to create a SWT application and SWT was MIA.
I went to the "Menu > Help > Install New Software..." dialog to find that SWT was already installed.
Here is an image of of the new project dialog "Menu > File > New > Other".
As you can see Eclipse came bundled with SWT, I did read the installation note about the fact that only Eclipse does not support the Windows built-in zip compression tool, and used 7-zip.
How do I get SWT to install properly? I am using a freshly downloaded version and did not do anything other than go into Eclipse.
Why would SWT not show?
I figured out this problem and another one.
Installation Instructions
Download 'Eclipse IDE for Java Developers', not the EE version.
Extract the files using WinZip, 7-Zip, or whatever, just not Windows built-in tool. See installation notes on Eclipse download page for this requirement.
DO NOT place files in the "C:\Program Files" folder on Windows 7. See here for note.
BEFORE starting eclipse.exe, go to the environment settings and define the HOME variable and set that to %USERPROFILE%. You will need to log out and then log back in. Windows will not read the environment settings without doing this set and as such Eclipse.
Install PortableGit-1.8.4-preview20130916 and add the path in the PATH variable.
Start Eclipse.
Go to "Menu > Help > Install New Software..." and type in kepler. Select the SWT and WindowBuilder from the list. It was supposed to come prebundled, but did not, better this way. You will need to restart Eclipse.
Turn on the error log, "Menu > Windows > Show View > Error Log" to see any other errors that might exist.
I am still working on the EGit warning, but SWT exists.
I tried these steps repeatedly (deleting Eclipse folder and trying again) and the steps worked each of the times that I tried it. Yay!
select install new software
there will be download.eclispse.org/releases/(Your eclipse version)
Select
SWT Designer
SWT Designer Documentation
SWT Designer Core

How Do I Add Java To My Eclipse for C/C++ [duplicate]

I have the eclipse CDT installed, and I would like to install Java development functionality (JDT) on top of my CDT installation. I've been Googling from an hour but I can't figure out how to do this.
What plugin do I need to install? What update site do I need to use?
All versions of Eclipse have a standard base, then a specific set of plugins, depending on the version. All you have to do is go to the Help > Install New Software menu, select the Eclipse update site (e.g. "Galileo - http://download.eclipse.org/releases/galileo"), and under the Programming Languages section, select Eclipse Java Development Tools.
If you don't see the Java Development Tools in the list, click on the "already installed" link on the install page--you may already have the Java tools installed.
Remember to write http:// before the download.eclipse..... if you don't put that it won't work
For Eclipse 2020-06 the weakest precondition seems to be
1.) JDK 11
2.) eclipse.ini has top entries
-vm
<jdk-11/jre-11 path>/bin
3.) JDT appears in "Install New Software" repository http://download.eclipse.org/releases/2020-06 as "Eclipse Java Development Tools"
NOTE: Installation of Java 11 is not required, downloading/extracting ZIP File is sufficient, e.g. if you prefer to continue development with Java 8
Update for Eclipse Release 2021-3
Here, with the JDT-Release JDK 11 or later is already installed
Choose Menu Help->Install New Software,
Select Work With: "2021-03 - http://download.eclipse.org/releases/2021-03"
Filter "Development Tools"
Select "C/C++ Development Tools SDK"
Complete Installation with Next ... Restart Eclipse

Can't create Java Web Application in NetBeans

I want to write a java web application using NetBeans 7.0.1, but i can't find the option Java Web in File -> New Project. Do i need to get any special Java edition to do that?
Go to the Tools menu and select Plugins.
Click on the "Available Plugins" tab.
Check the box for "Java EE Base" (note: on older NetBeans versions, the plugin to install was called "Java Web Applications").
Click the "Install" button.
Click your way through the dialogs until the plugin and its dependencies are installed.
Restart the IDE.
You should now find "Java Web" in File -> New Project.
Go to the Tools menu and select Plugins.
Click on the "Available Plugins" tab.
Check the box for "Java EE Base".
Click the "Install" button.
Select "Web Projects" from plugin list
Check the term & condition checkbox
Click next and wait while NetBeans downloading the plugin
Restart IDE
My answer will provide images for you to understand easily.
Go to Tools -> Plugins like this image
In Plugins windows, select Available Plugins tab, choose and install Java EE Base like this image
Now just follow the instruction and install the plugin, when it's done, restart the Netbeans, then you can create Java Web Application like this image
I had problems while finding the plugins under the Available plugins tab. The reason was under the settings tab, the three checkboxes were unchecked. I checked them all and then I can see the plugins under the Available plugins Tab.
And then I followed the steps mentioned in other answers. Hope this is also useful to this context.
Well, maybe you cant find Java Web in the installation list, so, search for Java EE Base, in Netbeans 7.x is the option, and includes the comment that includes Java Web and EE.
regards
If you have NetBeans 8.2+ and installed the EE edition, open the plugin panel from Tools -> Plugins. Go to the installed tab and check the Java EE Base plugin. Then activate that plugin.
If you need other options as well the select all the plugins under the Web and Java EE category and activate them.
In my case Above mentioned thing didn't worked for me.
I have installed multiple JDK (JDK version 8 and 9) due to which Netbeans 8.2 might not working as expected and then I was unable to create project.
Then I removed JDK9 and cleared cache from \Users\admin\AppData in windows.
Then I was able to create Java Project.

Categories