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!
Related
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.
I try to use the Eclipse Oxygen v4.7.3a (Oxygen) Java IDE.
I try to use window builder to build a GUI application with Java, but when I try to add the window I have an error message.
I tried to google it, but I cannot even know what that message needs from me.
It says:
problem opening wizard
The selected wizard could not be started.
Plug-in org.eclipse.wb.swing was unable to load class org.eclipse.wb.internal.swing.wizards.application.NewSwingApplicationWizard.
An error occurred while automatically activating bundle org.eclipse.wb.core.java (528).
My java -version output:
OpenJDK version "10" 2018-03-20
OpenJDK Runtime Environment (build 10+46-Ubuntu-5ubuntu1)
OpenJDK 64-Bit Server VM (build 10+46-Ubuntu-5ubuntu1, mixed mode)
I had exactly the same error occur in Eclipse Oxygen.3a on my Mac with Java JDK 10 installed. There is code in WindowBuilder 1.9 that uses a Java feature that was either altered or dropped in Java 10. I was able to resolve the problem by making two changes (they assume that a Java 9 JDK is available on your system; if not, you must install it):
change the Java VM for Eclipse to one in a Java 9 JDK (using the -vm setting in eclipse.ini; see this link for a good post on how to do that)
change the JRE for the project to a Java 9 JRE
The first change is the more important one since Window Builder is a development aid running as part of Eclipse.
I made the project JRE change for my own sanity so I didn't have a mix of Java versions. You may be able to skip that change (I didn't try it).
I still have Java 10 as the default for the system, so you don't have to completely fall back to Java 9 if you install both JDKs. It may take some tweaking to get both Java 9 and 10 installed and have the one you prefer working as the system default.
I have installed SAP GUI 7.40 for linux on client computer including JRE 1.8.0.04 but when I try to access the GUI it gives error:
The system requirement are not meet. Your Java Virtual machine does not support javafx required to run the SAP GUI for Java 7.40 rev 4.
My client OS is CentOS. I event changed JAVA_HOME path in /etc/profile, but its still giving the same error.
Any suggestions?
Try using Oracle Java rather than the OpenJDK based version which ships with CentOS. Unfortunately, the Java versions which ship with CentOS don't include JavaFX at the moment.
See also:
Centos 7 - where is jfx library for openjdk8? - and related: unix.stackexchange version of the same question.
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. **
Currently, I am running Mint Linux (Release 9). I need to downgrade Java from version 1.6 to 1.5, and have been trying to figure out how to go about this. So far, I've had no luck. The package manager doesn't seem to have it.
Does anyone have any suggestions?
Thanks,
- Chris
As you explained in your comments, you need JDK 5 because you are working on the source code of Android itself and the instructions say:
Ubuntu Linux (64-bit x86)
... JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with #Override.
You can do this:
Uninstall any Java that you got via the package system of your Linux distro
Download JDK 5 Update 22 for Linux
Run the JDK installer with sudo, install it wherever you like (for example in /opt or /usr/local)
Set your PATH environment variable to include the bin directory of the JDK
There should be no need to downgrade your Java installation to develop for Java 1.5. If you are using a tool such as Eclipse, you can set the project attributes so that it tests for Java 1.5 compatibility, and gives errors if you use a Java 6 feature. If you absolutely insist on having a Java 1.5 JDK then just install it alongside the default installation and use it in place of Java 1.6.
This should be a question for SuperUser.com, but my recommendation is to download the 1.5 JDK, and change Java path to where you downloaded it.
Or you could use the info on Ubuntu Help, it should work for you since Mint is based on Ubuntu. That link explains how to select the version of Java.