0

I have tried installing Jetty server on my Ubuntu 12.04 following this steps. But when I start my server I get the following error,

service jetty start ** ERROR: JETTY_HOME not set, you need to set it or install in a standard location

uvijay
  • 11

2 Answers2

1

Here's a pointer in the right direction: JETTY_HOME refers to an environment variable set with a value corresponding to the directory path where you have installed jetty.

https://stackoverflow.com/questions/2655641/set-environment-variable-in-ubuntu

ErikE
  • 4,896
1

This is a rather frustrating error with little help out there. I thought I'd post my solution here for someone who is looking to solve the same problem.

Anyway, the correct solution is to set JETTY_HOME in /etc/default/jetty like so:

 JETTY_HOME=/opt/jetty

Hope this helps someone.

Sonny
  • 183