﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8700	Missing path for java on Debian/Ubuntu	ggeldenhuis	bastiK	"I uses a very old Ubuntu so not sure that this is a relevant but feel free to close it if it is not.

Running josm after a fresh install/update causes it to complain about the java version not being supported.

Running java -version on the command line give me:

java version ""1.7.0_17""
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)

so the java version is comparatively up to date.

The problem seems to be in the assumptions that is made about the path in the startup script.

The command whereis java shows:
/usr/bin/java

Adding that to the script called: /usr/bin/josm-latest on the following lines cause it to work properly.

# If OpenJDK is only available headless, do not try it
if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null ; then
  JAVA_CMDS=""$JAVA_HOME/bin/java /usr/lib/jvm/java-7-openjdk/bin/java /usr/lib/jvm/java-7-openjdk-$ARCH/bin/java /usr/lib/jvm/java-6-openjdk/bin/java /usr/lib/jvm/java-6-openjdk-$ARCH/bin/java /usr/lib/jvm/java-6-sun/bin/java '''/usr/bin/java'''""
else
  JAVA_CMDS=""$JAVA_HOME/bin/java /usr/lib/jvm/java-6-sun/bin/java /usr/lib/jvm/java-7-oracle/bin/java /usr/bin/java""
fi


""Ubuntu 11.04"""	defect	closed	minor		Ubuntu package		fixed		
