update Chrome JRe - java

after reading "Google chrome custom JRE/JDK/plugin" I decide to post because I do not get the desired behaviour.
OS : Windows 7 64 Bits.
Browser : Chrome version 20
I want Chrome to use C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll (that is the 64 Bits java plugin).
I launch regedit and go to the wow6432Node/Mozilla ... and change the path attribute of the #java.com/JavaPlugin node to my npjp2.
I quit chrome and restart : Chrome tells me that Java is not installed.
If I put back the previous version C:\Program Files (x86)\Java\jdk1.6.0_10\jre\bin\new_plugin\npjp2.dll, Chrome tells me that my version is obsolete.
This proves that I Hack at the correct place but I cannot make it take the JVM 64 Bits.
After googling some more, I found this http://www.java.com/en/download/manual.jsp#win and this piece of info is interesting :
We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers.
Which means That I need to install the 32Bits version of the JRE just to make Chrome happy:)
I leave the post for future googlers :)
Any ideas ?

I think only Internet Explorer can use 64-bit Java, other browsers can only work with 32-bit Java.

The easiest way to go is to consider Chrome a 32bits app and give it a 32 bits JVM, and so even on a 64 bits Windows OS.
Interestingly, on MAC OS X Snow Leopard latest updates, no issues whatsoever : it works like a charm with the native jvms. I wonder what would happen if I played with the default jvms also...

Related

32bit IEDriverServer.exe is instantiating 64bit IE in Windows 10 (Java Selenium)

I can't find anyone else running into this issue so I keep feeling like I must be missing something here. Our framework has been working fine on Win7 and we are now trying to test our scripts to make sure they work in Windows 10 as well.
We are using the 32bit IEDriverServer.exe, but in Windows 10, it's starting up the 64bit version of IE instead of the 32bit version. If you read the documentation on IEDriverServer.exe, it says the 32bit version will open 32bit version of IE, and vice versa for the 64bit IEDriverserver.exe.
Does anyone know why on Windows 10, we are seeing the 64bit version of IE opening? (Not edge but IE11 on Windows 10).

which java 64bit download for Solaris 10 VM

I downloaded Solaris 5.10 VM (ova) for VMWare (win7 pro) and I am trying to update the pre-installed java6 x64 to java 7_79 x64 JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
It seems I have 64bit support (isainfo returns amd64) and I am trying to determine which is the correct java64 download. I am confused.
I tried Solaris x64 16.38 MB jdk-7u79-solaris-x64.tar.gz but when I run java -version I get
Error occurred during initialization of VM
A fatal exception has occurred. program will exit.
I also tried another download
Solaris x86 96.66 MB jdk-7u79-solaris-i586.tar.gz
but that as I suspected, turns out to be 32bit only.
I did not try the Sparc ones as I suspect they are for Sparc arch.
Help appreciated.
You need to install both the 32 bit and 64 bit packages. The latter is not, as its size shows, a complete JDK but only an add-on including the 64 bit binaries/libraries.
Sorry for the delay. First, uninstall all versions of java. Seconds, I noticed that the link you provided is out of date. Java 8 came out recently so you should use that unless you have compatibility issues.
Java 8
Choose: Solaris x64
Finally, if this does not work, uninstall and just try again with a different download from the page I provided.

Trouble with Browser type SWT.MOZILLA on windows 8 64 bit

after spending a day reading here and there I decided to ask help as I could not find a solution to my problem.
I have to create a java/swt application embedding a browser with full HTML5 support. That works out of the box on both linux and osx with SWT.NONE browser type (using webkit).
Unfortunatelly I have lot of troubles on windows.
First let me say that I'm using SWT 4.2.x on windows 8 64 bit.
To make SWT browser work with webkit I had to install 32bit JVM and manually point to it (as the -d32 switch on default 64bit JVM says that no 32 bit JVM is installed). ALso installed Safari.
And also I had to use 32bit SWT library. WHen finally I got it run I discovered that Safari for windows does not support drag and drop as experienced and stated here:
http://www.w3schools.com/html/html5_draganddrop.asp
So I decided to switch to mozilla. According to Eclipse/SWT documentation I have downloaded and installed XULRunner 1.8.0.1. I have unzipped it into C:\Program Files (x86)\Mozilla\XULRunner\1.8.0.1\xulrunner and run xulrunner --register-user (and also --register-global)
Finally in my code I added
System.setProperty("org.eclipse.swt.browser.DefaultType", "mozilla");
I have also set a global environment variable "MOZILLA_FIVE_HOME" pointing to the same XULRunner installation dir.
But then, when I run my java program (32bit JRE, 32bit SWT) I get
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE]
How can I fix that?
Thanks in advance!
EDIT:
I was running command prompt not as administrator and xulrunner was not registering. Doing as administrator, worked. However I'm still in trouble: XULRunner 1.9.x seems not to support HTML5. For example element.children is not supported.
I managed installing XULRunner 10.0.2 that seems to have the required support. However as soon as I click into my embedded browser, the application just crashes without printing any error on java output console...
I need to find a solution in order to use either ecent version of mozilla or recent version of webkit on windows
Ok, loading XURLRunner 10.0.2 works. The crashing app was due to a stack overflow error in my js code.
I too am trying to embed XULRunner into my eclipse plug-in, with no luck (currently). I came across your answer here. Just wanted to comment that it is not reasonable that you executed
xulrunner --register-user
nor
xulrunner --register-global
on the XULRunner 10.X since according to this post
https://stackoverflow.com/a/7567781/1743693
the support on installing the XULRunner system-wide was removed (which was a good step IMHO)
Trying to execute the aforementioned commands will result
"Error: couldn't parse application.ini"
As for my problem: I keep running into the runtime error:
Can't load library:
C:\Users\david\.swt\lib\win32\x86_64\swt-xulrunner-win32-4236.dll
C:\Users\david\.swt\lib\win32\x86_64\swt-xulrunner-win32.dll: Can't
load IA 32-bit .dll on a AMD 64-bit platform
And I can't figure out where this is coming from.
I'm running a VirtualBox with Windows 8 64bit
If you can elaborate more on what solved your issue with that - i would really appreciate that.
Thanks.

