Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » MOZILLA_FIVE_HOME, downloading java server faces 2.1
MOZILLA_FIVE_HOME, downloading java server faces 2.1 [message #1005588] Sat, 26 January 2013 20:20 Go to next message
thorsten meier is currently offline thorsten meierFriend
Messages: 7
Registered: April 2012
Junior Member
hi,


trying to get started with jsf2, somehow the downloaded eclipse juno service release 1 got some problems downloading a jsf2 implementation.
the first time i got the error that MOZILLA_FIVE_HOME wasnt set, so i tried it again and set it to /usr/lib/mozilla which didnt work also /usr/lib/firefox didnt work...core dumped java.

how the hell does this "simple" operation cause so many problems, is it ubuntus 12.04.1 fault?



error with MOZILLA_FIVE_HOME='/usr/lib/mozilla'
org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/mozilla'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	/home/julius/Downloads/eclipse/configuration/org.eclipse.osgi/bundles/626/1/.cp/libswt-mozilla-gtk-4234.so: libxpcom.so: cannot open shared object file: No such file or directory
	no swt-mozilla-gtk in java.library.path
	Can't load library: /home/julius/.swt/lib/linux/x86/libswt-mozilla-gtk-4234.so
	Can't load library: /home/julius/.swt/lib/linux/x86/libswt-mozilla-gtk.so
	/home/julius/.swt/lib/linux/x86/libswt-mozilla-gtk-4234.so: libxpcom.so: cannot open shared object file: No such file or directory
)
	at org.eclipse.swt.SWT.error(SWT.java:4387)
	at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1970)
	at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:699)
	at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
	at org.eclipse.jst.common.project.facet.ui.libprov.user.internal.DownloadLibraryWizardLicensePage.createControl(DownloadLibraryWizardLicensePage.java:56)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
	at org.eclipse.jface.window.Window.create(Window.java:431)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
	at org.eclipse.jface.window.Window.open(Window.java:790)
	at org.eclipse.jst.common.project.facet.ui.libprov.user.internal.DownloadLibraryWizard.open(DownloadLibraryWizard.java:102)
	at org.eclipse.jst.common.project.facet.ui.libprov.user.UserLibraryProviderInstallPanel$4.widgetSelected(UserLibraryProviderInstallPanel.java:194)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage.handleFurtherConfigHyperlinkEvent(FacetsPropertyPage.java:533)
	at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage.access$5(FacetsPropertyPage.java:491)
	at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$7.linkActivated(FacetsPropertyPage.java:476)
	at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:233)
	at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:327)
	at org.eclipse.ui.forms.widgets.AbstractHyperlink.access$2(AbstractHyperlink.java:311)
	at org.eclipse.ui.forms.widgets.AbstractHyperlink$4.handleEvent(AbstractHyperlink.java:125)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	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$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	/home/julius/Downloads/eclipse/configuration/org.eclipse.osgi/bundles/626/1/.cp/libswt-mozilla-gtk-4234.so: libxpcom.so: cannot open shared object file: No such file or directory
	no swt-mozilla-gtk in java.library.path
	Can't load library: /home/julius/.swt/lib/linux/x86/libswt-mozilla-gtk-4234.so
	Can't load library: /home/julius/.swt/lib/linux/x86/libswt-mozilla-gtk.so
	/home/julius/.swt/lib/linux/x86/libswt-mozilla-gtk-4234.so: libxpcom.so: cannot open shared object file: No such file or directory

	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
	at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1955)
	... 61 more
Re: MOZILLA_FIVE_HOME, downloading java server faces 2.1 [message #1008940 is a reply to message #1005588] Thu, 14 February 2013 07:28 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Does the 32/64-bit nature of your Eclipse download match both the Mozilla/Firefox and JRE you're using? They all need to either be 32-bit or 64-bit, otherwise the native libraries will not load properly.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Removing obsolete files from the server
Next Topic:JNDI Feedback
Goto Forum:
  


Current Time: Sat Dec 20 15:20:55 GMT 2014

Powered by FUDForum. Page generated in 0.01871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software