Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15187

BrowserSim does not start on Fedora with OpenJDK(jre)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.1.0.CR1
    • 4.1.0.CR1, 4.2.0.Alpha1
    • browsersim

    Description

      Steps to reproduce:

      1. You need to install OpenJDK 6 or 7(not openjdk-devel package, simple openjdk) if you do not have it
      2. Go to Preferences > Java > Installed JREs and add OpenJDK to the list
      3. Revove all JREs except OpenJDK from the JRE list
      4. Try to run BrowserSim

      Actual result:
      BrowserSim does not start, the following exception is printed to the error log:

       
      !ENTRY org.jboss.tools.vpe.browsersim.eclipse 4 0 2013-07-11 19:14:18.974
      !MESSAGE Cannot run program "/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25/bin/java" (in directory "/home/fedora/workspaceCR1/.metadata/.plugins/org.eclipse.pde.core/New_configuration"): error=2, No such file or directory
      !STACK 0
      java.io.IOException: Cannot run program "/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25/bin/java" (in directory "/home/fedora/workspaceCR1/.metadata/.plugins/org.eclipse.pde.core/New_configuration"): error=2, No such file or directory
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
              at org.jboss.tools.vpe.browsersim.eclipse.launcher.ExternalProcessLauncher.launchAsExternalProcess(ExternalProcessLauncher.java:87)
              at org.jboss.tools.vpe.browsersim.eclipse.launcher.BrowserSimLauncher.launchBrowserSim(BrowserSimLauncher.java:47)
              at org.jboss.tools.vpe.browsersim.eclipse.actions.RunBrowserSimAction.run(RunBrowserSimAction.java:55)
              at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
              at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
              at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
              at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
              at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
              at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
              at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
              at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
              at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
              at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
              at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      Caused by: java.io.IOException: error=2, No such file or directory
              at java.lang.UNIXProcess.forkAndExec(Native Method)
              at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
              at java.lang.ProcessImpl.start(ProcessImpl.java:130)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
              ... 34 more
      

      Attachments

        Activity

          People

            yradtsevich Yahor Radtsevich (Inactive)
            yradtsevich Yahor Radtsevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: