开发者

glassfish starts only from the netbeans IDE and not from the command prompt

i have installed the netbeans version 6.8 with glassfish version 3 on a redhat machine. the thing is that when i try starting/stopping the glassfish via the netbeans, it works fine,开发者_开发知识库 BUT when i try starting the glassfish via:

./asadmin stop-domain domain1

i get the error "GlassFish requires Java SE version 6. Your JDK is version 4"

i have got only one JDK instance installed

rpm -qa | grep jdk

will return "jdk-1.6.0_18-fcs"

any ideas ?


Set the environment variable AS_JAVA to point to your 1.6 JDK. (asadmin will use bin/java within that directory). AS_JAVA must be set in glassfish/config/asenv.conf

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