java - 私有(private) jre 和公共(public) jre 有什么区别?

标签 java

私有(private) jre 和公共(public) jre 有什么区别? 有没有关于这个主题的官方论文?

我没有找到关于这个主题的任何问题。我也无法在周围找到令人满意的东西。

最佳答案

A JRE is nothing but a folder that contains JVM executables, setting files, required lib files, and extensions. You can install multiple JREs on your system Sun generally installs versions in C:\Program Files\Java as jre eg.jre1.6.0_06.

A Public JRE is available to all Java programs, Browsers, and the libs in this JRE folder are available to applications started in command line like java com.sarathonline.cli.HelloWorld This JRE is also registered in path, and Browser plugin.

A Private JRE is something that is installed in the system but is not referred to by default. This could be a copy of the JRE / JDK folder from another installed directory. If you see a my earlier post: starting eclipse with jre 1.6 where your environment is in 1.4, The JRE1.6 is used only by Eclipse, this is a private JRE. While the JAVA_HOME points to 1.4. This is a public JRE.

来源:

http://blog.sarathonline.com/2008/07/public-and-private-jre.html

关于该主题的更多讨论:

http://www.velocityreviews.com/forums/t649860-private-vs-public-jre-in-different-oss.html

关于java - 私有(private) jre 和公共(public) jre 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19510169/

相关文章:

Java Android 增强现实应用图像坐标

java - Spring MVC : CharacterEncodingFilter; why only set response encoding by force?

java - Android 中 findViewById() 上的 NullPointerException

java - PostgreSQL 使用 JPA 和 Hibernate 抛出 "column is of type jsonb but expression is of type bytea"

java - 使用 csv 中的数据在 html 中创建图形

java - 通过 server.xml 的 Tomcat 映射上下文

java - 如何通过 bundle 发送双值

java - 使用java反射调用匿名类的方法时访问异常

java - List<Dog> 是 List<Animal> 的子类吗?为什么 Java 泛型不是隐式多态的?

java - Linux top 命令报告处于等待状态的 Java ThreadPoolExecutor 线程的高 CPU 使用率(将 Jetty 服务器从 9.0.6 更新到 9.4.22 后)