Java pre-installed in Windows and Linux? - java

I know that Java is pre-installed in Mac OS X but i wonder if it is pre-installed in Windows XP, Vista, 7 and all Linux distros?

Java isn't preinstalled in any Windows version (OEM not included - depends on the manufacturer then).
I think it is not common in Linux distributions at all, but I don't want to make a general statement about ALL distros here ;-)

Fedora Linux comes with IcedTea, an open source Java.

Some Linux versions I experienced comes with old versions of Java JDK (so you must take care developing for these distributions!) or with an alternative version of the compiler: Gnu Compiler Java (GCJ).
About the virtual machine, I've just seen the JVM in Windows and Linux, provided by Sun.

I understand that the vast majority of PCs come with the Sun JRE installed. There was a bit of a law suite between Microsoft and Sun (my employer, now a wholly owned subsidiary of Oracle).
The "6-open" OpenJDK is a backport of the GPLed JDK7. General purpose distros should include it, but of course with Linux you are fighting with package management.

Related

jdk won't install on Intel Atom

I'm trying to install Oracle jdk 17 on my netbook but with no success.
The installer says that the processor (Intel Atom Z3735F) is not supported.
On my desktop Intel i5 the same package is working fine.
I need Java on the netbook to bring at school.
Edit:
The netbook is running on Win 10 Home 32bit on Atom 64 bit processor.
I did a fast research I found out that the CPU (processor) you're rocking on your netbook is quite outdated today - it's from 2014 (check Intel Atom Z3735F on the official website). But it surprisingly should not be the issue (well, it might be - some instructions might be outdated, but I don't think that's the problem), because it actually is 64-bit CPU (it support 64-bit instruction set and it can address more memory - thanks to the wider address bus, OS has to support this as well). Since the new Java JDK 17 LTS is for x64 (64-bit) systems only, and you said that the installer reports that it's not supported on your device. I think that you're not using 64-bit operating system (OS). Do you think this could be the issue? You could easily find out by just easily looking at the task manager to see how much GB (gigabytes) of RAM you got. If it's 4 GB or less, then it's quite obvious thing. To make yourself sure, just type out systeminfo command to the CMD (if you are on Windows) and there under System Type record you will see what type you got (x86-based PC or x64-based PC).
Edit: If you are looking for the latest JDK release by Oracle that supports 32-bit systems, then JDK 13 would probably be the best go for you. If you don't need the features introduced in these newer releases, then I would recommend Java JDK 11 LTS, because it's going to be supported until September 2026. And as mentioned by matt in the answer, there is also JDK 17 LTS for x86 systems (32-bit) by Adoptium. Well, or reinstall the 64-bit OS, but that is probably the hardest option.
Thank you all for pointing me to the right direction.
The issue was caused by the 32bit Os
As suggested by #matt , I installed Adoptium JDK17 x86 that solved my problem.

How to get JDK 8 - 32 bit for Mac OS X for Openhab development?

According to openhab tutorial they said that openhab developers should use JDK 8 - 32 bit for Mac OSX, How can I install JDK 8 - 32 bit, the only available version of JDK 8 is 64 bit !
I believe you have misread the documentation. This page notes that you must use 32-bit Java on ARM chips, rather than 64-bit.
Please use the 32-bit version of the JVM for ARM platforms, even on 64-bit operating systems. Serial connections won't work with a 64-bit JVM, preventing bindings like Z-Wave from functioning.
ARM chips are used in many of the home automation devices and used in computers such as the Raspberry Pi. But ARM chips are not used in Macs, which currently use 64-bit Intel Core chips.
According to this Question, Java apps are agnostic regarding their host OS being 32-bit or 64-bit. Only native-code libraries called from Java may care about 32/64 bits of the host OS.
I’m not a user of OpenHAB, so I’m not certain
I give up… Stack Overflow is losing my edits.
All the recent Macs run 64-bit macOS.
If you still want to install JDK32 bit, you can have any OS using a virtual machine (VMware Fusion, Parallels, or VirtualBox) and then install JDK inside that VM.
For the openHAB recommended is to use Zulu.
More accurate answer provided by: Basil Bourque

Do all operating systems already have JRE installed for running java applications?

Let say I am not a java developer and an ordinary person, and installing any application that is written in Java. So, do I need to first install the JRE or no all operating systems already have JRE installed on them?
Do all operating systems already have JRE installed for running java applications?
No.
First of all, Java is not necessarily available for all operating systems. (It is probably available for most operating systems that are targeted by your application ... but it might not be.)
Secondly, most operating system platforms don't have Java installed by default. Indeed many OS vendors don't support Java at all: Java is provided by a 3rd-party vendor.
So, do I need to first install the JRE or no all operating systems already have JRE installed on them?
Prior to Java 9, the answer is that you have to install a JRE or a JDK. This can be done by downloading and installing it directly, or installing it via a package management system on some OSes. It can also be done by embedding a JRE in your application's installer.
From Java 9 onwards, you can also use "jlink" to create an executable that contains a cut-down JRE which is tailored to run your application on a specific target platform. This is the approach recommended by Oracle for people who want to distribute "consumer grade" Java applications.
And from Java 11 onwards, for some Java vendors (Oracle for example), the JRE option is no longer available. For these vendors, if you want "full" Java to run your application, you / your users need to install a JDK.
The Java Runtime Environment has nothing to do with the OS. You could install any OS with or without the JRE. If you installed the OS yourself, I'd guess it doesn't have it. If you bought the computer with the OS on it, it depends who you bought it from.
Checking if you have JRE installed is pretty much the same on all OS. Open a Terminal (on windows run CMD) and type java --version.
If you don't have it, you need to install it. Just google install JRE on [insert your os here]

What is appropriate Java Platform in Windows XP?

I created Software Project in java Netbeans 8 and running on JDK 8.My Operating System is 64 bit.And My client Machine running on Windows xp 32 bit operating system.Would it work in xp if i made exe ?
What is appropriate Java Platform in Windows XP?
None really. Read this: https://www.java.com/en/download/faq/winxp.xml which explains why Oracle no longer supports Java on Windows XP.
Now you can probably find older versions of Java that will run on Windows XP, but you won't be able to get (reliable) security patches any more, either for the OS or for Java.
Would it work in xp if i made exe ?
It probably wouldn't. For a start, many of the ways to turn Java code into an exe do it by embedding a JRE inside the exe!
Do yourself a favour and upgrade to a PC with a more up-to-date Windows operating system. Or install Linux on it ... for free.
You can still install the Java 8 version in windows XP. When you generate the exe file, try to generate with 32bits.
You can do it with Launch4j for example.

JAVA SE x86 or x64?

So this is probably a stupid question but I need to start working on a JAVA application and I should update my jdk I presume. So I go to the website and it has Windows x64 and x86 downloads.
My question is this. I have a 64-bit system, but my Program Files is x86. So does that mean I should use a x86 jdk or x64? I guess I am confused on why my program files folder has a different size than my system itself, or is my system x86?
I hope you can see my silly confusion on this matter.
Thank you,
-Austin
Download the x64 version since it's designed for the computer with your architecture. You have x86 Program Files folder only for application which can't run under 64bit environment. It's basically just backward compatibility.

Categories

Resources