JDK6 and idea7 installation issues(Problem with idea.sh)

Hello everybody , I installed jdk 6, and I'm not unable to run idea.sh correctly.
When I run idea.sh I get this message:
*ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
exec: 63: /bin/java: not found*

Here is my idea.sh:
*#!/bin/sh
#

  1. ------------------------------------------------------

  2. IntelliJ IDEA Startup Script for Unix

  3. ------------------------------------------------------

#

  1. ---------------------------------------------------------------------

  2. Before you run IntelliJ IDEA specify the location of the

  3. JDK 1.5 installation directory which will be used for running IDEA

  4. ---------------------------------------------------------------------



if [ -z "$IDEA_JDK" ]; then
IDEA_JDK= $JDK_HOME
if [ -z "$IDEA_JDK" ]; then
echo ERROR: cannot start IntelliJ IDEA.
echo No JDK found to run IDEA. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
fi
fi

#----


  1. Ensure the IDEA_HOME var for this script points to the

  2. home directory where IntelliJ IDEA is installed on your system.


IDEA_HOME=`dirname "$0"`/..
IDEA_BIN_HOME=`dirname "$0"`

export JAVA_HOME
export IDEA_HOME

if [ -n "$IDEA_PROPERTIES" ]; then
IDEA_PROPERTIES_PROPERTY=-Didea.properties.file=$IDEA_PROPERTIES
fi

if [ -z "$IDEA_MAIN_CLASS_NAME" ]; then
IDEA_MAIN_CLASS_NAME="com.intellij.idea.Main"
fi

if [ -z "$IDEA_VM_OPTIONS" ]; then
IDEA_VM_OPTIONS="$IDEA_HOME/bin/idea.vmoptions"
fi

REQUIRED_JVM_ARGS="-Xbootclasspath/p:../lib/boot.jar $IDEA_PROPERTIES_PROPERTY $REQUIRED_JVM_ARGS"
JVM_ARGS=`tr '\n' ' ' < "$IDEA_VM_OPTIONS"`
JVM_ARGS="$JVM_ARGS $REQUIRED_JVM_ARGS"

CLASSPATH=../lib/bootstrap.jar
CLASSPATH=$CLASSPATH:../lib/openapi.jar
CLASSPATH=$CLASSPATH:../lib/jdom.jar
CLASSPATH=$CLASSPATH:../lib/log4j.jar
CLASSPATH=$CLASSPATH:../lib/extensions.jar
CLASSPATH=$CLASSPATH:$IDEA_JDK/lib/tools.jar
CLASSPATH=$CLASSPATH:$IDEA_CLASSPATH

export CLASSPATH

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH


cd "$IDEA_BIN_HOME"
exec $IDEA_JDK/bin/java $JVM_ARGS $IDEA_MAIN_CLASS_NAME $**

Here is my /etc/environment:
*PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"

CLASSPATH=.:/usr/lib/java-6-sun-1.6.0.00/bin
JAVA_HOME=/usr/lib/java-6-sun-1.6.0.00
*

The path of idea is: /usr/lib/idea-6833

Thanks in advance for any help

1 comment
Comment actions Permalink

If you read the error message, it tells you what's wrong.....!

ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
exec: 63: /bin/java: not found

I.e. you should set either IDEA_JDK or JDK_HOME to point to a valid JDK installation....


BTJ

0

Please sign in to leave a comment.