File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Problem with Eclipse in Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem with Eclipse in Ubuntu" Watch "Problem with Eclipse in Ubuntu" New topic
Author

Problem with Eclipse in Ubuntu

Moha Shaf
Ranch Hand

Joined: Aug 30, 2008
Posts: 30
I installed Eclipse Ganymede 3.4 on Ubuntu 9.10 Karmic. I have set my JAVA_HOME to point to Sun JDK at /usr/lib/jvm/java-6-sun .
I am able to launch Eclipse but unable to create projects (Simple Java / Web Applications) in it and unable to point to a Target Server. I tried starting the eclipse as root with increased heap size (sudo eclipse -vmargs -Xms512m -Xmx1024m) . Despite this I am unable to create new projects and start working in Eclipse on ubuntu.
When i do all this the memory taken by eclipse goes to 20% and CPU utilisation 2% . I still have 50 MB free memory and 2 GB swap space free.

Has anyone faced a problem similar to this? Would appreciate some help on this.

Thanks.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 645
Can you please explain what you mean by "unable to create projects"?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Are you always using sudo to run eclipse? If so, don't - you should run Eclipse with your account, not with root.

How did you install Eclipse? Via the Ubuntu software repository (apt-get or similar)? If so, I recommend that you instead download Eclipse from the Eclipse web site. Installation is simple - unpack the tar.gz file. I unpacked mine at /opt/eclipse.


JBoss In Action
Moha Shaf
Ranch Hand

Joined: Aug 30, 2008
Posts: 30
Mark E Hansen wrote:Can you please explain what you mean by "unable to create projects"?


When i try creating a new Dynamic Web project or a Java project using the New project Wizard, it hangs at that point ( i.e. i am not taken to the next step though I am able to cancel it) or sometimes it takes me to the next step in which i create a Target runtime for the project (Tomcat Installation Directory) and it hangs there.

Peter Johnson wrote:Are you always using sudo to run eclipse? If so, don't - you should run Eclipse with your account, not with root.


I tried both running with my User ID as well as root. it does not work either way.

Peter Johnson wrote:How did you install Eclipse? Via the Ubuntu software repository (apt-get or similar)? If so, I recommend that you instead download Eclipse from the Eclipse web site. Installation is simple - unpack the tar.gz file. I unpacked mine at /opt/eclipse.


I downloaded eclipse and unpacked into /opt/eclipse
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Are you perhaps running into the issue that clicking on Next or Finish does nothing? If so, you have run into a known bug. My solution is to use the mouse to select the Next or Finish button, and then hit Enter in the keyboard.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257
Moha Shaf
Ranch Hand

Joined: Aug 30, 2008
Posts: 30
Thank you very much. Doing as you suggested fixed the problem.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

It is amazing what google can find for you: ubuntu eclipse ignores mouse click
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Eclipse in Ubuntu