简体   繁体   中英

I have a Java App running in JRE 6 but not in JRE 7. How do i run the application in JRE7

I have a JNLP application which runs in JRE6 and not in JRE7. Is there a method to make it run in JRE7? How to filter out all the deprecated methods from the application??

There is no chance to do this, but you can run the application with Java 6. Just link your java command to use java 6 instead java 7. Or you deinstall java 7 and install Java 6.

I always have some different java version installed (SDK+JRE) to test my applications. Setting the PATH could help.

Or you compile the entire app with JDK 7 instead 6. Then it could be used with JRE 7.

1.) What is the error you are getting? We can't help you if you don't provide any details! (You can see the error in the java console if you enable it) 在此处输入图片说明

2.) The error is probably due to the increased security mechanisms/checks added to java. If you really need to use java 1.6 then specify that version in your jnlp file, eg

<j2se version="1.6*" java-vm-args="-Xmx32m" max-heap-size="32m" href="http://java.sun.com/products/autodl/j2se"/>

3.) How is you java security configured? java安全设置

4.) Is your app signed?

5.) Did you try to add the url to your exception site list? 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM