I have 64 bit window 7 ,
I have installed java 6 and java 7 (jdk and jre) in program files(86)
and jre 7 in program files.
I cannot open eclipse, what would I do to start it?
In 64 bit Windows -
program files(86) -> contains the 32 bit programs installed into your
system.
program files -> contains the 64 bit programs or default installed into
your system
What you need is 64 bit jdk, download it from here - Link
exe - jdk-7u60-windows-x64.exe
^^^^^
Looks like you're using 64bit version of Java and a 32 bit version of Eclipse. It's trying to find a 32bit Java version (or vice versa) and that's why it tells you that you need at least Java 1.5.. Try switching to a 64bit Eclipse and also check if your environment variables are set properly, especially %JAVA_HOME%.. You can do a quick check if you're using the correct Java version by running the command
java -version
from the command line.
Related
I'm a bit confused now. When I run the command java --version in the terminal i get: java 13.0.1. When I open the system preferences and click the java app and then about, i see it says Java version 8 1.8.0_231
Does that mean I have 8, 13 or both?
When I check through the java app.
When I check through the terminal.
When i check for all JDK installed on my system (only 1 version pop ups).
You can have multiple JDK installed in one machine but you can have only one version set as default Java SDK. Looks like you have Java 13 set as default.
Try running the following :
echo $JAVA_HOME
You can also go to the tab Java and see the list of all Java Runtime Environments (JRE.)
Please note that just because you have multiple JREs available doesnot mean all corresponding SDK are also there.
You can have many version of java on your Mac. But you can run only one of this in a process.
On my Mac, system preferences run with java path :
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
But in terminal, this run with java path:
/usr/bin/java
I think you can replace java file in /usr/bin by another version java you want.
that means you jdk version is 13 , and your jre version is 1.8.
jre is used for running java apps ,and the jdk(java development kit) is for building apps with java language. java jdk is like the android sdk
I want to install Carrot2 workbench in file "carrot2-workbench-win32.win32.x86_64-3.10.1" but it always displays "This app can't run on this pc". I've searched for the new workbench by downloading "carrot2-release-3.13.0" but the new workbench doesn't exist.
I use windows 8, 32 bit OS. I don't know if my Java bit is same with my bit OS, so how to check JRE bit (java runtime environment)?
And how to solve this installation problem?
type
java -version
in command to check your java version
I'am executing this command in my windows 7 console:
mxmlc
then I get:
Error loading: C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
How to fix this?
the jvm.dll exists in that directory, but why the error occurs?, I've tried to reinstall java, but it didn't helped
The flash compiler, mxmlc, does not run under a 64 bit jvm. According to the 4.6 SDK docs:
Note: You must use a 32-bit version of the JDK, version 1.5 or later. The command line compilers do not work with a 64-bit JDK.
Unfortunately, You will need to install a 32 bit jvm.
I recently installed both 32 and 64 bit JRE in my machine, but when I try to check using command prompt, it only detects the 64bit JRE.
java -d64 -version ->using this command outputs the version and all
java -d32 -version ->using this command just tells me that "this instance does not support 32-bit JVM"
More over, I tried to configure Java through the control panel (java control panel > java > view > user > add 32 bit JRE > Okay > Apply). I tried adding the 32 bit JRE, but after I press apply, then close the Java control panel window and reopen it, the 32bit JRE is no longer there.
Can someone tell me what I'm missing here?
Additional details: I'm using 64 bit windows 7.
AFAIK The -d64 and -d32 only ever worked on Sparc Solaris.
If you have 64-bit JVM it will run all your programs unless they use a 32-bit shared library, in which case I suggest either a) don't do that or b) use the 32-bit JVM only when you need to by specifying the path.
In my ini file for winrun4j java exe wrapper I set vm.version.min=1.7 to specify Java 7 as a requirement. But when I ran it I couldn't get winrun4j to recognise that I had a java 7 jre installed even though java -version from the command line returned it.
On further investigation I realized that my Java 7 installation was 64bit whereas my Java 6 installation was 32bit. I then found that winrun4j has some 64bit version of its commands (ie rcedit64), if I built an appname64.exe rather than appname.exe it no longer complained about Java 7.
So can someone confirm this was the issue that I need a 64bit exe to run a 64bit jvm
Secondly if this is the case how do I present this to the user, I'm wrapping the installer as an exe so does that mean I need to provide the user with both an installer.exe and a installer64.exe and explain to the user to pick the right one not based on their processor but based on what version of java they have installed32bit or 64bit)
Edit:
Sounds like things are as i described, and using launch4j maybe a solution
What's the best way to start Java applications on Windows 7?
that I need a 64bit exe to run a 64bit jvm
Yes. You can not use a 32 bit exe to run the 64bit JVM
Secondly if this is the case how do I present this to the user, I'm
wrapping the installer as an exe...
Don't. Just create an installer for a 32-bit system and a 64-bit system. Depending on the target system the corresponding installer should run