Why Java is not launching when I use version 7 instead of 6?

When I install version 7 of Java on my windows 7 64 bit machine (I install this version 64 bit, windows with SDK) then Java does not launch when entering a website with applet. But when I use version 6 everything works fine.
On the other hand, while compiling (with Netbeans 7.1.1) everything works fine on both of these versions. Java programs also work fine when launched from command line with java command.
What is going on?
EDIT
Now I have tried reinstalling everything with Java 7 update 4 (64bits) but it still does not work. The problem might be somewhere in PATH variable because the java icon does not appear in the tray when I am entering a site with applet but still - I have added C:\Program Files\Java\jre7\bin to PATH and it does not work.
The Java Plugin must be in same hardware specification than the browser.
So if you install Java 64bits, it will run in IE 8 or 9 64bits.
But Firefox is only provided as 32 bits binary for Windows from the standard download channel. You should try with Firefox 64 bits.
Probably your Opera version is 32 bits too...
I invite you to cross-check by installing a 32 bits browser (Firefox standard binaries) and a JDK 32 bits on Windows 7 64 bits. It should work.
Its likely that your Java path environmental variables weren't updated. Check out this link. Make sure its pointing java to the 7 exe.

How do I tell whether my IE is 64-bit? (For that matter, Java too?)

Millions of questions already on the web about how to tell whether the OS is 64-bit, but not whether IE and/or Java runtime is 64-bit.
Some background: I installed 64-bit Win 7, and IE installed automatically with it from CD; I didn't download IE.
I did download Java runtime. Mouseover tips in Control Panel!Programs shows it as:
"Java 32-bit
Java(TM) Control Panel"
Then I went to http://java.com/en/download/manual.jsp and that page says...
We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers.
But I cannot tell in the aftermath whether my Java is 64-bit. Evidently the "Java(TM) Control Panel" is, but I don't know if that's the same as the runtime. (I'm afraid to ask on the offical Java forums, because they're such a-holes.)
Also, how do I issue a command to the OS to tell whether this IE is 64-bit?
Normally, you run IE 32 bit.
However, on 64-bit versions of Windows, there is a separate link in the Start Menu to Internet Explorer (64 bit). There's no real reason to use it, though.
In Help, About, the 64-bit version of IE will say 64-bit Edition (just after the full version string).
The 32-bit and 64-bit versions of IE have separate addons lists (because 32-bit addons cannot be loaded in 64-bit IE, and vice-versa), so you should make sure that Java appears on both lists.
In general, you can tell whether a process is 32-bit or 64-bit by right-clicking the application in Task Manager and clicking Go To Process. 32-bit processes will end with *32.
For Java, from a command line:
java -version
will indicate whether it's 64-bit or not.
Output from the console on my Ubuntu box:
java version "1.6.0_12-ea"
Java(TM) SE Runtime Environment (build 1.6.0_12-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
IE will indicate 64-bit versions in the About dialog, I believe.
Rob Heiser suggested checking out your java version by using 'java -version'.
That will identify the Java version that will be commonly found and used. Doing dev work, you can often have more than one version installed (I currently have 2 JREs - 6 and 7 - and may soon have 8).
http://www.coderanch.com/t/453224/java/java/java-version-work-setting-path
java -version will look for java.exe in the System32 directory in Windows. That's where a JRE will install it.
I'm assuming that IE either simply looks for java and that automatically starts checking in System32 or it'll use the path and hit whichever java.exe comes first in your path (if you tamper with the path to point to another JRE).
Also from what SLaks said, I would disagree with one thing. There is likely slightly better performance out of 64-it IE in 64-bit environments. So there is some reason for using it.
In addition to what TaskManager shows, if you use ProcessExplorer from Sysinternals, you can tell when you right-click on the process name and select Properties. In the Image tab, there is a field toward the bottom that says Image. It says 32-bit for a 32 bit application and 64 bit for the 64 bit application.
Select Help->About
for 64 bit.. it would say version as 64 bit Edition.
I see this in IE 9.. may be true with lesser versions too..

Categories