Ok to use different versions of java?

Hello,
I installed jdk1.4.2_05 a while ago. I have since downloaded a jar file that requires java 5. Would it be ok to download and install this latest version and still have 1.4.02_05 running also?i,e, is it ok to have run different versions of java on the one machine. Would there be any conflicts etc?

It's quite common to have multiple versions of Java on the same machine. Obviously you shouldn't install them in the same folder structure though.
/j2sdk1.4.2_03 - contains version 1.4.2_03
/j2sdkblah.blah - contains version blah.blah

Similar Messages

  • Running multiple java apps simultaneously, using different versions of jre.

    I have a situation where I have 3 or 4 applications (and one applet) that were built over time, each with a different version of the jdk (ranging from 1.2.2.005 to 1.3.2). I need to know of a way (and it must exist) to run each of these applications on the same machine, and at runtime, have each application (or applet) run with its respective version of the jre. Certainly, one could change some source code and make all programs compatible with a particular jre, but that doesn't solve my problem if a new app is built with a new version of the jdk down the road. Currently, each runs fine by themselves, but if I try to run them together as different processes, some won't do anything because the default jre may not be what it needs. Would the Java Plug-in software have a role to play in this? Is there a way to specify (link) which application should use which jre?
    P.S. These applications (right now) don't have to interact or interface in any way. I just need to have them all running as separate processes on the same machine and be able to jump from one to the other.

    Write a batch file that sets the environment properly and restores it afterwards, here is a sample batch file we use which switches to IBM's JRE to run an app:
    OLDPATH=$PATH
    PATH=$PATH:"/usr/local/java/IBMJava2-13/jre/bin"
    OLDCP=$CLASSPATH
    CLASSPATH="/usr/local/java/IBMJava2-13/jre/lib/rt.jar:."
    OLDHOME=$JAVA_HOME
    JAVA_HOME="/usr/local/java/IBMJava2-13/jre"
    # put the command to execute your program here
    java -jar app.jar
    PATH=$OLDPATH
    CLASSPATH=$CLASSPATH
    JAVA_HOME=$JAVA_HOME
    This is for Linux, but it should be possible to write one for Windows too.

  • How can I handle deploying multiple test systems on the same PC that have been developed using different versions of LabVIEW, TestStand, and/or Switch Executive?

    The major issue here is that the test systems must be documented and validated before being released to the production floor. Given this if a test station has multiple test systems deployed on it that have been developed on various versions of LV, TS, and Switch exec how can I force the test system selected to use the correct versions of TS, LV, and Switch exec.? I understand that the solution would be to recomplie everything and bring them up to the latest version but that would then require re-validation according to the QA department. Any advice would be greatly appreciated.
    It would be nice if theTS deployment was more like an LV executable... meaning when a LV executable is launched it always knows what LV runtime engine to use when there are multiple engines installed on a PC.

    Hi,
    Multiply versions of teststand can reside on the same system, but only one version can run at a time. They is a utility that has to be run to set the active version.
    The SequenceFiles have a version number, and you will find an error will be generate if you try to Load the sequencefile in the wrong version of TestStand.
    The labview VIs will only work providing the correct version of the RTE is also installed on your system, even a labview executabe requires the correct RTE to be installed, either as part of the executable installation or as a seperate installation, before the labview exe will work correctly.
    I'm not fimilar with the Switch exec but I would expect that it will also require the correct lower level device drivers to be available for the version you are using.
    Therefore, as you are indicating that some of your system are at  a older version, its difficult to image how you could achive this, considering if you say you have different versions of the software(s). For a start, you may have the problem that newer code/ sequencefiles using additional functionatily not available in the older versions.
    I would think your only solution would  be to have different deployments covering the different versions you have, or at least bring all your test systems up to the same version of teststand.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Different versions of Java webstart and Java Runtime Environment

    Hi I am using a thin application client (swings application) which is downloaded as a jar file using Java Web Start. The earlier version of the application was deployed on the server and client using the version 1.5.0_09. Due to some performance measures we are changing the Client version of JRE to 1.6.0_03. Will this really help??
    The approach we are following is bit confusing.
    First we are launching the application in JRE 1.5.0_09 and creating a shortcut for that (WebStart shortcut). Later we are changing the Java Web Start version from 1.5.0_09 to 1.6.0_03 in the shortcut.
    And of course also changing the JNLP j2se version tag to 1.6
    The application we are launching using this shortcut but its throwing FailedDownloadException : Unable to Load Resource hxxp://ascdcf.....*.jnlp
    The funny thing is when i launched the same shortcut using the 1.5.0_09 version i.e. only the WebStart version as 1.5.0_09 and the JRE on client as 1.6.0_03 the application starts.
    I searched about this and came to know that webstart just deploys the application jar on the client in a browser independent form and then it is run on JRE. If thats the case (and if i am right) then Webstart version can be anything only the JRE version should be the latest as specified in the JNLP. Can anyone give me suggestions in this regard???
    Also if this approach is correct where will we get more performance???
    1. Is it running application on updated JRE Version i.e. 1.6.0_03
    2. Or on updating Java Web Start i.e. 1.6.0_03 (curretnly which is not running)
    Also the Java Web Start is a part of JRE then where does this lead to....???
    I am just an amateur with great doubts.....kindly help......

    Hello,
    I suggest you really read, understand and trial-and-error the following previously suggested solutions;
    http://stealthpuppy.com/juggling-sun-java-runtimes-in-app-v/
    http://packageology.com/2014/02/sequencing-java-the-definitive-guide-part-1/
    http://packageology.com/2014/02/sequencing-java-definitive-guide-part-2/
    http://packageology.com/2014/02/sequencing-java-definitive-guide-part-3-restricting-access-insecure-java-versions/
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Different versions of Java got installed, only want 1

    Hi folks,
    I have a new iMac, running OS X v10.9.1.
    I downloaded and installed the Mac version of the latest Eclipse IDE.
    When i tried to run it the first time, it said it needed to also install Java v 1.6.
    This isn't the latest Java version but I wanted to get the IDE installed up and running to quickly test out a Java program.
    So I said OK, it installed Java version 1.6.
    I went to a Terminal prompt, entered "java -version" and got the expected result of "1.6.0_65".
    I brought up Eclipse, imported a Java project, it correctly recognized the JRE System Library [JavaSE-1.6], and the program ran successfully.
    All good so far, right ?
    Not really.
    The latest version of Java is up to 1.7.0_45.
    I want that version.
    I brought up Safari, went to the Java test page, tried to run it, it said i didn't have the latest Java plug-in, directed me to the download site, i downloaded and installed it, re-ran the Java test page and it indicated that I now had Java version 1.7.0_45 installed.
    I should be happy cuz this is what I want.
    However, i opened a new Terminal and re-ran "java -version", it still thinks I have v1.6.0_65.
    Similarly, my Eclipse IDE can only find the JavaSE-1.6.
    I still have to do Java development and would prefer to do all my development on my iMac, eventually getting rid of my Windows machines.
    How do i get rid of the Java 1.6 version and make OS X recognize the Java v1.7.0_45 version that the Safari browser recognizes ?
    tia,
    BobZ

    How do i get rid of the Java 1.6 version and make OS X recognize the Java v1.7.0_45 version that the Safari browser recognizes ?
    Safari is already doing that, as you can see here: Verify Java Version
    The Oracle JRE is a web plugin only. The Apple JRE is for standalone Java apps. The two don't overlap in function. If you want to develop in Java 1.7, install the Oracle JDK.

  • Navigation within swf files that use different version of actionscript

    I have multiple swf files that need to link up together, the problem is this, some of the files was developed a few years ago with Flash MX and actionscript 1 while some of these files was developed recently in CS 5 with actionscript 3.
    Is it possible to navigate within different version of actionscript files in the same flash player?
    I found that actionscript 1 file will not work once i have navigated to actionscript 3 file.
    Any suggession or solutions would be highly appreciate.

    Actually, it will not work properly. Given, the code behind all these swf(s) is Object Oriented then there is a solid chance of getting them to communicate with each other without any issue. Once suggestion would be to centralize the navigation into its own swf and then dispatchEvents and have the listeners handle the rest. I am sure there are other avenues, but I would do it this way so if there any other such file(s) in the future, all you will need to do is hook the plumbing up and off it goes. Now if the code is anything but 'Object Oriented' then it will take good chunk of time to get the navigation going. However way you decide to pursue it, test it rigorously so there aren't any foo surprises.
    Thanks.

  • Help!!  Two Apps running 2 different versions of Java 1.3 &1.4

    I work in the IT dept for a IBM service provider. Recently IBM has changed their web quoting tools. The main config tool runs on Java 1.3.1_08 and their new maintenance quoting tool runs on 1.4.1_2.
    I have both versions of java installed and neither program will work. When I try to launch the maintenance tool that runs 1.4.1_2. The web start screen appears and then disappears and my processor performance maxes out at 100%. I have to control alt delete and then end task. When trying to run the main quoting tool , the Java applet never starts. I have tried to get technical support from IBM but they keep pushing it back to me stating that it is Java, or the machine, and they do not support that. The machine has been freshly imaged with Windows XP Professional, the system is a p3, 1.2GhZ with 512MB ram. Is there a way to make these programs work in the same environment? Thanks.

    This sounds quite a bit like the problem I've been having. So far the most informative thread I've seen is here: http://forum.java.sun.com/thread.jsp?forum=32&thread=363105&tstart=0&trange=15 , but the fact remains that there are a lot more people with questions than answers on this one.

  • Running multiple IE sessions each using different version of RE

    I understand that it is being said that multiple versions of the JRE can be run in different browser sessions. However, multiple versions cannot be run in the same browser session. I have 2 web applications one uses 1.3.1_04 and the other 1.4.2_10. How can I get two sessions for both appl running simultaniously without having IE problems? Right now the only way I am able to manage from one appl to the other is as follow: I can login to the one appl successfully, then have to logoff and shut down all IE windows, restart a new IE session and login to the other appl. Right now it appears that once I login to one appl, the JRE is loaded to IE, and then shared in all windows and subsequent sessions untill I shut all exisiting IE windows down. The problem is encountered irrespect of how I start a new session: I usually go from one appl to the other through clicking on my favorites, but I have also tried holding shift down when clicking on other favorite, clicked on IE shortcut while other IE window is open to open a new session..but it seems only way IE clears itself is to completely start IE fresh over again so then IE will know which required JRE to load.
    Unchecking Reuse Windows for Launching Shortcuts partly resolved the issue.
    Message was edited by:
    hfm2chase

    I hope this helps.
    http://forum.java.sun.com/thread.jspa?threadID=722556&messageID=4261109

  • How do I put my photos from a hard drive to my mac using different versions of Iphoto?  It is saying I can't because of the updated version.

    Hello,
    I am trying to move photos from my hard drive to my mac.   Mac is using an updated version of Iphoto and is denying the transfer.
    How do I get around this?  Do I download the order version?  or can I not get my photos?  If anyone can help please do.
    You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto.
    Thanks Carol

    I copied my photos onto my hard drive from my mac about 3 months ago.  I just plugged my hard drive in to put my pictures back onto my mac but it is giving me a message when trying to open up the photos from the hard drive that states
    Like I said we need to know exactly what you did
    THere are lots of totally different ways to "copy your photos" onto a hard drive
    Exactly how did you do that? The correct way to move an iPhoot library is to verify that the hard drive is formattted Mac OS extended (journaled) and then to drag the iPhoto library intact as a single entity to it - reverse to bring it back - just drag it from the EHD to the pictures folder (default location) on your computer
    Why are you doing this?
    you can try Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database - depending on what has been going on this might resolve things
    LN

  • Force using older versions JRE & Java Plug-in as default version from IE

    We have a web application that relies on JRE on client machines. It works properly with verion 1.4.2.xxx. Recently some of the users got updated to Version 1.5.0 automatically (auto-update feature). Now the web application doesn't work as expected on those machines.
    I want to know if there is any specific way I can force a machine to use an older version as a default version i.e. without completely removing the new version.
    I already tried various tricks like changing registry settings, Env Variables, etc. The default version changes when accessed through command prompt (java -version), but when I go back to the web page, it still loads the New version.
    Appreciate your advise. Thanks.

    Hi,
    I was wondering if you ever found a solution to this issue. I am having a simlar issue where we have 3 JRE versions on our terminal server.
    1.4.2
    1.5.9
    1.6.3
    But we would like the browsing JRE to remain using 1.4.2.
    An ideas would be great .
    Thanks

  • Custom ClassLoader - trying to use different version of SNMP library than WebLogic Server 8.1 uses

    Problem: my J2EE ear file uses the AdventNet third-party library to do
    SNMP work. WebLogic Server 8.1 also uses this AdventNet third-party
    library to do its own SNMP work. The problem is the version used by
    WebLogic 8.1 is older than the version I use, so my code tries to run
    and finds the wrong version of the library that WebLogic 8.1 has supplied.
    Possible solution: I plan to have a custom classloader (derived from
    java.lang.ClassLoader) that gets hooked in to my threads using
    Thread.setContextClassLoader(). This custom classloader would look for
    the AdventNet library jars in a spot I specify so it would find the
    correct ones. Since I want to change the usual classloader behavior of
    "look in parent classloaders first, then child classloader" to "look in
    child classloader first, then in parent classloaders" I can't just
    override ClassLoader.findClass(). I, at a minimum, have to override
    ClassLoader.loadClass() to look in my classloader first. I have
    questions about this:
    1. What other methods do I have to override? For example, which of the
    resource-related methods do I need to override so that resources are
    searched for first in my classloader then in parent classloaders?
    2. I was thinking of using a URLClassLoader as a helper to my
    classloader, invoking its method(s) from my custom classloader's
    method(s) to actually load the classes from URLs that are not on the
    standard classpath. I was planning to set it up with a custom parent
    classloader that can't find anything, so that the helper URLClassLoader
    would only ever find classes/resources in the URLs I provide to it. Does
    this approach make sense? Have you seen anything like this done before?
    3. Is there any way around this problem besides a custom ClassLoader? A
    buggy custom ClassLoader would have problems which AFAIK would be
    difficult to track down as ClassLoader problems.
    Thanks in advance for any help you can provide.

    Alvin wrote:
    Hi,
    I am experiencing the same problme and
    even I tried to put the AdventNet jar files
    before weblogic.jar I still cannot get it
    to work
    Would you help me out here.
    Thanks,
    -AlvinI finally figured out a way to do it using a custom classloader that
    looked in the directory where I kept the version of AdventNet I wanted
    before looking in the normal places classloaders look.
    How it works is I hook two classloaders at the bottom of the chain of
    classloaders. My custom BlockingClassLoader is hooked as a child of the
    normal chain of classloaders, then a URLClassLoader is hooked under
    that. The BlockingClassLoader's findClass method checks if the class
    starts with a package prefix I want to control (like "com.adventnet.").
    If it does, then it acts like it can't find the class. This makes its
    child, the URLClassLoader, try to find the class. The URLClassLoader
    is given the URL of places to look for classes that match the directory
    I keep the version of AdventNet I want in. When I load a class, I
    directly tell the URLClassLoader to load it so that it is loaded as I want.
    There's more to it than this. I had to override some other methods in
    my BlockingClassLoader and do some other stuff. I'm not sure if I can
    share the source code, as it was developed on company time and thus is
    owned by the company. Feel free to ask questions though.
    I haven't tried this solution very long (basically just unit tested it)
    but it looks promising.

  • Any problems using different versions of photoshop elements (7.0) and premiere elements (8.0)?

    I already own Photoshop Elements 7.0 and am now considering buying Premiere Elements 8.0. Does anyone know if I will have any version problems with this, especially with the Organizer? Do I need to upgrade PSE to 8.0 as well?

    1- A forum participant tested that slideshow workflow from Photoshop Elements 7 to Premiere Elements 8 and verified that it worked for him.
    2 - General Organizer use is probably an entirely different question.  I have not attempted that myself and don't know anyone who has. It seems doubtful that a specific catalog file could be shared between Premiere Elements 8 and Photoshop Elements 7.
    3 - Since you mention that you are interested in upgrading to Premiere Elements 8, I recommend that you read relevant FAQs from the FAQ forum here, starting with
    http://forums.adobe.com/thread/533334?tstart=0
    http://forums.adobe.com/thread/503270?tstart=0

  • NEED HELP!!  Problem running two different versions of Java

    We have two applications that will only run on two specific java versions. The web app that is vital to our company will only work with 1.40. Certain things in Lotus Notes will only run on 1.50. The only way we get IE to work properly is to install 1.50 first and then install 1.40 for our web app. I have the option in IE for both versions, yet when I uncheck IE to use 1.50, and check it to use 1.40 it still tries to open the web app in 1.50. Any suggetstions? I am a noob when it comes to Java, and this is killing us support wise. Is their any setting I can change in the Java plug-in to make the web app only use the correct version?

    The 1.5 JRE is backward compatible with 1.4.
    If your i\1.4 app will not run under 1.5, I suggest you call the vendor and as them why thier application only works under 1.4?
    If your web app is internally developed, tell the development team to get on the ball.

  • How to use different fonts in java

    i want to use some other font,what should i do to use a different font??? thanks in advance

    Hi,
    Use the function below for the component you want to change the font.
    setFont
    public void setFont(Font f)
    Sets the Font of this object.
    Parameters:
    f - the new Font for the object
    Hope this helps
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Webutil and different versions of Java Plug-in

    Hi Guys!
    Our 10g Forms work fine on Java Update 7, but applet doesn't start up if we use Java Updates 10 and up.
    Oracle Support says that starting Update 10 it is a complete rewrite from SUN and they advise us to stay with Update 7.
    But we have other web apps that are working with Update 11... so there is a problem.
    I noticed that java applet when on Update 10 and up gets stuck when trying to load JACOB.JAR which is part of webutil. It just freeze and nothing happens. When I remove webutil entries from formsweb.cfg, the applet starts up fine and I get a database login screen but forms of course don't work because they need webutil.
    Who had the same problem please advise.
    Thanks,
    Dmitri

    It only need one try uninstalling both then reinstalling 1.3.0_02 jre's always get screwed up during uninstall or if you are running multiple versions

Maybe you are looking for