Eclipse, JRE & JDK on Windows 8.1 (64 bit) - java

I know similar questions have been asked before, but I am still unsure what I should do.
I currently have the latest JRE 32 bit installed on my 64 bit machine. This is the version I was recommended when I went to the download page for the first time. I suspect this was because I was running 32 bit Chrome and from what I understand it is important that the JRE version corresponds to the flavor of the browser you are using (bit wise). I also have 64 bit IE on my machine, but I hardly ever use it, so I didn't do an additional install of the 64 bit JRE, as suggested here: https://www.java.com/en/download/faq/java_win64bit.xml
Now I want to install Eclipse Epsilon and I am unsure if I should go for the 32 or the 64 bit version.
Do I have to go with 32 bit because I have JRE 32 bit installed?
What if I install JDK 64 bit? Should I go for 64 bit with Eclipse also in that case? Here Java and Eclipse - 32 vs. 64bit
the conclusion was that I should install the bit flavor of Eclipse corresponding to the JRE version I have on my machine. But I've read in another post that the JRE just runs the bytecode and it doesn't matter if it was generated by a 32 or 64 bit compiler - it will run it correctly anyway. Am I right then in my understanding that Eclipse should be the same bit flavor as the JDK (if installed on the machine) or as the JRE otherwise? I've even read somewhere that I won't even need the JRE if I install the JDK, since it comes with several JREs.
Do some Eclipse versions come with JDK?
I need to install Eclipse Epsilon (Eugenia, Xtext) for my current coursework and it only requires JRE and not JDK.
What would be your suggestion in this case?
What about the long run?
What if I install Chrome 64 bit instead? Since I would be running only 64 bit browsers on my 64 bit machine I suspect I would then only need JRE or JDK 64 bit and Eclipse 64 bit.
This might sound really silly, but what about source code that I might receive from other sources (written/precompiled in a 32 bit environment) - would I have any problems handling it?
I want to make sure I get this right, so as to not have doubts again in the future. Thank you!

Related

Getting java runtime enviroment not found error while running .exe file produced bt jar2exe software

I am getting the following message immediately after trying to run the executable file.
Java Runtime Environment not found.
I have installed jdk and jre and already set the path for both and able to run any class file with command prompt.
Unfortunately, i am not using Netbeans or Eclipse.
please someone help
Thanks in advance.
I found jar2exe website support that include install 32 bit jre for 32 bit OS and 64 bit jre for 64 bit OS. The best solution is reinstall correct version of Java and choose offline installer (since online installer mostly install 32 bit before, but I don't sure is smart enough to detect 32 bit or 64bit now).
(I'm sorry that I don't gain enough reputation to post on comments)
You need an appropriate jre installed that is the same with your Jar2Exe (on step 6 during Exe creation). If you're check "Create 64 bits executive" on those step you'll need 64 bit jre, but if you unchecked it then you need 32 bit jre.

Which eclipse galileo version is supported by jdk 1.7.0_71

i have downloaded and installed jdk 1.7.0_71 on my windows 7 home basic 64 bit lenovo laptop.
Now i need to download IDE.
I was recommended to install eclipse Galileo( as i will be using the same in future) IDE for Java EE Developers but i cant find 64 bit version on eclipse website.
Only 32 bit windows version is available.
Will the 32 bit version works for 64 bit and will it be compatible the jdk i have installed?
There is no 64 bit version because 64 bit Windows was not very popular at the time Galileo was released. You need 32 bit JDK to use 32 bit Eclipse. It should work on 64 bit Windows though. Are you sure you are supposed to use 6 years old Eclipse?
JDK and Eclipse are both different they are not dependent on each other, but if your system is 64bit then use JDK and eclipse 64 bit. you can download eclipse from here you can go for eclipse Luna it is latest release.

How to set the java for different environments

I've windows 64 bit system.
In this I have installed java 64 bit version and I've downloaded the eclipse indigo of 64 bit also. I've set the JAVA_HOME path to this 64 bit java installation location. I'm using this for J2EE development. Everything is fine up to this.
Now I've downloaded the 32 bit version of java and installed in my system and also I have downloaded 32 bit version of eclipse. Now I want to use this for android development. So how could I set the class path of this 32 bit version java.
How could I use both on my machine.
I'm looking for your replies.
Thanks
What matters is not what is used for running Eclipse but what is used for compiling your code. You can set this #
windows->preferences-java-installed JREs
The build environment uses different java version based on the configuration. you can install any number of Java version (X86 or X64).

Check whether we are using Eclipse 32 bit version or 64 bit version

I want to check in a java program whether the underlying eclipse is 32 bit or 64 bit.
I have tried System.getProperty(os.arch/orgi.platform) etc but they are not giving correct results.
P.S. I have installed 32-bit as well as 64-bit eclipse on 64-bit Windows7.
Main problem is : i am getting one pointer using org.eclipse.swt.internal.ole.win32.COM class method which returns int in 32 bit and long in 64 bit. I want to handle this independent of underlying eclipse version.
Open the file eclipse.ini in the Eclipse installation directory and observe the 4th line - in my case:
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.0.200.v20090519
The x86_64 part corresponds to it being the 64-bit version.
For the 32-bit version it would just say x86, here's an example from a recent Eclipse Neon (4.6.1):
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.400.v20160518-1444
In an Eclipse plugin use Platform.getOSArch() (Platform is org.eclipse.core.runtime.Platform). Platform also has a number of ARCH_xxx constants for the various architectures.

How to install both 32 and 64 bit versions of Java on the same computer

I need both Java 32 and 64 bit versions on my workstation, but when I try to install the 32 bit version it says I already have another Java version installed. This is for Java version 7 update 9. I can't delete the existing version via the configuration page, I tried a couple other things but I'm not very good with computers and so far nothing has worked. Can somebody please help? I have windows 7
Works just fine for me. But I don't use java.com, I just download the runtime installers from oracle.com.

Categories