Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can't create Java-Project
Can't create Java-Project [message #1442158] Fri, 10 October 2014 18:03 Go to next message
Nils Schütte is currently offline Nils SchütteFriend
Messages: 3
Registered: October 2014
Junior Member
Hi,

I just downloaded eclipse for my mac but I can't manage to just create a simple new java project.

I tried all kind of different settings, but it just doesn't work.

My OS X: 10.9.5

1.
With just Java from Apple and Eclipse Luna Ecplipse won't start:
An error has occured: See the log file
/Applications/eclipse/configuration/1412962052052.log.

2.
With JDK 7 or JDK 8 and Eclipse Luna or Kepler, nothing happens when I try to create new Java Project.
First when I closed eclipse I would get an error message mentioning
... org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z ...

3.
Then I found those articles
https://bugs.eclipse.org/bugs/show_bug.cgi?id=432118
http://www.eclipse.org/forums/index.php/t/781657/
and tried to manually delete org.apache.xerces.dom-Files and also Mylyn-Files in the plugin-folder.

After that I won't get the error message whenclosing eclipse anymore but still nothing happens when pressing the button to create a new javaproject.

Creating just a simple project (not java) will work fine.

Could anyone please give me a hint, how I can fix this problem?

Thank you very much in advance!

Re: Can't create Java-Project [message #1444926 is a reply to message #1442158] Tue, 14 October 2014 19:30 Go to previous messageGo to next message
Nils Schütte is currently offline Nils SchütteFriend
Messages: 3
Registered: October 2014
Junior Member
I tried again, Kepler, JDK 7. May be someone can help when seeing this error log (there was more e.g. some unknown host exception, but I guess that this is the core part of my problem):


!ENTRY org.eclipse.ui 4 0 2014-10-14 21:03:21.664
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:377)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:131)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:98)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:702)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359)
at org.eclipse.debug.internal.core.LaunchManager.serializeDocument(LaunchManager.java:559)
at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPlugin.java:1201)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.writeInstallInfo(LaunchingPlugin.java:1072)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.timeStampChanged(LaunchingPlugin.java:988)
at org.eclipse.jdt.internal.launching.StandardVMType.getLibraryInfo(StandardVMType.java:183)
at org.eclipse.jdt.internal.launching.StandardVMType.getDefaultLibraryLocations(StandardVMType.java:395)
at org.eclipse.jdt.internal.launching.StandardVMType.canDetectDefaultSystemLibraries(StandardVMType.java:208)
at org.eclipse.jdt.internal.launching.StandardVMType.getJavaHomeLocation(StandardVMType.java:272)
at org.eclipse.jdt.internal.launching.macosx.MacOSXVMInstallType.detectInstallLocation(MacOSXVMInstallType.java:140)
at org.eclipse.jdt.launching.JavaRuntime.detectEclipseRuntime(JavaRuntime.java:1781)
at org.eclipse.jdt.launching.JavaRuntime.initializeVMs(JavaRuntime.java:2692)
at org.eclipse.jdt.launching.JavaRuntime.getDefaultVMInstall(JavaRuntime.java:507)
at org.eclipse.pde.internal.ui.wizards.plugin.PluginContentPage.createExecutionEnvironmentControls(PluginContentPage.java:163)
at org.eclipse.pde.internal.ui.wizards.plugin.PluginContentPage.createPluginPropertiesGroup(PluginContentPage.java:130)
at org.eclipse.pde.internal.ui.wizards.plugin.PluginContentPage.createControl(PluginContentPage.java:98)
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.setWizard(WizardDialog.java:1182)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1241)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)
at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1225)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
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.Display.sendEvent(Display.java:4166)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
at org.eclipse.jface.window.Window.open(Window.java:802)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
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:606)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:420)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)
at org.eclipse.ui.actions.NewWizardDropDownAction.run(NewWizardDropDownAction.java:174)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
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.Display.sendEvent(Display.java:4166)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)
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:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
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:606)
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)

