java_dubbo version配置置老是错误,是怎么回事

配置环境在CMD中JAVA -VERSION可以运行,但是JAVAC运行错误,是哪里弄错了?_百度知道Java(47)
比如先安装了jdk7后,再安装jdk6,java -version就是显示java1.6,即使把JAVA_HOME和path修改为java7的路径,java -version依然还是显示6。
2、解决方法
在安装jdk的时候,会自动把java.exe拷贝到c:windows/system32下,而path里配置的第一个路径就是system32,所以你执行的java -version里的java其实是system32里的java,而不是java_home里的java。
解决方法很简单,修改path,把%JAVA_HOME%/bin放到system32前面即可。
C:\Documents and Settings\Administrator&path
PATH=C:\Documents and Settings\Administrator\MyEclipse Professional 2014\binary\
com.sun.java.jdk7.win32.x86_1.7.0.u45\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WIND
OWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:
\Program Files\ThinkPad Wireless LAN Adapter SC:\bea\tuxedo8.1\bin;C:\Pr
ogram Files\TortoiseSVN\bin;D:\mongodb\bin;D:\redis;F:\resource\maven3/C:\Mi
nGW32\bin;C:\Program Files\nodejs\;E:\gradle\gradle-2.4-all\gradle-2.4\bin;C:\Pr
ogram Files\StormII\Codec;C:\Program Files\StormII;C:\Program Files\IDM Computer
Solutions\UltraEdit\;C:\Documents and Settings\Administrator\Application Data\n
C:\Documents and Settings\Administrator&java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)
出自ouyida3的博客
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:95788次
积分:2173
积分:2173
排名:第12773名
原创:153篇
评论:18条
(2)(2)(3)(4)(6)(12)(9)(10)(23)(21)(7)(4)(55)(4)(1)博客访问: 593562
博文数量: 174
博客积分: 4445
博客等级: 上校
技术积分: 1266
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Java
Missing required Permission manifest attribute in main.jar
Why are Java applications blocked by your security settings with the latest Java?
This article applies to:
Java version(s): 7.0
Trying to run the Java applications with Java version 7 Update 51, generates messages that says
Java applications are blocked by your security settings.
Missing Application-Name manifest attribute
Missing required Permissions manifest attribute in main jar
Starting with Java 7 Update 51, Java has enhanced security model to make user system less vulnerable to the external exploits. The new version of Java does not allow users to run the applications that are not signed (Unsigned), Self signed (not signed by trusted authority) and the applications that are missing permission attributes.
Risks involved in running each kind of applications:
Unsigned applications:
An application without a certificate (i.e. unsigned apps), or missing application Name and Publisher information are blocked by default. Running this kind of application is potentially unsafe and present higher level of risk.
Self signed application (Certificate not from trusted authority):
An application with self-signed certificate is blocked by default. Applications of this type present the highest level of risk because publisher is not identified and the application may be granted access to personal data on your computer.
Jar file missing Permission Attribute:
Permissions Attribute verifies that the application requests the permission level that developer specified. If this attribute is not present, it might be possible for an attacker to exploit a user by re-deploying an application that is signed with original certificate and running the application at a different privilege level.
The application that you are running is blocked because the developer has not met with the security guidelines implemented in Java 7 Update51.
It is in your best interest to contact developer or publisher of this application and let them know about the application being blocked. Also provide developers with these links that gives details about implementing secure practices in the code for the application.
WORKAROUND
It is highly recommended not to run these kind of applications, however if you still want to run, run only if you understand risk and implications involved.
As a workaround, the user can use Exception Site list feature to run the applications blocked by security settings. By adding the URL of the blocked application to the Exception Site list allows it to run with some warnings.
Steps to Add URL to the Exception Site list:
Go to the Java Control Panel (On Windows Click Start and then Configure Java)
Click on the Security tab
Click on the Edit Site List button
Click the Add in the Exception Site List window
Click in the empty field under Location field to enter the URL
( URL should begin with http:// or https://)
If the URL where the applet is hosted is different than the URL for the page on which the applet is called you need to add both the URL for the applet.
Example: For Yahoo games Checkers (This is just an example the host url can be different for depending on which host is serving the game), enter:
http://www. and (This is the url for Yahoo games domain)
http://yog36.games. (This is the url where game is the hosted and is shown in the dialog box for blocked application)
Click OK to save the URL that you entered.
Click Continue on the Security Warning dialog
Applications where this issue may be seen include:
Yahoo Games
Ebay and Paypal Shipping Label
Etrade Marketcaster
We think you might also be interested in:
阅读(11227) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。

我要回帖

更多关于 老是放屁是怎么回事 的文章

 

随机推荐