my dog learned polymorphism*
The moose likes Linux / UNIX and the fly likes IntelliJ startup problems in Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "IntelliJ startup problems in Ubuntu" Watch "IntelliJ startup problems in Ubuntu" New topic

IntelliJ startup problems in Ubuntu

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345


I have IntelliJ installed in /opt/Softwares/ and when I tried to start it by calling sh from within the bin folder, I got the following error:

I have exported the JDK_HOME to point to JAVA_HOME...

What is happening here?? I have my JAVA_HOME set and it points to /usr/java/jdk1.6.0_18/bin

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345

Somehow I managed to get rid of this problem by removing the previously set JDK_HOME in the profile and by re issuing the below command:

One more thing that I found was, I was doing the mistake of trying to launch IntelliJ from the root user. But later I found out that there was no JAVA_HOME set for the root user. But guys I have a question here. When we set the JAVA_HOME in /etc/profile, does it not hold good for all the users? I mean the profile is kind of system wide properties? Am I right?
Peter Johnson

Joined: May 14, 2008
Posts: 5812

With Ubuntu you should never log in as the root user, nor su to root. You should always log in with your own account and then use "sudo" to run commands that require root permission. And if you use sudo, your environment settings, such as JAVA_HOME, are kept.

Regarding which files bash reads on startup, it's a mystery to me. From the reading I have done, and by examining the .bashrc files, I cannot tell if bash reads certain files no matter what or if it only reads them because the ~/.bashrc file contains commands to read those files (and they in turn contain commands to read other files).

JBoss In Action
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345

Fine understood.
I agree. Here's the link:
subject: IntelliJ startup problems in Ubuntu
Similar Threads
Error starting Tomcat in Ubuntu
Installing Java / Eclipse / Tomcat / Maven on Ubuntu 9.10
Error in Java Home in Ubuntu
Problems with Java Home in VMBox
Tomcat startup problems