!ENTRY org.eclipse.core.resources 4 2 2014-10-14 21:04:35.427
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:377)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:131)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:98)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:702)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359)
at org.eclipse.debug.internal.core.LaunchManager.serializeDocument(LaunchManager.java:559)
at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPlugin.java:1201)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.writeInstallInfo(LaunchingPlugin.java:1072)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.access$0(LaunchingPlugin.java:1051)
at org.eclipse.jdt.internal.launching.LaunchingPlugin$1.saving(LaunchingPlugin.java:544)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

!ENTRY org.eclipse.core.resources 2 2 2014-10-14 21:04:35.476
!MESSAGE Save operation warnings.
!SUBENTRY 1 org.eclipse.core.resources 2 566 2014-10-14 21:04:35.476
!MESSAGE Problems occurred during save.
!STACK 0
java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:377)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:131)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:98)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:702)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359)
at org.eclipse.debug.internal.core.LaunchManager.serializeDocument(LaunchManager.java:559)
at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPlugin.java:1201)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.writeInstallInfo(LaunchingPlugin.java:1072)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.access$0(LaunchingPlugin.java:1051)
at org.eclipse.jdt.internal.launching.LaunchingPlugin$1.saving(LaunchingPlugin.java:544)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

!ENTRY org.eclipse.core.resources 4 2 2014-10-14 21:04:50.210
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:377)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:131)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:98)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:702)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359)
at org.eclipse.debug.internal.core.LaunchManager.serializeDocument(LaunchManager.java:559)
at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPlugin.java:1201)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.writeInstallInfo(LaunchingPlugin.java:1072)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.access$0(LaunchingPlugin.java:1051)
at org.eclipse.jdt.internal.launching.LaunchingPlugin$1.saving(LaunchingPlugin.java:544)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:2376)
at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$5.run(IDEWorkbenchAdvisor.java:508)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Re: Can't create Java-Project [message #1445068 is a reply to message #1444926] Wed, 15 October 2014 00:34 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3511
Registered: July 2009
Senior Member

Which Eclipse file did you download? Which version of Java is it you're using to launch Eclipse? Stick with one combination until this is solved.

Have you tried not running it from /Applications? Do you have anything resembling another copy of Xerces in /System/Library/Frameworks/JavaVM.framework/Home/lib/ext or /System/Library/Java/Extensions, or referenced in a CLASSPATH environment variable?


Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Can't create Java-Project [message #1446926 is a reply to message #1445068] Fri, 17 October 2014 14:15 Go to previous message
Nils Schütte is currently offline Nils SchütteFriend
Messages: 3
Registered: October 2014
Junior Member
Hi! Thanks for your reply!

I downloaded: eclipse-standard-kepler-SR2-macosx-cocoa-x86_64.tar.gz
Java Version: 1.7.0_67

Now I have also tried running it not from /Applications, instead I tried to run it directly from Downloads. Same behavior.

I hope, I checked the folders and classpath correctly. If so, there are no copies of Xerces. This is how I checked:
To all the following locations I navigated using the Finder and looked for files that had something like "Xerces" in the name:
1. /System/Library/Frameworks/JavaVM.framework/Home/lib/ext
2. /System/Library/Java/Extensions

I typed "echo $PATH" in the terminal and got:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin

The last mentioned folder "/usr/texbin" doesn't exist. Besides that I used the Finder again to navigate to all the folders and looked for anything like Xerces:
1. /usr/bin
2. /bin
3. /usr/sbin
4. /sbin
5. /usr/local/bin

I coudn't find a file with the name "Xerces" in it at any of those places. Would it help if i posted the contents of all those folders?

Could it be a problem that the folder /usr/texbin in the classpath doesn't exist?

[Updated on: Fri, 17 October 2014 14:16]

Report message to a moderator

Previous Topic:How do I get JOptionPane.showMessageDialog to appear in eclipse
Next Topic:Eclipse wont start (yet another thread)
Goto Forum:
  


Current Time: Sat Oct 19 18:06:16 GMT 2019

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

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

Back to the top