[VERIFIED] Download Java Jre Latest Version

1 view
Skip to first unread message

Basa Uram

unread,
Jan 25, 2024, 11:17:58 AM1/25/24
to knifitilre

EDIT: Just out of a sheer curiosity I checked whether it has been always like that and it turned out it actually has. java -version goes to stderr in JDK 1.1.8 and also in JDK 1.2.2, however the outputs of java.exe without any parameters do not.

download java jre latest version


Downloadhttps://t.co/0ELONzX4ut



If there's any other entry that has a file called java (such as C:\ProgramData\Oracle\Java\javapath) it will run the command against that file instead of the java file in your JDK. There's no need to reinstall the entire JDK unless your files are corrupt or damaged for some reason.

Problem:We had the same problem in our Windows 2012 server. We used JAVA_HOME environmental system variable, an we used in the PATH this kind of settings: ...%JAVA_HOME%/bin;...and no other java related settings was in the PATH.

The problem was we had a space at the end of the value of the JAVA_HOME variable. Like 'C:\Program Files\Java\Jdk 1.8.0_172 ' so the %JAVA_HOME%/bin meant 'C:\Program Files\Java\Jdk 1.8.0_172 \bin'. So because the value was split by space and the system tried to find java.exe at 'C:\Program Files\Java\Jdk 1.8.0_172' where it is obviously not.

You could be using a 32 bit version of java on a 64 bit environment.Export the registry hive form HKLM\Software\JavaSoft and import into HKLM\Software\Wow6432Node\JavaSoft. For 1.6 I only needed JavaHome and RuntimeLib values.

If you face this error in cmd with another error as "could not find runtime environment" after you have done all settings in Environment Variable. Then you just need to run jre.exe in your jdk folder and reinstall it and then recheck it by java -version command. Hope it will help you.

If the path contains spaces there is no need to escape them, see the Eclipse Wiki for more specs. The -vm option and the path must be on separate lines. The -vm option must come before the -vmargs option. On Linux, the path would typically be /bin/java instead of the Windows path shown above. You must use the Java and Eclipse versions must match (i.e. 32-bit Eclipse runs on 32-bit Java and 64-bit Eclipse runs on 64-bit Java).

Note that option -vm C:\Java\jre6\bin\javaw.exe should be right before -vmargs. Otherwise you'll get 'Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit'

2 - Change the default jdk by changing the path. Example here. Make sure you java.exe from your desired jdk is before any other java.exe from any other JDK in the path. ex. in JDK 1.6 you java.exe should be here C:\java\jdk1.6\bin\java.exe.

According to my tests this is the fastest way to get the java version from bat (as it uses only internal commands and not external ones as FIND,FINDSTR and does not use GOTO which also can slow the script). Some JDK vendors does not support -fullversion switch or their implementation is not the same as this one provided by Oracle (better avoid them).

If I want to change java version (from java 7 to java 6), I can just point the symlink (/usr/bin/java) to the corresponding JREs java binary. (We don't need to worry about the javac compiler or java_ws here, in this instance, btw).

Thanks to this answerthe commands for %I in (java.exe) do @echo %$PATH:I showed that there exists a wrong path to java.exe in the Path variable. As the contents of the Path was too long I was not seeing it. in my case (C:\Program Files (x86)\Common Files\Oracle\Java\javapath)

You're probably have java.exe copied over to one of system paths (AFAIK that's Java installer default behavior). To check what actually executes when you run 'java -version' run from command line:
for %I in (java.exe) do @echo %$PATH:I and it will tell you where it is.

When installing a public JRE (used by the Java plugin), a java.exe file is also created in C:\WINNT\system32 (IIRC). It's probably this java command that is executed, since C:\WINNT\system32 comes before the JDK/bin directory in your PATH.

Change the path to the new location of your java.exe file. If you are not sure where you have java installed, you can search your computer for "java.exe"
For example, if you see this:
wrapper.java.command=C:/Program Files/Java64/bin/java.exe
but your java is in the jre8 folder, then you can change it to:
wrapper.java.command=C:/Program Files/Java/jre8/bin/java.exe

I'm trying to get a smart computer group running to check for Java/java version. I can't seem to get it working. I use the script below in an Extension Attribute and have the group set for "is not" Java 8 Update 131 build 11

