Saturday, January 30, 2016

Unable to find Java

When you run a Spring Boot application as an init.d service,

you might encounter the following error:

$ sudo service link-bin start
Unable to find Java
$

An easy way to fix it is using a `.conf` file (`link-bin.conf`):

JAVA_HOME=/home/izeye/programs/jdk1.8.0_60

Reference:
http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#deployment-script-customization-conf-file

1 comment: