Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Patching Java on my system

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Patching Java on my system

    Hi,

    I am currently scanning images for missing Java updates and had a few queries :

    Query 1
    I have two images :
    One contains Sun Java Runtime Environment 1.4.2_12 the other contains Sun Java Runtime Environment 1.5.0_22
    As per the Oracle support site, the latest versions of Sun Java Runtime Environment publicly available for 1.4.0 and 1.5.0 are : Sun Java Runtime Environment 1.4.2_19 and Sun Java Runtime Environment 1.5.0_22 respectievely.
    However, there were more updates that were released for Java namely Sun Java Runtime Environment 1.4.2_42 and Sun Java Runtime Environment 1.5.0_51 . Are these latest updates available only to customers with Extended Support?

    Query 2
    Is it true that if the JDK is installed on the system, then it is not advisable to patch the JRE to a higher version as it breaks the JDK?

    Query 3
    If I have Sun Java Runtime Environment 1.4.2_12/1.5.0_22 installed on my system, can I install jre6u45 (Java runtime environment 6 update 45) or jre7u51 on this system? Will it lead to any adverse effects?


    Thanks in advance
    Algernon


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,061
    My Mood
    Mellow
    Thanks
    184
    Thanked 652 Times in 639 Posts

    Default Re: Patching Java on my system

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Can you tell us a bit about what you use Java for? Why do you have multiple JREs on your computer? Do you think/know you need them? If so, why? Why do you have old versions of the JRE? Why not use the latest, 1.7 or even 1.8 (might be too soon for 1.8)? Do you need the JDK? The JDK includes the JRE.

  3. #3
    Member
    Join Date
    Feb 2014
    Posts
    180
    Thanks
    0
    Thanked 48 Times in 45 Posts

    Default Re: Patching Java on my system

    Quote Originally Posted by Algernon View Post
    However, there were more updates that were released for Java namely Sun Java Runtime Environment 1.4.2_42 and Sun Java Runtime Environment 1.5.0_51 . Are these latest updates available only to customers with Extended Support?
    Any update that is not shown to be available in the archive I believe are available only to commercial fee-paying customers. See also Oracle Java SE Support Roadmap.

    Quote Originally Posted by Algernon View Post
    Is it true that if the JDK is installed on the system, then it is not advisable to patch the JRE to a higher version as it breaks the JDK?
    The JRE should be updatable independently of the JDK, and there shouldn't be any side effects. If you install the JDK, you will find within the JDK installation directory there is a jre subdirectory, and I'm pretty sure JRE updates are applied to the subdirectory only.

    Quote Originally Posted by Algernon View Post
    If I have Sun Java Runtime Environment 1.4.2_12/1.5.0_22 installed on my system, can I install jre6u45 (Java runtime environment 6 update 45) or jre7u51 on this system? Will it lead to any adverse effects?
    In theory there shouldn't be adverse effects, but in the desktop machine context I have come across cases where they do, e.g., different browsers in the system use different Java plugin versions. Having multiple Java versions in a desktop system would give Support personnel low confidence of the system's integrity when complex/strange problems are encountered, in addition to the longer diagnostic time to rule out the cause being the 2 or more co-installed Java versions. For the latter, you may be required to uninstall all Java versions and reinstall only 1 to confirm the problem is not caused by co-installed versions. For this reason I will always recommend to have 1 and only 1 Java version installed if at all possible.

    In a server environment it is quite common to have each Java-based server application to install and run its own copy and version of JRE within the applications' directory structure. I have not come across a case where the multiple copies of JREs installed in this manner interfere with each other, and so it should be safe in this context.

  4. #4
    Junior Member
    Join Date
    Apr 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Patching Java on my system

    Hi Greg,

    Thank you for your prompt reply.
    The organisation where I work (ATM software industry) at uses JRE components in our product stack. The different software products in our software stack use different versions of Java based on their requirements.
    Currently I have scanned an image that contains Sun Java Runtime Environment 1.4.2_12 and Sun Java Runtime Environment 1.5.0_22
    Only the JRE is present in our images. Not the JDK.
    I wanted to know that if I upgrade the system from JRE 1.4.2 / 1.5.0 to JRE 1.7 (or maybe 1.8) , will it cause any adverse effects on the system? And will any features from 1.4/1.5 be obsolete if I upgrade to 1.7 /1.8 ?

    Also is the upgrade from JRE 1.4/1.5 to JRE 1.7 just a feature upgrade or will it include fixes for security vulnerabilities as well?

    Thanks,
    Algernon

    --- Update ---

    Hi Jashburn,

    Thanks a lot for your reply. It really simplified a lot of stuff!

    Can you please answer this as well?
    "Is the upgrade from JRE 1.4/1.5 to JRE 1.7 just a feature upgrade or will it include fixes for security vulnerabilities as well?"

    I wanted to patch my system with the following update :
    Oracle Java SE CPU January 2014: JAVA

  5. #5
    Member
    Join Date
    Feb 2014
    Posts
    180
    Thanks
    0
    Thanked 48 Times in 45 Posts

    Default Re: Patching Java on my system

    Quote Originally Posted by Algernon View Post
    "Is the upgrade from JRE 1.4/1.5 to JRE 1.7 just a feature upgrade or will it include fixes for security vulnerabilities as well?"
    You can expect each Java version upgrade to contain fixes (security or otherwise) from earlier versions up to the point where the upgrade is released. There will be some incompatibilities with each upgrade; known incompatibilities are mentioned in the upgrade's release notes. See (focus on compatibility and known issues):

    (Useful Internet search term: "java release notes".)

    It is also likely that an upgrade contains some regression, and so it is always necessary to regression-test applications affected by the upgrade.

  6. #6
    Junior Member
    Join Date
    Apr 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Patching Java on my system

    Thanks a lot jashburn. HElped a lot.

    This thread can be closed for now. I will get back if I need any more information.

Similar Threads

  1. Operating system in java programing
    By Goodfellas in forum The Cafe
    Replies: 2
    Last Post: December 23rd, 2013, 03:40 PM
  2. To get graph of System performance in java
    By keerthana in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 2nd, 2013, 12:19 AM
  3. any good Java System Suggestions?
    By fatika26 in forum Object Oriented Programming
    Replies: 2
    Last Post: February 21st, 2012, 12:42 AM
  4. online system on java
    By u-khan1 in forum Paid Java Projects
    Replies: 0
    Last Post: March 8th, 2011, 05:02 AM
  5. Using JAVA to access System Resources
    By aussiemcgr in forum Java Theory & Questions
    Replies: 9
    Last Post: December 4th, 2010, 01:15 AM