Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Newbie: An error ocurred while setting the build path
Newbie: An error ocurred while setting the build path [message #141212] Wed, 08 October 2003 02:48
Eclipse UserFriend
Originally posted by: sschwarz.hotmail.com

Hi

I've just installed Eclipse 2.1.1 stable on RH 8.0 and I'm running it
with j2sdk1.4.1_02. I'm getting an error dialog when I visit the Project
-> Properties -> Java Build Path anytime after the first time I add
external Jars to the project. That is, I can add the jars and OK the
dialog - subsequent viewing of that selection in the dialog and
selecting OK gives the error:
"An error occurred while setting the build path
Reason:
Resource /home does not exist"

I have to select Cancel to close the dialog.
Of course, this makes it difficult to modify the project... unless there
is a DTD for the .classpath that I can use to manually modify the file.

The .classpath file contains:
?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="src/|save/" kind="src" path=""/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib"
path=" /home/sschwarz/cocoon-2.1/build/webapp/WEB-INF/lib/xreporter -expression-20030725.jar "/>
<classpathentry kind="lib"
path=" /home/sschwarz/cocoon-2.1/build/webapp/WEB-INF/lib/actions.j ar "/>
... and so on
</classpath>

the .log entry:

!SESSION Oct 07, 2003 20:48:44.445
---------------------------------------------
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86 -install
file:/usr/local/share/eclipse/
!ENTRY org.eclipse.jdt.ui 4 10001 Oct 07, 2003 20:48:44.447
!MESSAGE Internal Error
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource /home
does not exist.
at
org.eclipse.core.internal.resources.Resource.checkExists(Res ource.java:302)
at
org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:174)
at
org.eclipse.core.internal.resources.Project.checkAccessible( Project.java:102)
at
org.eclipse.core.internal.resources.Folder.assertCreateRequi rements(Folder.java:26)
at
org.eclipse.core.internal.resources.Folder.create(Folder.jav a:84)
at
org.eclipse.core.internal.resources.Folder.create(Folder.jav a:114)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:37)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:35)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:35)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:35)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:35)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:35)
at
org.eclipse.jdt.internal.ui.util.CoreUtility.createFolder(Co reUtility.java:35)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlo ck.internalConfigureJavaProject(BuildPathsBlock.java:646)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlo ck.configureJavaProject(BuildPathsBlock.java:597)
at
org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPa ge$1.run(BuildPathsPropertyPage.java:155)
at
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.ex ecute(WorkspaceModifyDelegatingOperation.java:45)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:71)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1595)
<snip>

I don't know if it matters: I installed Eclipse to
/usr/local/share/eclipse as root and am running it as a non-root user.

I've searched the newsgroups, dev list, google, but can't seem to find
any others with this problem.

Any help would be greatly appreciated!
Thanks
Steve
Previous Topic:Ant View: Error while running the target
Next Topic:How to set editor focus?
Goto Forum:
  


Current Time: Thu Apr 25 02:20:41 GMT 2024

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

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

Back to the top