problems starting eclipse IDE as non-root on ubuntu.

chris (2006-05-23 16:18:38)
2222 views
0 replies
Running eclipse without sudo on ubuntu kept returning this error: "!MESSAGE Error reading configuration: cannot create temporary file", Followed by a java error stack looking like this:

chris@localhost:~$ eclipse
searching for compatible vm...
testing /usr/lib/jvm/java-gcj...found
!SESSION 2006-05-23 15:08:19.126 -----------------------------------------------
eclipse.buildId=M20060118-1600
java.fullversion=GNU libgcj 4.1.0 (Ubuntu 4.1.0-1ubuntu8)
BootLoader constants: OS=linux, ARCH=x86, http://www.linuxquestions.org/questions/newthread.php?do=newthread&f=63WS=gtk, NL=en_GB
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 2006-05-23 15:08:19.497
!MESSAGE Error reading configuration: cannot create temporary file
!STACK 0
java.io.IOException: cannot create temporary file
at java.io.File.createTempFile(libgcj.so.7)
at org.eclipse.core.runtime.adaptor.FileManager.initializeInstanceFile(FileManager.java:143)
at org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:665)
at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initFileManager(EclipseAdaptor.java:818)
at org.eclipse.core.runtime.adaptor.EclipseAdaptor.initialize(EclipseAdaptor.java:139)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:129)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:107)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
at java.lang.reflect.Method.invoke(libgcj.so.7)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:974)
at org.eclipse.core.launcher.Main.main(Main.java:948)
chris@localhost:~$

at the same time, an error box pops up saying:

An error has occured. See the log file /home/chris/.eclipse/org.eclipse.platform_3.1.2/configuration/114839696267.log

That log file doesn't get written, or exist.

The reason for was that I installed eclipse under sudo. The end result was that the permissions wheren't correct. I found that I was able to run eclipse as root, but not as a non-root user. The simple solution to this is to chmod the local users's eclipse tree.

chmod -R 777 ~/.eclipse/

and then just run eclipse - it works!

christo

comment