Cannot install java 64bit when 32 bit works fine - java

I can Install Java 32 bit but not 64 bit.
I am using Fujitsu T902 running Windows 7 64 Bit with 4 Gigabytes of ram.
getting error code 1603
Image
System Specs
EDIT: Solved - Download a complete JRE and paste it in the correct folder, then configure enviroment variables. Thanks!

64bit jdk can only run on 64bit system, please make sure your windows system is 64bit. you can right click "my computer" and click property to check out

Only explanation if you are actually using Windows 7 64 bit is if you are running a virtual machine where windows is 32 bit.

this error is java update error. Maybe you are using online installer. Download an offline JDK/JRE installer and then try.
Your system is x64 so you need to install 64 bit java.
Also please follow this link for additional information:
https://www.java.com/en/download/help/error_1603.xml

Download a complete JRE and paste it in the correct folder, then configure enviroment variables.
Thanks for your help though!

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.

Openfire server is not starting on JAVA 64 bit

i was trying to install openfire in my windows 64 bit OS, but server was not starting , and giving below error message.
which says JAVA_HOME doesn't point to 32 bit JRE,
where as in openfire site, nothing was said about 32 or 64 bit jdk version.
upon clicking ok i am getting serious of error messages,
do i need to point openfire to 32 bit jdk and jre to make it workable?
It is possible to start openfire from command line:
java -jar startup.jar
Assuming it is executed from ./lib of openfire installation dir, and you have binaries of your preferred java in system path.
The error means exactly what it said. You have either installed the wrong architecture flavor of Java / the JDK or haven't installed Java at all. If you haven't installed the 32-bit JDK yet, grab it at http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and install it. If you already have the 32 Bit JDK, change the environment variables of your system to let JAVA_HOME point to the correct installation. Refer to https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/ for further instructions. If that doesn't help, deinstall every JDK inst install the 32-bit JDK from scratch.
i have downloaded zip version of openfire , which is having this issue, i have downloaded .exe version with jre bundled, which is working fine.

how to fix EXE4J_JAVA_HOME, No JVM could be found on your system error?

