glassfish server JDK/JRE issue - java

I am trying to setup grassfish4 server in my eclipse Juno. I have both JDK1.8.0-05 and jre8 installed. When I am creating the new server, I get this for selecting JDK1.8.0-0
"This server runtime requires JRE 1.7 or higher.".
and when I select jre, I get this "Glassfish server runtime requires full JDK instead of JRE".
In the preference-java-Installed JREs tab, I have my JDK checked. and pointing to the location C:\Program Files (x86)\Java\jdk1.8.0_05 and my jre unchecked pointing to C:\Program Files (x86)\Java\jre8.
What settings I need to do to fix this problem? Please suggest.

GlassFish 4 does not support Java 8 yet. There is a 4.0.1 release planned for later this year that will fix this.

Related

Tizen Install on Windows 10 will not recognize JDK 9 installed

I am attempting to install the 64-bit version of Tizen SDK on my Win10 Home Laptop. However, every time I get the error that I either don't have java 8+ installed or that the JAVA_HOME environmental variable isn't set right.
Now I've read other questions on this, and I've set the JDK directory as first in the "Path" environmental variable. I've added the JAVA_HOME environ. var and pointed it at my JDK directory. I've rebooted twice throughout this (just in case).
I tried to install the 32-bit version of Tizen SDK, but immediately got the error that I'm not on a 32-bit OS.
I have d/l and installed Java 9 SDK and JRE. They're in
C:\Program Files\Java\jdk-9 &
C:\Program Files\Java\jre-9 respectively.
Here's my Path variable:
Path Variable Image
Any help would be mucho appreciated!
Response on Oct, 2017:
** So far Tizen studio installer can't recognize new version of Java. **
You need to install Oracle Java 8 for now.
Additional Checklist:
[✔] Tizen developers site states "Do not install OpenJDK". Make sure you are using OracleJDK instead of OpenJDK. Related links you might see:
Forum Post
[✔] There's a Tip&Tech document on Tizen Developers
Community called 'Guide for Setting JDK'. As you are having Issues, You may check it out.
Tizen: Guide for Setting JDK
[✔] I expect you are using the Latest Tizen Studio 2.0.
Latest Tizen Studio Download Link
Cause history says, Java compatibility Defers with IDE versions:
Tizen-sdk-for-wearable-setup Installation issue because of JAVA HOME
Edit on March, 2019:
Tizen-Studio now supports OpenJDK 10
To use Tizen Studio install Oracle Java Development Kit (JDK) 8, JDK 9, or OpenJDK 10 .
Prerequisites for the Tizen Studio
OpenJDK 10 and OpenJFX Installation Guideline on Tizen Developers Site
I was stuck there for a while, too. In addition to setting JAVA_HOME to C:\Program Files\Java\jdk-12.0.1 (no bin at the end), I also added C:\Program Files\Java\jdk-12.0.1\bin to the beginning of PATH; then it worked.
I've had the same problem, therefore i installed JDK8 from oracle website and the installer works fine. (no need to reboot) If you don't need specific JDK9 stuff, go with 8 and you will be good to go. Don't forget to update JAVA_HOME and Path to point to JDK8.
I have set as user variables CLASSPATH set to C:\Program Files\Java\jre1.8.0_144\lib, JAVA_HOME set to C:\Program Files\Java\jdk1.8.0_144
As system variables i've added to the existing Path this value C:\Program Files\Java\jdk1.8.0_144\bin and JAVA_HOME the same as above (even though i'm not sure the latter one is required).
PS. I have both JDK8 and 9 installed and Windows 10 64bit. I tried installing Tizen on debian using JDK9 and i got the same error, i'm sure that using JDK8 will work (need to check installation on OSX though)
Cheers!
On my M1 Mac with macOS 12, I was having trouble getting the Tizen package manager to run. It kept giving me:
Java Development Kit (JDK) was not found on your computer. To use the Tizen Studio, you need to install the JDK 8 or later. Please go to http://www.oracle.com/technetwork/java/javase/downloads and download a JDK.
Deleting ~/.package-manager solved the issue.
In my case adding "C:\Program Files\Java\jdk-12.0.2\bin" (with the quotes) to the PATH did the trick, i.e. the installer run successfully
Information on the tizen website is incomplete. On Windows 10 using OpenJDK follow the article and you need to enter another environment and system parameters after adding Java_home.
Parameter is "PATH" value is "%JAVA_HOME%\bin" otherwise Tizen Studio installation wont recognize it.
I download the IDE of version 3.2 and install the open jdk10, IDE can load successfully, but load the emulator failed when click the tools -> emulator manager.
error: could not create the java virtual machine.
my setting:
path: %JAVA_HOME%\bin
JAVA_PATH: c\jdk-10
what's the problem here? please give some suggestions.
The only thing that worked for me in the end was:
Uninstall the recent Java version and install Java SE 8u231.
After that, I tried Tizen 1.3, and it worked.
I don't know if the newer versions works, but the above worked for me for now.

