[jbosstools-issues] [JBoss JIRA] (JBIDE-14986) BrowserSim: cannot run BrowserSim on 64-bit Eclipse on Windows with Java 7

Konstantin Marmalyukov (JIRA) jira-events at lists.jboss.org
Mon Jun 24 16:21:20 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-14986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784137#comment-12784137 ] 

Konstantin Marmalyukov commented on JBIDE-14986:
------------------------------------------------

Later, as it have been written in deleted comment, BrowserSim was launched using default java vm(java.home property, it is always jre). If it was jre7(remember, some versions of jre7 conflicts with Safari) we were trying to use JDK(no conflicts with Safari), which can be specified as Eclipse vm.

Now we allow user to select VM to launch BrowserSim(or detect suitable from Installed JRE list) and Eclipse vm check doesn't needed. Unfortunately, I forgot to delete this code when I was implementing autodetect feature.

What actually happens: JVM to run BrowserSim was detected(or chosen), but the deleted code change it to Eclipse vm. Eclipse vm is 64bit, we cannot use it because there is no 64bit Safari. And error message doesn't appears because it appears only if there is no suitable JVM.
                
> BrowserSim: cannot run BrowserSim on 64-bit Eclipse on Windows with Java 7
> --------------------------------------------------------------------------
>
>                 Key: JBIDE-14986
>                 URL: https://issues.jboss.org/browse/JBIDE-14986
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: browsersim
>    Affects Versions: 4.1.0.Beta2
>            Reporter: Yahor Radtsevich
>            Assignee: Konstantin Marmalyukov
>            Priority: Blocker
>             Fix For: 4.1.0.Beta2, 4.1.0.CR1
>
>
> *Steps to reproduce:*
> # Install 64-bit Eclipse on Windows
> # Run Eclipse with 64-bit Java 7 (by adding {{-vm ...\jre1.7.0\bin\java.exe}} parameter to the {{eclipse.ini}})
> # Install BrowserSim from JBT update site
> # Add a 32-bit JVM to the installed JREs list (Preferences > Java > Installed JREs)
> # Try to start BrowserSim
> *Result:*
> BrowserSim does not start. The following stack trace is printed to the console:
> {code}
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
>         at org.eclipse.swt.internal.Library.loadLibrary(Library.java:263)
>         at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
>         at org.eclipse.swt.internal.C.<clinit>(C.java:21)
>         at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
>         at org.jboss.tools.vpe.browsersim.ui.BrowserSim.initSkin(BrowserSim.java:164)
>         at org.jboss.tools.vpe.browsersim.ui.BrowserSim.open(BrowserSim.java:143)
>         at org.jboss.tools.vpe.browsersim.ui.BrowserSim.open(BrowserSim.java:112)
>         at org.jboss.tools.vpe.browsersim.BrowserSimRunner.main(BrowserSimRunner.java:50)
> {code}
> *Workaround:*
> Run 64-bit Eclipse with Java 6 on Windows

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list