Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble with Browser type SWT.MOZILLA on windows 8 64 bit
    primarykey
    data
    text
    <p>after spending a day reading here and there I decided to ask help as I could not find a solution to my problem.</p> <p>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.</p> <p>First let me say that I'm using SWT 4.2.x on windows 8 64 bit.</p> <p>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:</p> <p><a href="http://www.w3schools.com/html/html5_draganddrop.asp" rel="nofollow">http://www.w3schools.com/html/html5_draganddrop.asp</a></p> <p>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)</p> <p>Finally in my code I added</p> <pre><code>System.setProperty("org.eclipse.swt.browser.DefaultType", "mozilla"); </code></pre> <p>I have also set a global environment variable "MOZILLA_FIVE_HOME" pointing to the same XULRunner installation dir.</p> <p>But then, when I run my java program (32bit JRE, 32bit SWT) I get</p> <pre><code>Exception in thread "main" org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE] </code></pre> <p>How can I fix that? Thanks in advance!</p> <p><strong>EDIT:</strong> 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...</p> <p>I need to find a solution in order to use either ecent version of mozilla or recent version of webkit on windows</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload