开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