Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 12979 - Cannot create Java Project
Summary: Cannot create Java Project
Status: RESOLVED DUPLICATE of bug 12769
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 13474 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-08 08:06 EDT by Hank Roark CLA
Modified: 2002-04-10 21:15 EDT (History)
1 user (show)

See Also:


Attachments
Log file from 20020409 build (10.74 KB, text/plain)
2002-04-10 09:44 EDT, Hank Roark CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Roark CLA 2002-04-08 08:06:29 EDT
On Linux RedHat 7.2, gtk+-1.2.10-ximian.21, Eclipse build 20020408 (file
eclipse-SDK-20020408-linux-gtk1x.zip):

1.  Fresh install
2.  Select File...New...Project...
3.  New Project Wizard comes up, select Java, Java Project, Next
4.  In Project Name enter ATP (or any name, for that matter)
5.  Select Finish...the following error appears:
        "An error occured while creating Java Project
         Reason:  File /ATP/.project is read-only"

This is repeatable.
Comment 1 Nick Edgar CLA 2002-04-08 09:11:47 EDT
Does this message indicate the resource path or the file name?
i.e. is it trying to create a file under root?
Comment 2 DJ Houghton CLA 2002-04-08 10:42:04 EDT
If the user is not entering a location for the project (e.g. it is using the 
default workspace location for the content) then this would be a resource path 
in the workspace tree and not a file system path.

Where is your workspace located? How do you start Eclipse? Do you use a -data 
command?
Comment 3 Hank Roark CLA 2002-04-08 14:05:08 EDT
I downloaded the file (eclipse-SDK-20020408-linux-gtk1x.zip) to the following
directory:   /home/hroark/downloads/eclipse
I then unziped the downloaded file:  unzip eclipse-SDK-20020408-linux-gtk1x.zip
I then changed directory into /home/hroark/downloads/eclipse/eclipse and typed
the following command: ./eclipse -ws gtk1x

I then did the steps (starting at #2) in the original bug report to attempt to
create a new project.

No errors appear in the console from where I started eclipse, only the dialog in
the orginal bug report.

Is this what you were looking for?
Comment 4 DJ Houghton CLA 2002-04-08 14:10:06 EDT
Yes, thanks for the steps.

Is there any information in the .log file? It should be in the workspace 
metadata area.

/home/hroark/downloads/eclipse/eclipse/workspace/.metadata/.log
Comment 5 Hank Roark CLA 2002-04-08 14:19:05 EDT
Here's the log file..I did a clean install to get as short a log file as possible:

Log: Mon Apr 08 14:09:16 EDT 2002
1 org.eclipse.core.resources 2 Could not load library: libcore_2_0_5.so.
java.lang.UnsatisfiedLinkError: no core_2_0_5 in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
	at java.lang.Runtime.loadLibrary0(Runtime.java:749)
	at java.lang.System.loadLibrary(System.java:820)
	at
org.eclipse.core.internal.localstore.CoreFileSystemLibrary.<clinit>(CoreFileSystemLibrary.java:51)
	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:1065)
	at org.eclipse.core.internal.resources.Project.create(Project.java:238)
	at
org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPage$2.run(NewJavaProjectWizardPage.java:274)
	at
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:39)
	at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:64)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1343)
	at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:296)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:713)
	at
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizard.performFinish(NewProjectCreationWizard.java:62)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:570)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:311)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:356)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:539)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1212)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1098)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:538)
	at org.eclipse.jface.window.Window.open(Window.java:525)
	at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:105)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
	at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:539)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1212)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1098)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:779)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:762)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:777)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
	at org.eclipse.core.launcher.Main.run(Main.java:549)
	at org.eclipse.core.launcher.Main.main(Main.java:390)
Log: Mon Apr 08 14:09:17 EDT 2002
4 org.eclipse.jdt.ui 1 Internal Error
org.eclipse.core.internal.resources.ResourceException: File /atp/.project is
read-only.
	at org.eclipse.core.internal.resources.Workspace.validateSave(Workspace.java:1711)
	at org.eclipse.core.internal.resources.File.setContents(File.java:243)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.internalWrite(FileSystemResourceManager.java:156)
	at org.eclipse.core.internal.resources.Project.writeDescription(Project.java:750)
	at org.eclipse.core.internal.resources.Project.create(Project.java:263)
	at
org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPage$2.run(NewJavaProjectWizardPage.java:274)
	at
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:39)
	at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:64)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1343)
	at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:296)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:713)
	at
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizard.performFinish(NewProjectCreationWizard.java:62)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:570)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:311)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:356)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:539)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1212)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1098)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:538)
	at org.eclipse.jface.window.Window.open(Window.java:525)
	at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:105)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
	at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:539)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1212)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1098)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:779)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:762)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:777)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
	at org.eclipse.core.launcher.Main.run(Main.java:549)
	at org.eclipse.core.launcher.Main.main(Main.java:390)
	4 org.eclipse.team.core 4 File /atp/.project is read-only.
Comment 6 DJ Houghton CLA 2002-04-08 14:27:00 EDT
I just noticed that you are using a nightly build. Nightly builds are not 
guarenteed to work (and will most likely not). Here is a list of the different 
build types:

http://eclipsedrops.ott.oti.com/downloads/master/downloads/build_types.html

Are you able to reproduce this problem in either a stable build or integration 
build?
Comment 7 Hank Roark CLA 2002-04-08 14:33:37 EDT
Yeah, I know I'm using a nightly build...that is because the last integration
build (20020404) doesn't include the fix for bug #6983, and I need that fix.  I
can wait for the next integration build.
Comment 8 DJ Houghton CLA 2002-04-08 14:37:35 EDT
Closing bug.
Please re-open if you are able to reproduce this behaviour on a non-nightly 
build.
Comment 9 Hank Roark CLA 2002-04-10 09:44:22 EDT
Created attachment 565 [details]
Log file from 20020409 build
Comment 10 Hank Roark CLA 2002-04-10 09:45:41 EDT
I just downloaded the latest Linux GTK1.x integration build (20020409) and this
defect still exists.  I followed the same steps as below and got the exact same
error.  As a side note, this defect does not exist in the Windows version.

I attached the log from the 20020409 build to this defect.
Comment 11 DJ Houghton CLA 2002-04-10 19:33:00 EDT
*** Bug 13474 has been marked as a duplicate of this bug. ***
Comment 12 Alvin Thompson CLA 2002-04-10 19:35:43 EDT
should the priority be bumbed up to p1?
Comment 13 DJ Houghton CLA 2002-04-10 20:50:21 EDT
Duplicate of Bug 12769.

Really 2 problems. First the our library isn't shipped with the GTK zip. Will 
look into that.

Since the library wasn't present, the bug in Bug 12769 surfaced.


*** This bug has been marked as a duplicate of 12769 ***
Comment 14 Alvin Thompson CLA 2002-04-10 21:03:12 EDT
bug 12769 is fixed as of 4/9 build, yet this problem still exists in 4/10 build...
Comment 15 DJ Houghton CLA 2002-04-10 21:15:53 EDT
Bug 12769 is fixed in integration builds after 2002-04-09.