Obtuse error message if JAVA_HOME is set incorrectly.
jamesneale opened this issue · 4 comments
jamesneale commented
If your JAVA_HOME env var is set to an incorrect location you get the following error message in your logs which is reasonably tricky to debug:
panic: no such file or directory
goroutine 1 [running]:
panic(0x1665a0, 0x8202abfc0)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/palantir/go-java-launcher/launchlib.Launch(0x820341e48, 0x820341e18)
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:86 +0xf3f
main.LaunchWithConfig(0x7fff5fbffa1a, 0x1f, 0x7fff5fbffa3a, 0x1c)
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:39 +0x389
main.main()
/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:56 +0xf6
uschi2000 commented
Fair. Want to make a PR?
jamesneale commented
Happy to - might be a couple of days before I get a spare moment though.
uschi2000 commented
Cool, thanks James.
On Wed, Jul 13, 2016 at 6:06 PM James Neale notifications@github.com
wrote:
Happy to - might be a couple of days before I get a spare moment though.
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AGOdwViXbnSXCEqlMJm3fOy08iffL6W_ks5qVWFdgaJpZM4JKbc3
.
jamesneale commented