My question here, suppose we have later version of java like java 11 or later version installed on the node and we have to upgrade Apigee. In this case, do we have to downgrade the java to 1.8 while doing upgrade?

Based on my observation, Oracle Java was used to be identified with its minor version just like the details in the link that you have provided, however recently it has stopped recognising in such way now which the support case that i have logged with FNMS support recently, the support confirmed that the minor version no longer be report due to the current way the ARL did its recognition. Referring to the image "java platform 8 standard.png" attached, the commercial Oracle Java 8.0.211 is only recognised as "Java Platform 8 Standard" without giving any insights to its actual minor version.

To change the default java update-alternatives --config java then follow the prompt. The same can be used for setting the default for javac (the bytecode compiler) if needed. May need sudo to change the default.

So for example Java version 8.0.1510.12 is installed on a machine. I fix the issue with the java file and then update a registry value with 8.0.1510.12. The same should no longer report for my task as the java versions match. Java version 8.0.1610.12 is then installed months later. Now the java version is higher than the value I put in so the machine should report relevant for the task again.

Hello together
Yesterday I installed the Insight Agent on the Rapid7 Insight Collector and today I saw that this server has many java related vulnerabilities. It turned out that with the installation of the collector application, apparently outdated java lib is included.


Has anyone else noticed this? If so, how do you deal with it?
For me, this finding is a bit embarrassing, as we push the patching of Java from our side. But we use systems that also work with outdated Java components.
Best regards
David

Lets assume the users have downloaded and installed JDK8.
Unfortunately, it does not instruct them how to handle a situation when they already have a pre-existing newer java JDK version in their system. Without a JAVA_HOME environment variable setup their system will still point to the newer (unsupported) JDK.

For Java 11, setting -Dio.netty.tryReflectionSetAccessible=true is required for the Apache Arrow library. This prevents the java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available error when Apache Arrow uses Netty internally.

3. What steps have you already taken to try and solve the problem?
Tried upgrading the java packages, but this did not fix the issue. I tried upgrading to **OpenJDK 17 as this is supposed to handle class file version 61.0, from what I read.

There are no reports of this error either. It seems extremely odd, because InstallScape should be using (and appears to be using) the Java installation that comes with InstallScape. So since the java and the classes are from the same installation, it seems very odd that it should fail in this way.

Create a folder for your Java program and open the folder with VS Code. Then in VS Code, create a new file and save it with the name Hello.java. When you open that file, the Java Language Server automatically starts loading, and you should see a language status item with a loading icon on the right side of the Status Bar showing the language status is busy. After it finishes loading, you can hover on the language status item and find the loading process has been finished successfully. You can also choose to pin the status item in the status bar.

I know this question is fairly old, but in case anyone else comes across this:
We had this same issue with ITSI on RedHat. Even with JRE installed and working, we found to issues:
1. Splunk /etc/splunk-launch.conf was owned by root for some reason so we chown splunk:splunk the entire directory again
2. We still had to update /etc/splunk-launch.conf to include JAVA_HOME=/usr/java/jre1.8.0_211/ The documentation says this is not required if PATH or JAVA_HOME are set, but we found we had to set all 3 (JAVA_HOME, PATH and also specify in splunk-launch.conf).

Install the latest stable version of your SDK of choice (say, Java JDK) by running the following command: $ sdk install java You will see something like the following output: Downloading: java 21.0.1-temIn progress...######################################################################## 100.0%Installing: java 21.0.1-temDone installing! Now you will be prompted if you want this version to be set as default. Do you want java 21.0.1-tem to be set as default? (Y/n): Answering yes (or hitting enter) will ensure that all subsequent shells opened will have this version of the SDK in use by default. Setting java 21.0.1-tem as default.

Using a snapshot version? Already have a local installation? Setup a local version by specifying the path to the local installation: $ sdk install groovy 3.0.0-SNAPSHOT /path/to/groovy-3.0.0-SNAPSHOT $ sdk install java 17-zulu /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home Note that the local version name (3.0.0-SNAPSHOT and 17-zulu in the examples above) must be a unique name which is not already in the list of available version names.

To see what is currently in use for a Candidate: $ sdk current javaUsing java version 21.0.1-tem To see what is currently in use for all Candidates: $ sdk currentUsing:groovy: 4.0.17java: 21.0.1-temscala: 3.3.1

df19127ead
Reply all
Reply to author
Forward
0 new messages