I've been working on an applet using deployjava.js and it works fine with 32 bit JRE. Now I'm trying to test it with 64 bit JRE, and the applet runs on 64 bit if I open the JNLP file directly, however it doesn't work when I try to run the applet in my web application (using 64 bit IE11 - 64 bit JRE - Windows 8.1).
I've tried to open (in IE11 64 bit) another website with an applet and it runs in 64 bit JRE, so it has to be something about my own applet and configurations. With my applet, the page ends up redirecting to Java download for 64 bit Windows, unless I have 32 bit JRE installed (so that the applets run on 32 bit JRE only).
Have anyone encountered this kind of issue? Java code is supposed to be able to run in both 32 or 64 bit JVM, however I'm not sure why my applet would not run unless there's 32 bit JRE.
Related
I have 64bit Windows, 64 bit eclipse and both 32 and 64 bit jre installed.
What I want to do: I have some 32bit process, to which I want to attach a GUI made in e4. My eclipse is fully configured (not by me) for 64bit development and it is critical not to reconfigure it as much as possible (there is like a standard build, widely used in firma).
Now, let's assume I create a dummy eclipse 4 RCP project, which of course uses SWT libraries. If I run it on 32 bit jre, I will receive an error: "can't load a 64 bit SWT libraries on 32 bit jvm". Fully expectable.
Now the question. I've downloaded 32 bit SWT libraries, the swt-4.9-win32-win32-x86.zip file contains swt.jar and src.zip. I have obviously 64 bit STW libraries in eclipse plugins folder. What exactly, step-by-step, I need to do in my plugin project in order to run it on 32 bit jre? Sorry, I'm a bit newbie in plugin development in eclipse and I don't know how to "simply replace 64 bit versions with 32 bit ones".
P.S the variant "just run everything on 64 bit jvm" is impossible, since this process loads 32bit native libs.
I'm trying to generate a single executable for my app.
95% of the time it will be installed on a 64 bit OS, and management doesn't want it to ask the user to download and install a JRE. So we bundle the 64 bit JRE.
The problem is that when the app IS installed on a 32 bit OS, Launch4J still tries to use the 64 bit JVM. (we get the windows "app not compatible with this version of Windows" error.)
<bundledJre64bit>true</bundledJre64bit>
<runtimeBits>32/64</runtimeBits>
<jdkPreference>preferJre</jdkPreference>
Shouldn't it be detecting a 32 bit OS, and ignoring the 64 bit bundled JRE?
Is there any way to accomplish this?
I was running jre7 fine, and had both 32 and 64 bit runtime environments installed on my pc. However, after downloading a jdk, I noticed I needed to update my java. So, I did, uninstalled both iterations of java and then installed 32 and 64 bit jdk and jre.
However, afterwards, some of my batch files didn't run properly. I did some fiddling and came to the conclusion that I can't have 64 and 32 bit java active at once. i.e., code like
java -d32 -jar filename.jar
doesn't work, as it says that "This java instance does not support a 32-bit JVM".
That said, the path variable includes both paths, the 64 and 32 bit one.
Furthermore, both the 32 and 64 bit work seperately, if I remove one from the path variable the other one works.
How can I have it so I can use either 32 bit or 64 bit java without changing the path variable each time?
I have Internet explorer 11. I have some help files which run only with 64 bit Java. By default IE was launching in 32 bit. After googling I found by enabling Enhanced protection, IE will launch in 64 bit. I was able to achieve IE in 64 bit. However it was still launching 32 bit Java.
Please note:- When there was a separate option of 64 bit with IE 9. I was able to run the help files with 64 bit version.
Please let me know how to run IE 11 with 64 bit Java in windows 7.
I was searching for the same problem, here is the solution:
You only have to execute this script (save with .reg extension):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]
"TabProcGrowth"=dword:00000000
Then you can stop and launch again IE x64 that will now work with Java x64. :)
In 64 bit version, there is a separate link in the Start Menu to Internet Explorer for 64 bit. Also from TM you can figure it out if that application is using 32 bit or 64 bit
I have a 32 bit application on 64 bit machine and its installed into the Program X86 folder while Java1.6 (64 bit) is already installed on the same machine. When i run this application it gives error "unable to load jre"?
Please help me out how we can solve this problem without installing the 32 bit jre.
According to my knowledge, I think your Java1.6(64 bit) is installed on the same machine, but in the Program Files Folder is it? And your 32 bit application in installed on the same machine, but in the Program FileX86 Folder is it?
If so that is the problem only that, your application does not find proper path for jre.
I think the problem is with your classpath, set the classpath according to your machine.
OR another way just install 32 bit jre on the same machine.
I recommend you to go for 32 bit jre installation.
See this article for more help.
If it is a 64-bit JVM(JRE), it won't load 32bit libraries, and vice versa.So you cannot do this without installing 32bit JRE.
I had a situation in my environment. My Eclipse required 64bit JRE where as there were some applications running which needed 32 bit JRE . So it was easy for me to fix . I changed the eclipse ini file and point the 64 bit JRE. And in the PATH variable I set the 32 bit PATH .
If possible then check that the application can take the 64 bit JRE path from some configuration file or not otherwise you have to set PATH for 32 bit.