Netbeans would not find compatible jdk while installation

Netbeans would not find compatible jdk while installation while JDKs are located at C:Java and the files are:
jdk-8u73-windows-i586
jdk-8u73-windows-x64
jdk-8u141-windows-i586
From NetBeans Installation Instructions
The default location in Windows is C:\Program Files\Java\jdk1.7.0_10 or similar.
If your JDK is at C:\Java you just have to:
re-install the JDK under the default Netbeans location, or
specify your custom location during the installation wizard
Since I've run into this problem and this Q/A came up in my search, here is the solution that I found worked for me on the Windows platform.
I had to set up an system environmental variable named JAVA_HOME that pointed to the JDK directory.
JAVA_HOME=D:\Program Files\Java\jdk1.8.0_144
Even after this change, I still ran into the "An unknown error occured while validating path."
Right-click on the NetBeans install software and select "Run as Administrator...". It looks like running the installer under your normal account, even though it may have admin rights, is not enough to scan the "\Program Files" folder and find the JDK.
*Delete your old java files.
*Download jdk file from.
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
*install new jdk version.
*Then install NetBeans //Now it will automatically identify your jdk and no need for manual selection...

Unable to locate executable for jre1.8.0_77

Says on my eclipse "Unable to locate executable for jre1.8.0_77". It also deleted the JREs :( I tried to run my project and went into Windows and preferences to add it but I couldn't.
Go to Windows > Preferences.
Locate Java > Installed JREs. (Or simply type JREs in the search
box).
The screen will show the list of JREs.
Click on Add button, locate the new folder on your machine and select.
Remove the old JRE from the list.
Same Question has asked before and here's the Link - How to change default JRE for all Eclipse workspaces?
Maybe you updated Java version but your PC's environment variable for JRE is still referring to the old version of JRE. If you updated Java, update your environment variable also.
recently i encountered same issue,
this happened after i updated my jre
because of this there was mismatch with jdk and jre versions
uninstalled java and installed newer JDK (SE ) kit. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
now both jdk and jre are same

How do I solve GlassFish error 'Glassfish server runtime requires full JDK instead of JRE' while configuring GlassFish server?

I am going through a strange problem which I dont know how to fix.
I am trying to configure GlassFish 4.0 in my eclipse. When I click on GlassFish 4.0 from the server list and hit next, it throws an error stating:
Glassfish server runtime requires full JDK instead of JRE
I already added jdk1.8.0_73 in eclipse, so I selected that from the drop down. Once I select that it throws a new error stating:
This server runtime requires JRE 1.7 or higher.
I have jre1.8.0_66 also in the drop down, when I select that it again goes back to the previous error:
Glassfish server runtime requires full JDK instead of JRE
The error goes back and forth whenever I select jdk or jre and I am clueless on how to proceed. Can anyone throw some light on what to do here?
Glassfish 4.0 does not support Java 8.
With you version of Glassfish, you need to install an select JDK 7.
If you want to use JDK8, try installing Glassfish 4.1 or newer, or replace it with a fully compatible fork called Payara.
GlassFish 4 does not support Java 8 yet. than you need install a Java 7 JDK for while.
There is a 4.0.1 release planned for later this year that will fix this.
Glassfish server runtime requires full JDK instead of JRE
Start eclipse
Go To windows ---> Preferances
Under javainstalled JRES hit Add button
Select ‘Standard VM’ Then Next
Set JREHome=” C:\Program Files\Java\jdk1.6.XXXX”

Upgrade Java version for Web Application

I have a web Application and i need to upgrade java jre version from 6 to 7 .I am using Eclipse as IDE.I tried to update the Jre from eclipse .I have even updated the JAVA_HOME environment variable but i am getting following error
C:\Program Files\Java\jdk1.7.0_55\jre..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
Thanks
Download java hereand install it as a common application.
Then in Eclipse use Window->Prefrences->Java->Installed JREs
#Roman Bondar I guesss OP wanted to know more than just the setting.
Basically, JREs are meant to be downwards compatible, so that you are able to execute java classes compiled with version 6 with a runtime from java 7.
But as always, there may be special cases when things have to be changed, e.g. container or libraries. I remember a case back when I migrated to java 6 that it required a special version of JBoss.
Check out this Oracle blog as a starting point.

Categories

Resources