Java.lang.SecurityException

来源:互联网 发布:卸载oracle数据库11g 编辑:程序博客网 时间:2024/06/06 01:38

本人遇到的问题是第二个。在eclipse中清除tomcat相关,重新设置java版本,检查jdk的security文件加下的两个jar,然后重启eclipse,重新配置tomcat,再次启动。ok,错误解决。(具体分析原因,自己用的是jdk64位,tomcat需要jdk32位。但是所有配置都检查了,就是看不出来。因为在tomcat启动的时候提示64位不匹配,但是可以使用)


转自  http://blog.csdn.net/jueshengtianya/article/details/39207229

1.  failed to load the jni shared library jre bin server jvm.dll

          解决:这个主要是eclipse的版本和安装的jdk版本不相同。

2.  Java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer!

         解决:主要是因为加密文件的版本和jdk的版本加密文件不相同。查看主类(local_policy.jar,US_export_policy.jar)和jdk的加密文件的版本不相同。

         参考:http://stackoverflow.com/questions/9745193/java-lang-securityexception-the-jurisdiction-policy-files-are-not-signed-by-a-t

                     http://stackoverflow.com/questions/18754243/securityexception-even-after-replacing-crypto-policy-jars

3.  安装不同版本jdk后,java  -version不同的问题

        解决:我先安装的jdk7,然后在安装jdk6,之前的path全部替换成jdk6,但是执行java -version后显示的还是jdk7,我去。。。 我用的是windows,挺操蛋的windows直接写进注册表了,于是只能卸载掉,重新安装重新配置环境。。。

4. Eclipse The JRE could not be found. Edit the server and change the JRE location.

       解决:eclipse->windows->prefrence->server->runtime environment->然后编辑你的tomcat->添加jdk

5.  struts2刨析:http://www.iteye.com/topic/829843

6.  unable to install breakpoint in

       Eclipse Unable to install breakpoint in  的问题总算解决了,重装eclipse无效,最后只有到window-preferences-java-compiler下面 
把Add line number attributes..前的勾去掉,然后apply-OK。再window-preferences-java-compiler把勾打上,再apply-OK,问题才解决了,网上有人说这个问题是因为既使用ant编译又使用eclipse编译造成的,依然是困惑中。。。


0 0
原创粉丝点击