The JDK contains the JRE, but even after installing the JDK and setting JAVA_HOME, whenever I test Java using webstart or the Java test page, it says that Java is not installed. Do I need to install the JRE?
Ok ,Thanks for a_horse_with_no_name I found that , the reason is because JRE is not just by Oracle, there could be vendor JREs like Weblogic uses JRockit JRE. And to separate development environment JRE from run time execution oracle installation is not getting last installation JRE as home JRE and public . Plus The public JRE installation uses Registry entries; to run java base apps the private one doesn’t.
In development face also user may use stack trace or dump memory isolated from public one. The class version exception also may occur in update public JRE when jdk is newer. Either we can set private from command line during installation such
jdk.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"
Earlier version may has public installation shows after installing JDK.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments