jboss5 在 jdk6中启动的问题

启动时,出现
类似如下错误
java.lang.IllegalStateException: Class not found: [Ljava.lang.String; 。。。。。。。。

根据官方网站的提示:
http://lists.jboss.org/pipermail/jboss-development/2007-June/009714.html
[jboss-dev] Classloading Gotcha in JDK6Jason T. Greene [email=jason.greene at redhat.com ]jboss-development%40lists.jboss.org?Subject=%5Bjboss-dev%5D%20Classloading%20Gotcha%20in%20JDK6&In-Reply-To=[/email]
Wed Jun 13 18:12:33 EDT 2007
Previous message: [jboss-dev] jboss-4.2-testsuite-sun-1.5 Build Completed With Testsuite Errors
Next message: [jboss-dev] Re: Classloading Gotcha in JDK6
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
FYI,There is an undocumented system property (besides the jvm source) in JDK5 and 6 called "[color=red]sun.lang.ClassLoader.allowArraySyntax". The default changed from true to false in JDK6[/color]. So what this means is that in JDK6,unless you set that property to true, if you try and load a Java arraytype using a classloader (e.g. "[http://jira.jboss.com/jira/browse/JBCOMMON-25[/url]-- Jason T. GreeneLead, POJO CacheJBoss, a division of Red Hat
-----------------------------
红色部分。。。
解决的方法:
修改run.bat文件:
将这一行改为set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -
Dsun.lang.ClassLoader.allowArraySyntax=true
就可以了

如果是从eclipse中启动,则需在JDK的
Optional Java VM arguments 项 增加
-Dsun.lang.ClassLoader.allowArraySyntax=true
即可
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值