This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes IntelliJ startup problems in Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "IntelliJ startup problems in Ubuntu" Watch "IntelliJ startup problems in Ubuntu" New topic
Author

IntelliJ startup problems in Ubuntu

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Guys,

I have IntelliJ installed in /opt/Softwares/ and when I tried to start it by calling sh idea.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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

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
author
Bartender

Joined: May 14, 2008
Posts: 5575

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: 8795

Fine understood.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: IntelliJ startup problems in Ubuntu
 
Similar Threads
Installing Java / Eclipse / Tomcat / Maven on Ubuntu 9.10
Error in Java Home in Ubuntu
Tomcat startup problems
Problems with Java Home in VMBox
Error starting Tomcat in Ubuntu