~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9/gems/rails-3.0.1/bin
java home enviroment set
http://confluence.atlassian.com/display/JIRA/Installing+Java+on+Ubuntu+or+Debian
Installing Java on Ubuntu or Debian
Some linux distributions (notably Debian and Ubuntu) come with a free version of Java called GIJ (from the GCJ project) pre-installed:
Unfortunately GCJ is incomplete, and unable to run Atlassian Java applications without problems.
The solution is to install Sun's version of Java:
After doing this, make sure the correct version of Java is in use by running java -version:
If the GCJ Java is still being used, you will need to explicitly set Sun's Java as the default:
Setting JAVA_HOME
Some programs like Tomcat (bundled with most Atlassian products) need a JAVA_HOME variable set, so they know where Java is installed. This can be set system-wide in /etc/profile:
The variable will be set for new terminals: