Opened 12 years ago

Closed 12 years ago

#915 closed defect (fixed)

JAVA_HOME variable not set for openjdk7

Reported by: kalxas Owned by: kalxas
Priority: blocker Milestone: Unplanned
Component: OSGeoLive Keywords: 6.0
Cc: live-demo@…

Description

This causes both Geoserver and Geonetwork to break.

Change history (5)

comment:1 by hamish, 12 years ago

does /usr/lib/jvm/default-java exist and point to the right place?

Both /usr/local/lib/geoserver-2.1.3/bin/startup.sh and shutdown.sh are modified to point to there in install_geoserver.sh.

In general the apps really shouldn't need to rely on the system wide one to be set up. Nonetheless, install_java.sh has:

# in case of emergency break glass:
#cat << EOF > /etc/profile.d/set_JAVA_HOME.sh
#JAVA_HOME=/usr/lib/jvm/java-6-sun
#export JAVA_HOME
#EOF

what's the new dir for it? /usr/lib/jvm/java-7-sun?

Hamish

comment:2 by kalxas, 12 years ago

Hi Hamish,

You are right, default-java folder does not exist. Instead there is java-7-openjdk-i386 folder.

comment:3 by kalxas, 12 years ago

Fixed in rev 8085

comment:4 by kalxas, 12 years ago

Owner: changed from live-demo@… to kalxas
Status: newassigned

comment:5 by kalxas, 12 years ago

Resolution: fixed
Status: assignedclosed

I confirm that this is fixed in 6.0beta1

Note: See TracTickets for help on using tickets.