Is it possible to use the 64bit XulRunner for Windows (available from here) with the Eclipse browser widget? It works fine under 32bit Windows and the answer to this question explains how this works. But when I try this under 64bit Windows I get the following exception:
org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: Could not
load SWT library. Reasons:
no swt-xulrunner-win32-3834 in java.library.path
no swt-xulrunner-win32 in java.library.path
Can't load library:
C:\Users\...\.swt\lib\win32\x86_64\swt-xulrunner-win32- 3834.dll
Can't load library: C:\Users\...\.swt\lib\win32\x86_64\swt-xulrunner-win32.dll
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.browser.Mozilla.initXULRunner(Mozilla.java:2594)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:684)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
at org.openlca.ui.BrowserFactory.createMozilla(BrowserFactory.java:52)
Thanks for help,
Michael
Edit:
I found it in the Eclipse bug-tracker (link here):
swt's 64-bit Windows port does not have xulrunner support because mozilla.org does not provide a 64-bit xulrunner on Windows
But as the last comment on this bug says, there is a 64bit XulRunner available
Yes, XULRunner support on Windows x86_64 is now in place for the upcoming Eclipse/SWT 4.3 release.
Regarding the XPCOM error 0x80004005, if you're trying to use XULRunner 3.6.x (like the poster in the other question) then support for this was released even more recently, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=406912 .
So I came here with similar problem: trying to run DJ Project browser within Java Swing - more specifically within that the Mozilla XPCOM Download Manager sample which requires SWT and XULRunner.
Following the eclipse bug link in your OP - I found another (eclipse bugzilla) - looks like this has been a long-standing issue (only 5+ years!!) - which is actually now (as of 11/4/13 - 2 days ago!) fixed.
I have downloaded SWT package from Eclipse nightly builds and I can confirm it does now contain the swt-xulrunner-win32-xxxx.dll. Unfortunately I now have other problems stopping my test working, but thought I'd post what I'd found here.
Edit:
Actually my problem now is identical to this XPCOM error 0x80004005
I realize that this question is old and already has an accepted answer, but in regards to the XPCOM error 0x80004005, I may be able to help.
With 64-bit 4.3 SWT I was able to fix this exception by using XULRunner version 1.9.2.25 runtimes. Originally I found the download from here: https://osdn.net/projects/sfnet_runawfe/downloads/SRC%20and%20BIN%20files/extras/xulrunner-1.9.2.25-win64.zip/
However, I have also re-hosted it as xulrunner-1.9.2.25.en-US.win64.zip.
Full explanation posted in my answer here: https://stackoverflow.com/a/44848877/3300205
Related
I am on Ubuntu 16.04 with NetBeans 8.1 - fresh install provided by Ubuntu SW center + OpenJDK - default with Ubuntu.
When I follow the video manual on codename one web site: https://www.codenameone.com/download.html
I do not get option to install codename one plugin.
To be precise, there is not a single available plugin listed.
In Windows 7 this works fine however.
I don't even know, who should I attribute this problem to:
Ubuntu 16.04 ? - which sucks and behaves weird compared to earlier Ubuntu versions (now for instance does not close the open and frozen NetBeans - had to kill -9 it)
Net Beans 8.1 ? which runs just fine with Win7
codename one ? Which I rather doubt :)
or even me ? :)
Please give me any hints, if anyone ran into similar troubles, how do I fix it ?
We need to the official Java 8 JDK for install since we need access to Java FX for things such as web browser/media support. If OpenJDK will ever work with Java FX properly then it should work fine with Codename One.
Here is the solution:
Part of the story is, that you should use original JDK from Oracle, not the pre-installed OpenJDK. Similarly, Android Studio will complain about incompatible JDK.
But secondly ! Using the NetBeans installation provided by Ubuntu SW center results in incomplete, or not updatable version. Simply you get no available plugins listed. Only those pre-installed. Moreover, this IDE freezes much too often. What the heck !?
Instead download and install NetBeans from their site:
I went for the full version.
For this and many other reasons I think I am done with Ubuntu 16.04
Every day it convinces me it does not YET deserve to occupy my disk space. I will probably step back to 14.04 LTS, until 16.04 LTS it reaches some mature state.
I'm using grails burning image plugin and it works fine on my Windows development environment and on the linux pre-production server.
Unfortunately, the production server is a FreeBsd server based on openJDK 1.7.0_65.
When I want to upload a picture which is a '.jpg' or '.jpeg' file, I get a com.sun.image.codec.jpeg.ImageFormatException.
After looking on stackoverflow, I found these two posts which seem to say that I have to add -XDignore.symbol.file option launching the java compiler.
Source:
import com.sun.image.codec.jpeg.*
Using internal sun classes with javac
How can I add this option to my grails application?
This sun package is not supported in OpenJDK. See these links for further reference:
Issue 28: fails under OpenJDK-7++
difference between Sun JDK and open JDK
Sadly, this renders the plugin virtually useless with OpenSDK's.
Edit: What I found as a solution is this plugin:
hd-image-utils
Fair warning thou, it has problems working with CMYK images.
I was using oracle forms in WEB Windows XP with IE6 it was working well with J initiator. Now I switched to Windows 7 with IE9 I installed Jinitator but, IE is crashing.
Any solution ?
There are several solutions for this.
Ditch jinitiator and switch to JRE 1.6.0_37.
Works on Windows XP and Windows 7 and Linux (REHL 5/6 AND FEDORA 17*).
Browsers tested IE7/8/9, chrome, firefox, safari.
What kind/version of application server are you using?
What kind/version of forms are you using?
*) YES You can install oracle 11.2.0.2 database, Weblogic 10.3.6 and Forms 11.1.2.0.0 on Fedora 17
You should realize why in the past you should have used jinitiator and not a jre version. So here is some background:
When webforms gave birth oracle had a lot of bugs regarding to the java runtime. In that time java was from Sun and they didn't want to solve all the issues regarding oracle webforms. So instead of pushing Sun (if Oracle even could do that at that moment) they had the idea of doing the work themselves. So Jinitiator was the product to solve all these issues.
In the meantime Sun fixed all the problems (or at least most of them in the end of version 1.5 and the beginning of version 1.6 of java runtime), so jinitiator was becoming absolute.
At this moment java development is from Oracle and not anymore from Sun so all the problems will certainly be resolved and jinitiator can disappear from this world.
So the solution to you're problem is indeed install java runtime version in windows 7.
Hope this answer will give all of you a better insight in this matter.
I only can offer you to try Netscape browser, on Windows 7 i am running Oracle Forms with Netscape and it works well.
I tried the below and it worked.
Install Jinitiator as normal, if your having problems actually getting it to install, just use the Win7 ‘compatibility mode’ to get it to stay on your machine instead of it annoyingly uninstalling itself at the end of a failed install process.
Now
Replace the jvm.dll in jinitiator directory (C:\Program Files (x86)\Oracle\JInitiator 1.3.1.13\bin\hotspot\) with this file jvm.dll.
Restart IE* and try again, Windows 7 should reduce your color scheme and your app should now work.
Has anyone been able to get Oracle Forms running JInitator to loan in Internet Explorer 8 yet? I have tried removing all add-ons, various version of Java, add the domain to the trusted sites using wildcards, and using compatibility mode to no avail. I am looking to get our Oracle guys to kick there Internet Explorer 6 habit. This is related to Oracle E-Business.
To solve this problem you need to replace the file C:\Program Files\Oracle\JInitiator x.x.x.xx\bin\hotspot\jvm.dll with the sun version of the file.
On my system the sun version is here C:\Program Files\Java\jre6\bin\client\jvm.dll
Replacing the jvm.dll did not work for me. The proper way to switch to Sun's Java VM which worked for me is by changing this
baseHTMLjinitiator=basejini.htm
to
this
baseHTMLjinitiator=basejpi.htm
in the formsweb.cfg file. IE8 on XP SP3, DEP enabled.
Yes as of now IE8 is not certified for Oracle Apps. You may hear a good news soon!
I have successfully installed Oracle Forms 10g on Windows7 and get both JPI and Jinitiator working.
Steps
Install Dev10g
Apply Patch p5983622_10123_WINNT
Manually install JRE 1.6 upd 20
Configure formsweb.cfg for JPI
This is preferred method as you don't have to do following steps on each client
If you want to run using Jinitiator
Configure formsweb.cfg for Jinitiator
Once Jinitiator is installed on client machine replace jvm.dll
As Mundit has said, it is still not certified.
Do you have access to Metalink? Note: 760326.1 When Will IE 8 Be Certified With E-Bussines Suite? gives some further information.
A colleague of mine told me to do the following:
Add server to Trusted Sites and then:
Tools / Internet options
Security tab -> Trusted Sites
Click on Custom level... button
scroll to the end and find "Enable XSS filter" option (3rd from the bottom)
set it to Disable
This works for me with 11i and R12 apps.
Good luck!
One thing to add to Simon's solution. I did the trick on one computer but couldn't repeat it on a second one. Finally, I discovered that replacing the file does not work when using the file jvm.dll from java 6 update 14. It worked fine when I used the jvm.dll file from version 13.
You guys are great! I was pulling my hair off their roots and now got it fixed.
I went to Control Panel/System/Advanced tab/Startup and Recovery panel hit Settings. Then in the System Startup panel hit Edit. There made noexecute=AlwaysOff and saved.
As per Simon I swapped the Oracle jvm.dll with the Java version. I had to downgrade that to jvm.dll version 10.0.0.23 though.
Also as per Simon I went to Tools/Internet Options/Security/Trusted Sites/Custom Level and disabled Enable XSS Filter.
Not sure whether #1 applies to everyone but it was necessary for me. Good Luck!
Fouwaaz
Here's something even more intersting about JINIT. It was de-supported by Oracle as of July 31st. You might want to consider moving to the SUN JPI instad. This is the recommended route by Oracle now, and since JINIT will not be getting updates it's the safest.
Install the latest JRE from Sun. I have installed "jre-6u10-windows-i586-p-s.exe".
Copy the jvm.dll (appx Ver 11.0.0.15 size 2.25 MB (2,359,296 bytes)) from the “C:\Program Files\Java\jre6\bin\client” folder and paste it to folder where the Jinitiator is installed (default location) e.g “C:\Program Files\Oracle\JInitiator 1.3.1.22\bin\hotspot”.
It will work fine with the IE8 browser.
Thanks for the help.
We're having a similiar problem.
I believe Oracle is aware of this, and is working on a patch, which is not ready yet.
I've done numerous searches and I realize that I can just download this file and install it either in windows/system32 or in the application's directory. My question is, how does this dll generally get installed on Vista? I tried installing the .net framework 3.5 and it didn't get installed with that.
Background:
I'm running a java.jar wrapped as an exe using exe4j.
msvcr71.dll is the Microsoft Visual C++ Common Runtime for Visual Studio 2003. Applications developed with VS2003 will usually install this.
i tried this fix to resolve MSVCR71.dll missing error in Windows 7 X64:
http://backspacetab.com/2011/05/09/msvcr71-dll-windows-7-x64/
Its only for 64Bit users... 32bit users follow the guide here: http://i.justrealized.com/2009/how-to-fix-missing-msvcr71dll-problem-in-windows/
Thanks and enjoy !!
have you tried executing using "java -jar java.jar"? Does it produce the same result?
Since VS 2003 targeted older versions of .NET and is not a supported development environment on Vista, it's probably only going to get installed on Vista if an application's installer does so.
I don't know if the .NET 1.1 redistributable will install it on Vista, but it's worth a try in a virtual machine.
Your problem might be related to these Sun bugs -
http://bugs.sun.com/view_bug.do?bug_id=6560269
and
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6648440
Upgrading to the latest exe4j (version 4.1) solved this issue!