开发者

Windows/NetBeans platform - Getting JAVA_HOME environment variable into conf file

开发者 https://www.devze.com 2023-03-03 01:48 出处:网络
I\'m trying to use the JAVA_HOME windows environment variable as the jdkhome directory in a netbeans platform application. The variable is definitely set (it was originally a user variable, but I adde

I'm trying to use the JAVA_HOME windows environment variable as the jdkhome directory in a netbeans platform application. The variable is definitely set (it was originally a user variable, but I added an environ开发者_StackOverflow社区ment variable as well because I thought that might be the issue). My config file currently contains the line

jdkhome="${JAVA_HOME}"

I tried

jdkhome=${JAVA_HOME}

as well. Neither of these work - it says there is no valid java install. It does work if I manually write out the directory that JAVA_HOME points to.

I've tried asking on the official netbeans forum, but there hasn't been any response.

Any advice?


Try %JAVA_HOME% and see if that works.

0

精彩评论

暂无评论...
验证码 换一张
取 消