[jbosstools-issues] [JBoss JIRA] (JBIDE-17230) GTK and BrowserSim web engine issue on Fedora

Michelle Murray (JIRA) issues at jboss.org
Sat May 31 22:43:15 EDT 2014


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

Michelle Murray edited comment on JBIDE-17230 at 5/31/14 10:42 PM:
-------------------------------------------------------------------

BrowserSim does not work on Fedora 19 with OpenJDK and Preferences GTK3 option selected.

In Project Explorer view, I right-click index.html and click Open With > BrowserSim. And I get the error message:
To use BrowserSim please install webkitgtk 1.2.0 or higher or run BrowserSim with Oracle Java 7u7 and higher.

I have the following installed:
{noformat}
mmurray [jbdevstudio] $ java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (fedora-2.4.7.0.fc19-x86_64 u55-b13)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

mmurray [jbdevstudio] $ yum list installed webkitgtk*
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
webkitgtk.x86_64                         2.0.4-1.fc19                   @updates
webkitgtk-devel.x86_64                   2.0.4-1.fc19                   @updates
webkitgtk3.x86_64                        2.0.4-1.fc19                   @updates
webkitgtk3-devel.x86_64                  2.0.4-1.fc19                   @updates
{noformat}

In Preferences > JBoss Tools > BrowserSim, I have GTK3 option selected.


was (Author: mmurray):
BrowserSim does not work on Fedora 19 with OpenJDK.

In Project Explorer view, I right-click index.html and click Open With > BrowserSim. And I get the error message:
To use BrowserSim please install webkitgtk 1.2.0 or higher or run BrowserSim with Oracle Java 7u7 and higher.

I have the following installed:
{noformat}
mmurray [jbdevstudio] $ java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (fedora-2.4.7.0.fc19-x86_64 u55-b13)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

mmurray [jbdevstudio] $ yum list installed webkitgtk*
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
webkitgtk.x86_64                         2.0.4-1.fc19                   @updates
webkitgtk-devel.x86_64                   2.0.4-1.fc19                   @updates
webkitgtk3.x86_64                        2.0.4-1.fc19                   @updates
webkitgtk3-devel.x86_64                  2.0.4-1.fc19                   @updates
{noformat}

In Preferences > JBoss Tools > BrowserSim, I have GTK3 option selected.

> GTK and BrowserSim web engine issue on Fedora
> ---------------------------------------------
>
>                 Key: JBIDE-17230
>                 URL: https://issues.jboss.org/browse/JBIDE-17230
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: browsersim
>    Affects Versions: 4.2.0.Beta1
>            Reporter: Michelle Murray
>            Assignee: Konstantin Marmalyukov
>            Priority: Blocker
>             Fix For: 4.2.0.Beta2
>
>
> Here's my bad user experience:
> I'm running Fedora19. I've seen GTK3 issues so I always set 'export SWT_GTK3=0' before starting JBDS.
> I make a HTML5 app, deploy to EAP 6.2 and then try to view on BrowserSim. But when I start BrowserSim I see an error message stating "WebKitGTK 1.2.0 or newer must be installed and in library load path". I've got libwebkit2gtk 2.0.4 installed so don't know how to resolve this.
> After much head scratching I finally remember about BrowserSim GTK preferences and web engine options. Within Window>Preferences>JBoss Tools>BrowserSim/CordovaSim, I see that GTK2 is selected. The GTK2 button label states that this will allow me to use JavaFX which needs Oracle JDK. I don't have Oracle JDK installed as this isn't supported by RH for use with Fedora. Perhaps this is why I see the earlier error message? So I try selecting GTK3. I run BrowserSim again and it starts but then I start to see GTK3 UI issues in BrowserSim.
> So I want to use GTK2 and SWT WebKit for BrowserSim on Fedora. Is there a specific reason I can't (other than the IDE won't let me)?
> Issues:
> 1) Can the first error message be more helpful?
> 2) Can the info on the error message wiki link be updated to detail why this error is being seen on Linux? (current info about similar message related to Windows and JRE7 issue - needs updating anyway as suggests using Java 6 as fallback for Windows but JBDS 8 doesn't support Java 6 for running IDE)
> 2) Can selecting GTK2 set BrowserSim to use SWT WebKit and then users change web engine preference to JavaFX if they want?



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jbosstools-issues mailing list