I installed java 64bit 1.7 and exe4j 64bit version. I tried to generate an exe from exe4j, but while running the program I'm having this error.
This is how I set up path variable. And this is right jre path. What did I miss here? please let me know.
Thank you.
This has to be done during your exe4j configuration.
In the fourth step of Exe4j wizard which is Executable Info select> Advanced options select 32-bit or 64-bit. This worked well for me.
or else install both JDK tool-kits x64 and x32 in your machine.
Try installing the 32 bit version of Java 6. This works for version Install4J 4.0.5. Should fire right up, or allow you to re-run the installer.
Any newer version or the 64-bit version of 6 will fail, complaining that the java.exe is damaged.
There are few steps to overcome this problem:
Uninstall Java related softwares
Uninstall NodeJS if installed
Download java 8 update161
Install it
The problem solved: The problem raised to me at the uninstallation on openfire server.
In my case (OWASP Zap scanner) I had to install the latest OpenJDK from https://adoptium.net
BH's answer of installing Java 6u45 was very close... still got the popup on reboot...BUT after uninstalling Java 6u45, rebooted, no warning! Thank you BH!
Then installed the latest version, 8u151-i586, rebooted no warning.
I added lines in PATH as above, didn't do anything.
My system: Windows 7, 64 bit. Warning was for No JVM, 32 bit Java not found.
Yes, I could have installed the 64 bit version, but 32bit is more compatible with all programs.
It might be issue with the Java JDK/JRE package itself, try downloading & installing/configuring latest version of JDK, followed by system restart. It worked for me and it may work for you too.
I had a similar problem. With the difference that I wanted to use the 32-bit version. The only way I could solve the problem was to install the 32-bit version of Windows XP on a virtual machine!!
Leave you stuff there and Try the following as well:
Start > Right-click on My computer > Properties > Advanced system settings > Environment Variables > look for variable name called "Path" in the lower box
set path value value as: (you can just add it to the starting of line, don't forgot semi column in between )
c:\Program Files\java\jre7\bin
It worked for me, but the exe4j can leave a signature when you double click the .exe application

Error with win32com.dll in Eclipse

I am getting an error in eclipse with regards to my win32com.dll file. From the error it would appear I am trying to use a 32-bit .dll instead of a 64-bit, but unfortunately I haven't been able to find a 64-bit win32com.dll file anywhere and I'm at a loss at how to proceed. I literally downloaded Eclipse tonight and this is my first time writing in Java, so please be gentle.
Thanks!
Error loading win32com: java.lang.UnsatisfiedLinkError: C:\Program
Files\Java\jre6\bin\win32com.dll: Can't load IA 32-bit .dll on a AMD
64-bit platform
EDIT: I think Java discontinued support of the Java Communications API, but I'm not really sure what else to do to fix this. Can anyone point to a good serial port Java example? I haven't been able to find one anywhere...
So I gave up on this and switched to RXTX. I think quite a few people have done this as all my research pointed to this instead of figuring out what I wanted to originally.
In a nutshell you need to do is to download the correct files from here.
Install the files in the following directories:
rxtxParallel.dll & rxtxSerial.dll --> Program Files/Java/jre6/bin
RXTXComm.dll --> Program Files/Java/jre6/lib/ext
Note that this is only for 64-bit environments. Hope this helps for anyone in my position in the future!
I got around the same by installing 32-bit JDK instead of 64-bit one in my Windows 7 64-bit.
Hope it help.
Reinstall JDK 32bit If you are using 64bit version
You can download the files you need at this address:
http://llk.media.mit.edu/projects/picdev/software/javaxcomm.zip
Make sure to add the jar as a library to your project.
This example seems elaborate enough using this API:
http://www.java2s.com/Code/Java/Development-Class/ReadfromaSerialportnotifyingwhendataarrives.htm
Install 32 bit jdk and change eclipse run configurations in jre tab select Alternate JRE then add 32 bit jdk's bin path

How to reconfigure eclipse to use a 64 bit JVM

I'm using eclipse on what I thought were all 64 bit runtime environments. The current settings Java>installed JREs and Execution Environment all point to jdk1.6.0_30 which is a 64 bit version of the JDK. However, eclipse still thinks it's running a 32 bit version because when I run:
System.getProperty("sun.arch.data.model");
it returns 32 instead of 64.
And the external JNI resource that I compiled for 64 bit machines will not link to the shared .so file unless it's running in a 64 bit enviroment. (I'm getting word size mismatch errors when I try to do this)
So How can I reconfigure eclipse to run 64 bit jvm. Does eclipse itself have to be a 64 bit version?
:on linux
Edit: I have tried everyone's suggestions and nothing is working. I've changed the execution, and enviroment variables to point to the newst JDK I have which is 1.6_30. when I run the program from a command line I get 64 and amd64 as the value when I run the same program in eclise I get 32 and i386. Something is wrong in eclipse that is causing it to try and run it on a 32 bit JVM. when I try java -d32 -version it says that a 32 bit enviroment isn't installed but Eclipse doesn't know that. I've modified the Eclipse.ini file and still nothing is working. I've restarted eclipse after these changes...nothing. Can some one who knows eclipse well people help me out here. thanks
Add the -vm tag to eclipse.ini or the shortcut to explicitly specify a JRE. Note that the default for Windows XP is to use the CRAPPY JRE that comes with Windows.
-vm "%JAVA_HOME%/bin/javaw.exe"
In eclipse.ini add:
-Xmx8g
-d64
For me its working properly! . Make sure your path is c:\Program File not c:\Program File(X86) ( if you installed 64 bit JDK it should store in c:\ Program Files)
Eclipse configuration is explained here
The "installed JREs" (better use JDKs) are used for building and running your code and can be of different architecture or Java version. The JVM used for running Eclipse is defined in the eclipse.ini file. You should use the version for the architecture of the JVM.
Okay. This has been rather headache inducing, but I believe I have a solution. After changing the eclipse.ini, Go to your project properties. Under the Run/Debug settings, edit the launch configuration for your project. Under the JRE tag, click installed JREs. When that dialog comes up, click search. Go to your program files folder, NOT the x86 one, and let it search for your JREs. When the latest comes up, deselect the JRE that was currently selected and select the most recent JRE that it found. I renamed mine JRE7-64 just so I could identify a difference. This solved the issue on my end. Good luck
I think there is a bug in the Run Configuration page.
I had to add the 64-bit JRE in run configuration, select it, and DELETE the 32-bit entry (even though it was already deselected).
eclipse.ini didn't work for me.
This is Eclipse Luna.

Categories