JDK_HOME must be specified... Follow Nick Reed Created December 02, 2009 08:49 What about making the IDE search for default jvm? Or figure out a way to enter it only once to be used in the future?
What is your OS and what Web IDE distribution you have used?
I am running Ubuntu 9.10.
Than as a linux user I guess you should know how to exportenvironment variable JDK_HOME to make it "used in the future" for your profile?
Yes, I've already done that. But it would be a good feature to make IDE define the default jvm on its own.
There's no such a thing as a COMMON "default jvm" in linux/BSD platforms targeted by tar.gz distribution. We are doing this for mac os and windows where this is possible. If you have some practical suggestions on how to do this - feel free to participate.
Okay Then it would be a great idea to create an installer, like NetBeans determines the default jvm during installation.
I am a new Linux user, so I might be mistaken, but there is such a command "update-alternatives --config java" which is used to set the default jvm.
Or this can be applied only to Ubuntu distro, I do not know fore sure.
OKay, thanks for feedback. We do have some plans to improve linux distro eventually.
Commonly JDK_HOME in linux will be /usr (note absence of trailing slash) - I've got the same value too, so you can check this special case only and fallback to default behavior if check failed.