I'm using Netbeans 8 and I've activated the Java Me and installed the platform. But when I click run project I see this window:
Where is phone emulator with the GUI view and how can I get it?
According to this page you can develop to MIDP with Netbeans. But at the download page is not available on any bundle.
I downloaded the Java SE version and went on Tools .. Plugins .. Available. There I found Java ME plugins. After install, unfortunately the New Project wizard only showed Java ME Embedded option. I believe this is what happened with you. Be sure to check the Visual Mobile Designer (Mobility category) this will add the options to Java ME projects.
But you still need to add Java ME Platform manually... Download it from here. Then go to Tools .. Java Platforms .. Add Platform .. Java ME CLDC .. Selected the folder where you installed the SDK.
Related
I would like to know if it is possible to configure the Java VM used by Eclipse to run in this way, that it uses JavaFX SDK libraries.
Please be aware! I don't want to build JavaFX applications on my own in Eclipse, e.g. by using E(fx)clipse or other plugins.
Another remark: I don't use Java development perspective in Eclipse or a Java project. So it won't work to add the external .jars of JavaFX as user libraries!
In my use case I have an third-party GUI application based on JavaFX that has to be started out of Eclipse.
If I try to start this application I receive the following error:
The system reqirements are not met.
Could not find: javafx.properties
in:
/Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.2.v20220201-1208/jre/lib
Your Java Virtual Machine seems not to support JavaFX,
required to run the XXX.
Please make sure you provide a valid path to the Java FX
modules during gui installation.
As you can see by the error message my Eclipse runs on a MacOS x64 system.
But I think the way to configure the VM of Eclipse should work on each system the same way.
Thank you.
Steve
If you have a third-party GUI application, then you do not need an IDE like Eclipse.
Ideally the publisher of your app would have provided the app as a package that includes the JavaFX/OpenJFX libraries as well as all the parts of a JDK/JVM needed to run that app on your Mac.
If the publisher gave you only the bare-bones app without the needed libraries & JDK/JVM, you can obtain a JDK/JVM bundled with those libraries.
At least two vendors supply a JDK with JavaFX/OpenJFX libraries:
ZuluFX by Azul Systems
LibericaFX by BellSoft
Both are available free-of-cost with optional support plans available for sale. Download either product as an installer specific to your Mac, while paying attention to either Intel-based Mac or Apple Silicon (ARM, AArch64) based Mac.
You can verify the install by using a console such as Terminal.app to run:
java --version
… and:
which java
You can also use the Finder to locate your installed JVMs by choosing Go > Go to Folder… where you paste:
/Library/Java/JavaVirtualMachines
If your app contains the necessary MANIFEST.MF file, you may be able to launch your app by double-clicking. If not, use a console such as Terminal.app with the java command to launch the app.
My Java specifications: JRE: 1.8_u60, JDK: 1.8_u60
JAVA_HOME is set-up correctly.
I´ve downloaded and installed the latest Eclipse Mars Java SDK (Eclipse Mars.1 / 4.5.1) from the official Eclipse download page and used the installer.
I used the Eclipse update site from e(fx)clipse to install the JavaFX IDE.
As described in the site´s tutorial I should now be able to create FX projects with File > New > Other > JavaFX ...
But unfortunatelly I don´t have any option to create an FX project. There is no sub-section called JavaFX.
How do I set up JFX for Eclipse Mars properly (if my setup does not work at all)? here is one more similar Question asked.
Remove the installed plugin and try installing it through Marketplace.
Edit after the answer was accepted:
Just for clarification, it should also work in the way OP has tried it. Before one tries to troubleshoot why it's not working, it is very convenient to verify that the installation is not working from marketplace either.
Since JavaFX is now on default classpath, you do not need any extra plugin to create a JavaFX application. You can just create a simple Java Project in Eclispe and get started.
But, e(fx)clipse is recommended to install on Eclipse because of the extra features it adds to the IDE.
I just finished installing the e(fx)clipse plugin on my Eclipse Mars to check if your scenario can be reproduced, but unfortunately after installing the plugin & restarting Eclipse, I can create JavaFX projects.
You can either try restarting Eclipse or re-install the plugin again.
As mentioned in previous Question by tomsontom, you can check your status of e(fx)clips bundles. Or you can use All-In-One Download.
I have installed Netbeans 8.0 that comes with pre installed Java ME plugin.
Now when I tried to create a new Java ME project it said No Java ME Platform found. Please add at least one
Also, the field "Java ME platform" was blank. So I clicked on Manage platforms and added Java ME CDLC Emulator Platform and gave the path to JAVA ME SDK.
It discovered the platform and added the devices.
After doing this, the field "Java ME platform" is still blank and I'm not able to select the Java Me platform.
Please help!
Had the same problem during installation on a new PC.
I'm developing for J2ME, CLDC 1.1, MIDP 2.1,
but I just couldn't manage to add a platform that would allow me to compile and run my app on an emulator.
The PC is a 64-bit PC, and I'm using the SDK 3.4, which is 32 bit
so finally I installed Virtual Box, Windows 7 32-bit as guest, and finally it worked
- installed first java jdk-8u25-windows-i586
- then netbeans 8 netbeans-8.0.1-windows
- once netbeans installed, activated java me plug in, there was no need to install it, it's pre-installed
- then java me sdk 3.4 oracle-jmesdk-3-4-rr-win32-bin
- then in netbeans, tools - java platforms, add the platform java me 3.4 just installed
Now I can emulate my app again
There are two kinds of projects available Java ME embedded and Java ME. The Java ME CDLC Emulator Platform is used for Java ME projects.
One thing you should check is the activation step as described here: https://netbeans.org/kb/73/javame/cdc-quickstart.html
For my case I had the EE version of Netbeans 8.0 so I wen to the start page then to plugins and downloaded everything that had to do with JME. I also had to download SDK Java ME SDK 3.2.
I also downloaded the plugins for Netbeans (even though I did the plugin installation through the IDE) Java ME SDK 3.2 Plugins for NetBeans from: http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html. Then went to Tools->Plugins selected the Downloaded tab and finally Add PLugins ...
UPDATE - Tried with NetBeans 8.0 All (contains JAVA ME)
Even after activating the plugins I still had to download Java ME SDK 3.2 Plugins for NetBeans. Only then the IDE is offering me Java ME when I click at new project.
What I did:
1) Activate Java ME plugin, restart the IDE:
2) Install Java ME SDK 3.2
3) Go to Tools add platform. Restart IDE just in case. Still offered only Java ME embedded as project:
4) Go to http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html and download the plugins for the Netbeans IDE. Unzip the file and install them (press ctrl-a to select all the nbm files and click open):
5) Click install. This will install everything needed and it will prompt you to restart the IDE:
6) Restart the IDE and there it is:
I have installed android SDK in my computer successful.but when i configure the environment in eclipse.it show "No target available". Actually,i had loaded API form 1.6 to 4.0.I tried many ways to slove the question.but all is failure.now,i have no idea already.who can help me. i would thanks very much.
You need to do all of the following:
Download and install Java and Eclipse
Download and install the Android SDK
Install the Android plug-in for Eclipse (from Help, Install Software)
Configure Eclipse to point to your SDK
Create an Android virtual machine (for emulation)
Create an Android project (for your app)
Q: It sounds like maybe things are going wrong at Step 4, correct?
Q: If so, can you browse to the directory with your SDK (for example, from Eclipse can you browse to "C:\program files (x86)\android\android-sdk")?
Are you using the ADT Plugin for Eclipse? If you are you can easily configure Eclipse for Android Development. Android site says -
Select Window > Preferences... to open the Preferences panel (Mac OS
X: Eclipse > Preferences). Select Android from the left panel. You may
see a dialog asking whether you want to send usage statistics to
Google. If so, make your choice and click Proceed. You cannot continue
with this procedure until you click Proceed.
For the SDK Location in the main panel, click Browse... and locate
your downloaded SDK directory. Click Apply, then OK.
For more information you visit their configuration page - http://developer.android.com/sdk/eclipse-adt.html#configuring. Hope this helps
Ok so now did you first try out the option in the Options menu -
But if this doesn't work it means there is something wrong that is happening due to conflicts in OS. I would like to know what is your Desktop Environment? Ubuntu? Window? Mac?
I'll assume that your using a Windows environment... The best option the community has noted down is the usage of Force HTTPS resources to be downloaded via HTTP. You could also use a Proxy and get the URLs fetched.
For more information look at this thread.
im starting developing android applications and i learned from a Hello World tutorial. but when im running it this comes to the screen
Launch configuration ANSIBuffer references non-existing project Basic.
Please, help me and tell how i can run a android application.
Thanks
I would recommend downloading the official adt (android development tools) plugin for eclipse. You can find instructions on how to do that here: http://developer.android.com/sdk/eclipse-adt.html you need to make sure that you have the most recent version of android sdk installed before you do that. Instructions on how to install that are here (this includes a eclipse tutorial): http://developer.android.com/sdk/installing.html
I believe that that is all you need. Just ask if you need more help!
I did a guide once for a course, but it is in spanish:
http://otfusion.org/android/ (look for day 2)
But basically the guide is this:
Download JDK from here: Java SE - Oracle
Download Android SDK (.zip format, just unzip it in C:\android-sdk or if you are in *nix /home/user/android-sdk) from here: Android SDK - Developer Guide
Start ~android-sdk/tools/android and download your desired android target (eclair, donut, honeycomb, etc)
Download Eclipse for Java Developers* (as far I know, the latest eclipse WORKS on my notebook) from here: Eclipse - Indigo
Install eclipse in a readable/writable location like /home/user/bin or /opt/eclipse but give permission to the file - chown -r user:users /opt/eclipse (in Windows you must not have problems) otherwhise you will have problems.
Install ADT Plugin just add this site in Eclipse "Add Software" option (Help menu) https://dl-ssl.google.com/android/eclipse/
Restart Eclipse
Start one AVD and initiate your project using the Run button (As Android project) or whatever hotkey you use.
Also, Installing guide from developer.android.com Troubleshooting
*Note: Classic didn't work for me