[Laszlo-user] Newbie trying to setup on Ubuntu -- JAVA_HOME not set -- but it is!

Pico Geyer pico at trispen.com
Mon Feb 23 05:08:14 PST 2009


Doug,

doug livesey wrote:
> (Forgot the cc, too -- does this list need that?)
yes, it does.
> 
> Hi, Pico -- I'm on Ibex (8.10).
>> I think I have the sun jdk 6 setup -- I've certainly followed tutorials to
>> ensure I have.
>> If I type "echo $JAVA_HOME" I get "/usr/lib/jvm/java-6-sun".
>> If I type "which java", I get "/usr/bin/java", which links (via
>> /etc/alternatives/java) to "/usr/lib/jvm/java-6-sun/jre/bin/java".
>> If I type "java -version", I get the following:
>>   java version "1.6.0_10"
>>   Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
>>   Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
>>
>> And if I type "update-java-alternatives -l", I get the following:
>>   java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
>>   java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
>>   java-6-sun 63 /usr/lib/jvm/java-6-sun
>>
>> The problem is that the script to launch the server does not seem to find
>> the JAVA_HOME variable.
>> Cheers,
>>    Doug.

I still think you do not have the Java JDK installed.

Try the following:
sudo apt-get install sun-java6-jdk

If you still have problems after that, please confirm that you have the 
following files:

"$JAVA_HOME"/bin/java
"$JAVA_HOME"/bin/jdb
"$JAVA_HOME"/bin/javac

Pico


More information about the Laszlo-user mailing list