Java SE Development Kit 8u20 Install Options - java

I want to install JAVA from the link:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
I am using Windows 7 (32 Bit OS) in Dell Vostro Laptop with Intel Core i5 2.50 GHz
Now in the link, there are 2 installations for Windows:
Windows x86 161.08 MB jdk-8u20-windows-i586.exe
Windows x64 173.08 MB jdk-8u20-windows-x64.exe
Which one I had to select to install JAVA 8?

Windows x86 161.08 MB jdk-8u20-windows-i586. You cannot run 64bit applications on a 32bit Operating System. You have no choice but to go with 32bit (x86)

You will need to run Windows x86 161.08 MB jdk-8u20-windows-i586.exe unless your computer has a minimum of 4GB of RAM... Also you will need to look at this other post of mine to setup your environment variables in Windows. https://stackoverflow.com/a/22368507/3250752. Your environment variables need to be setup if you intend to use the command prompt or CMD in Windows to compile your applications and run them....

Related

How to create a mac universal binary with bundled JRE?

I am creating a JAVA desktop app for Mac computers, using jpackage to bundle the desired JRE into the app and finally shipping a .app to the customers.
With the new m1 apple arm silicon computers I do not want to create different apps for each processor architecture with the right JRE (intel & arm) but create one single universal binary app that launches the Intel JRE on Intel computers and the Arm JRE on Arm computers. I know this is possible somehow.
I tried to create two .apps and use the lipo tool from the mac command line, but this doesn't really work.
Any suggestions how to proceed?
I took the Zulu Intel and arm JRE (not JDK) builds and lipo'ed the binaries. You can download JRE 17 universal here:
https://www.hokuasoftware.com/jre/zulu-17-universal.zip
Tested on intel and arm macOS 11 Big Sur.

Java error:JDK 17.0.1 can’t be installed on this computer

enter image description hereim trying to install JDK 17.0.1 and I don't have any java installed in my computer like other versions of JDK and java runtime. Im using macOS Monterey. my CPU is I5 and I have a Mac book 2020 and 13 inches.
more info:
MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
processer: 2 GHz Quad-Core Intel Core i5
memory: 16 GB 3733 MHz LPDDR4X
Graphics: Intel Iris Plus Graphics 1536 MB
In my case, I downloaded the Arm 64 DMG Installer, the architecture of which does not work on my mac. Downloading the x64 DMG Installer (the final option) was the right choice.
tl;dr
Use an installer for Intel Macs rather than Apple Silicon Macs.
Obtain installer for Macs with Intel chips
Certainly Java 17 will run on your computer.
I am not sure, but I would make this guess as to the root of your problem… I suspect you downloaded an installer for the Apple Silicon Macs, rather than for Macs with Intel chips.
Go to any of the several vendors providing JDK products. Some are free-of-cost, some require a fee. Be sure to understand their terms before downloading.
Those vendors include, off the top of my head: Azul Systems, Adoptium (formerly AdoptOpenJDK), BellSoft, Amazon, Red Hat/IBM, Microsoft, Oracle, SAP, Pivotal, and likely more.
On their respective download page, be sure to opt for the edition labeled "Intel", "x86", "AMD-64", or some such to indicate Macs with Intel chips.
Do not download any edition labeled "Apple Silicon", "ARM", or "AArch-64", as these indicate the Macs with M1 chips.
Here is an example screenshot from Adoptium web site for their Temurin product, an installer of a JDK implementing Java 17 based on the source code at the OpenJDK project.
Using package managers simplifies your experience as you can get anything from one place. Moreover, vendors support packages at such systems. I prefer SDKMAN!
Try to use SDKMAN https://sdkman.io. For example, you can install Liberica JDK 17 on MacBook Pro with X86 or M1 processors, and you do not have to care SDKMAN will select the right package for you.
Download and install SDKMAN!:
$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
Get the list of available Java distributions to install:
$ sdk list java
For example, to install Liberica JDK 17:
$ sdk install java 17.0.1-librca
or with Java FX
$ sdk install java 17.0.1.fx-librca
Check a short document about other package managers and how to use them for Liberica JDK installation.
https://bell-sw.com/pages/package-managers/#sdkman

which java 64bit download for Solaris 10 VM

I downloaded Solaris 5.10 VM (ova) for VMWare (win7 pro) and I am trying to update the pre-installed java6 x64 to java 7_79 x64 JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
It seems I have 64bit support (isainfo returns amd64) and I am trying to determine which is the correct java64 download. I am confused.
I tried Solaris x64 16.38 MB jdk-7u79-solaris-x64.tar.gz but when I run java -version I get
Error occurred during initialization of VM
A fatal exception has occurred. program will exit.
I also tried another download
Solaris x86 96.66 MB jdk-7u79-solaris-i586.tar.gz
but that as I suspected, turns out to be 32bit only.
I did not try the Sparc ones as I suspect they are for Sparc arch.
Help appreciated.
You need to install both the 32 bit and 64 bit packages. The latter is not, as its size shows, a complete JDK but only an add-on including the 64 bit binaries/libraries.
Sorry for the delay. First, uninstall all versions of java. Seconds, I noticed that the link you provided is out of date. Java 8 came out recently so you should use that unless you have compatibility issues.
Java 8
Choose: Solaris x64
Finally, if this does not work, uninstall and just try again with a different download from the page I provided.

JRE 1.7 compatibility with win7(x64)

Is jre 1.7 (32 bit) compatible with windows 7 64 bit OS ?
I am using jre 1.7 update 9. When I login into the application, it is not opening. This is a jre issue but I wanted to know if 64 bit OS supports 32 bit jre. Application works fine with a 64 bit jre. But I want to make it 32 bit compliant.
The Windows 32bit JRE can run on Windows 64bit.
You are saying that you're trying to "log into" your application. Is that an Applet?
If so, then you have to ensure that your browser runs in 32bit mode:
If you install the 32bit JRE, then the Java Plugin (allowing you to run Applets) will only work under 32bit browsers.
If you install the 64bit JRE, then the Java plugin will only work under 64bit browsers.
To support both 32bit and 64bit browsers, you have to install both JRE's.

Windows 32-bit Eclipse installed on a 64-bit OS?

Can I have Windows 32-bit Eclipse installed on a 64-bit OS? I have some plugins which works only on 32-bit Eclipse so shall I install the 32-bit Eclipse? And what about my JAVA then? Should I have Windows x86 or Windows x64?
Appreciate your time!
You can install 32bit Eclipse on 64bit Windows without an issue.
The Windows OS has facilities to deal with 32bit processes.
Yes. You'll need to install the 32 bit version of the JDK and set the JAVA_HOME environment variable to point to it. Then you can start Eclipse by specifying the java VM in eclipse.ini or via a batch script.
#echo off
start "Eclipse %WORKSPACE%" eclipse.exe -data %WORKSPACE% -vm "%JAVA_HOME%/bin/javaw.exe"

Categories