I am trying to set up the Java ME 8 development environment. I am setting up the environment on a Windows 10 64-bit PC to develop a Java ME Embedded 8 application for use on a Raspberry Pi 3 model B. I have set up the Raspberry Pi successfully. However, when setting up the development environment on my Windows PC, Netbeans fails to detect the platform.
I have installed:
Java SE Development Kit 8u221
Java ME SDK 8.3
Netbeans 8.1
I have also tried
Java SE Development Kit 12.0.2, and 8u152
Java ME SDK 8 and 3.4
Netbeans 8.0.2 and 8.2
I have tried downloading and installing the sun java wireless toolkit. I have tried uninstalling and reinstalling in many different orders with different combinations of versions. I have tried changing permissions. I have tried installing the Netbeans plugins automatically and manually in multiple ways and orders. I have also tried setting it up as a Custom CLDC Platform Emulator multiple times but every time Netbeans crashes and breaks, and I have to uninstall it and reinstall again.
I have also checked the release notes of the Java ME SDK 8.3 and it says it supports Windows 10 64-bit.
Screenshot of platform set up steps taken:
Step one of platform set up:
Step Two of platform set up:
Step Three of platform set up:
I know that there are many similar questions on here, but I can assure you I have read all of them, tried their solutions and I have still not found a solution.
Any help any of you can offer me would be greatly appreciated.
SOLUTION: Downloaded an older version of the JDK - jdk 8u11. Then I directed my Java ME SDK 8.3/bin java file to that version instead.
Related
This question falls somewhere between Firebase Tools, MacOS and Java. Probably 75% Java, 20% Firebase Tools and 5% MacOS.
Starting with v10.5, firebase-tools started stating that 'Support for Java version <= 10 will be dropped soon in firebase-tools#11. Please upgrade to Java version 11 or above to continue using the emulators.'
I run macOS v11.6.5 on a Macbook Pro from mid-2014. When I go to Java's Downloads page, it recommends Java 'Version 8 Update 331'. Not Java 11.
Information on downloading Java 11 seems to be scarce. Oracle's page of certified configurations includes MacOS 11, but I can't find anywhere obvious where Java 11 can be readily downloaded.
A big part of the problem seems to be the terminology used. If I run java -version, I get:
java version "1.8.0_331"
Java(TM) SE Runtime Environment (build 1.8.0_331-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.331-b09, mixed mode)
Okay, I have build 1.8 of the Java Runtime Environment, aka the JRE if you are a Java enthusiast. That is apparently what is triggering the warning in Firebase Tools.
There is also a Java product out there called 'Java SE 11'. The product itself is ambiguous, but the checksums all say 'SDK'. (A Software Development Kit: a thing that enables developers to develop Java programs. The name doesn't imply a Runtime Environment: a thing that enables Java to run on an operating system.) There is an article out there which claims that, if you install Java SE 11 and run java -version, it will spit out java version "11.0.7". That will probably satisfy Firebase Tools.
But Oracle's release notes say: 'In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option.' No longer an option... as in now you implicitly get JRE 11 with SDK 11? Or as in the SDK and JRE are now fully divorced, and the JRE must be ferreted out of its hiding like a wild beast?
UPDATE 6/5/22: Java's checksums page now says 'JDK', and I guess that is better than 'SDK' because it implies 'Java Development Kit', which this Wikipedia article claims to include both a JRE ('java') and SDK (most of the other files).
To install Java SE:
Go here.
Scroll down to find your product. I chose Java SE 11. (Oracle will probably list later versions as they are made available.)
Choose your operating system. I chose MacOS.
Choose your file set. I chose the DMG installer.
Download your chosen file set.
5. Do whatever is required by your platform to install Java SE using the downloaded file set from #5.
After installing Java SE 11, java -version now says "11.0.14" and Firebase Tools is now satisfied. My best guess is that JRE 11 was implicitly downloaded, and that developers need to start ignoring the main Download page used by everyone else. (Why didn't the main Download page recommend Java 11 from the start?) Hopefully someone will see this question and clarify whether in the future, the 'Java SE' product implicitly includes both the JRE and SDK, and that the numbering system will always encompass both. In other words, hopefully when someone says we need 'Java 11', it means that we need to download SE 11, containing JRE 11 and SDK 11.
This link has a JDK installer that solved my problem today. I needed to close and reopen all my VScode windows to get it to work.
https://www.oracle.com/java/technologies/downloads/
With latest versions this error appears: !! emulators: firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators.
You can download Java SE Development Kit 18 from this link. Just choose your operating system, download and install the file. When installation is complete you need to restart you terminal and voila it works now:
firebase emulators:start
But Oracle's release notes say: 'In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option.' No longer an option... as in now you implicitly get JRE 11 with SDK 11? Or as in the SDK and JRE are now fully divorced, and the JRE must be ferreted out of its hiding like a wild beast?
With Java 8 and earlier, the end user of a Java application was responsible for providing a Java runtime environment for the application to run on. This is what the JRE was for. The user would have to install this runtime environment on their system in order to run Java applications. This is also why the https://www.java.com/en/download/ page recommends Java 8 (the JRE), which was the last version of Java where an end-user should concern themselves with installing a runtime environment.
Starting from Java 9, it is now the application distrubutor's responsibility to provide a Java runtime that can run the application. So, there are no more JREs.
The application developer should use jlink, which is a tool included in the SDK, to create a 'runtime image' (essentially a bespoke JRE to run a single application), that can be used to run the application, and bundle that runtime image with the application. The jpackage tool can also be used to create application images (including a runtime image), as well as installers.
I bought a Samsung Gear S3 Frontier smart watch and would like to design a custom watch face. I have downloaded and installed the required Java SE Development Kit 9 from Oracle. When attempting to install Tizen Studio, I encounter the following error:
Cannot find the 64-Bit Java Development Kit (JDK). Check if the installed 64-Bit JDK version is 8 and over, or the JAVA_HOME environment variable is configured correctly.
screenshot
I found a helpful post regarding environment variables, but I still encounter the same error when trying to install Tizen Studio.
Edit environment variable
Do you have any advice?
You need to uninstall new version of Java (9) and install Java 8 (JRE 1.8) from oracle. Set the path or environment variable.
Install Tizen Studio again. Hopefully it will work. so far Tizen studio installer can't recognize new version of Java.
For Watch face design you can also try Gear Watch Designer (GWD) from Samsung Developer site. It is more easier tool for watch face design. http://developer.samsung.com/gear/design/watch-designer
I have just installed Fedora 21 on my laptop and installed OpenJDK8(JDK), Netbeans and SceneBuilder.When I create a new JavaFX project the following message appears:
I can only fix it if I add the Oracle Java 8 under Manage Platform. How can I get these done with OpenJDK only?
Where from did you install openjdk? If used the one coming from fedora it does NOT have javafx with it which sort of is ok from the fedora point of view because JavaFX - although it is an openjdk project - is not jsred and so there's not must to include it.
IIRC the problem for Fedora and other linux distros was/is that they did not get some of the native parts built from Source which is something they require for all stuff they ship!
I am trying to develop a java SE application on a Raspberry Pi, using NetBeans. I have created a platform for the Pi using the Platform Manager, and the platform verifies ok; however, in project properties>Run>Runtime platform, the only option listed is "project platform", despite that fact that when I click "manage platform" next to it, my platform shows up fine.
Does anyone know what could be causing this? I have a feeling something might be misconfigured, or maybe I'm using the wrong type of project or something, but notihng I try seems to work. The project is just a simple java application (created with new project>java>java application), and I am using the latest version of Raspian on the Pi, with the preloaded java installation, located at /usr/lib/jvm/jdk-7-oracle-armhf/jre.
Any help is greatly appreciated.
I had the same problem yesterday, and I solve it!
Main reason is: you need the same JDK for NetBeans and Raspberry.
I use Raspberry PI 3+ (64 bit) with Debian OS (32 bit), JDK 8 has support for ARM 32 bit, I downloaded the last version: "jdk-8u271-linux-arm32-vfp-hflt.tar.gz".
https://www.oracle.com/it/java/technologies/javase/javase-jdk8-downloads.html
Unfortunately, JDK 15 hasen't the 32 bit ARM version...
I also installed the JDK 8 in Windows with NetBeans: "jdk-8u271-windows-x64" and then, you need to change the default JDK in the .conf NetBeans file.
https://www.codejava.net/ides/netbeans/change-jdk-for-netbeans
Now, when you open Properties/run/ you can select the remote platform.
Enjoy,
Best Regards.
Marco
I am using preinstalled jdk for development on mac which is 1.6.0_17. With this version or copy if installed jdk i cannot run java applets in firefox or any other web browser on mac. if i update my mac with latest java which is Java for mac OS X 10.6 update 6 then i can solve java applet. But with latest java update i cannot connect to MSSQL Server which is bug in java 1.6.0_29. I would be happy to install older version of java for mac OS X but those are not available, may be i am unable to find them through google ?
My query is, how can i solve both problems ? can i install two java versions on mac and use them parallely, lets say one for eclipse and other for browser. OR is there any other way to cope both problems.
I am using current snow leopard, myEclipse, Java 1.6.0_17 and mssql server 2008.
The bug that causes the JDBC driver to fail is fixed in java 1.6.0_30 - see http://www.oracle.com/technetwork/java/javase/6u30-relnotes-1394870.html
If you can't wait for update 30 for the Mac to arrive, the bug description suggests that you may be able to avoid it by reconfiguring your the JDBC connection to use a non-SSL/TLS channel. (I've no idea how you'd do that, but it is worth investigating if you are desperate for a workaround.)
Alternatively talk to Apple or Oracle's Java support.
I have not solved it 100% but some how solution or workaround works. Which is working with two javas
Java for mac osx
OpenJDK for development
So i have updated my mac with latest java version that i can easily use java applet.Later i have downloaded and configured openjdk for development.
if you are using mac then perhaps this link would be more helpful .
[1]: http://openjdk.java.net/projects/macosx-port/
[2]: http://code.google.com/p/openjdk-osx-build/
Simply make a folder "javaVirutalMachines" under "/Library/java/" and double click on alreadly download build file of openjdk. **