Different Java version at one maschine

Hello experts.
I need to test SW with differnt java-versions (1.1.8-1.4). So I will install all version I need. But now the question: how can I easily
switch between the versions? How can I verify that the desired version
is in use (is java -fullversion the only check)?
Thanx in advance
Henry

Assuming you are using Windows, just create a batch file for each version. e.g.:
usejava1.2.bat
@Echo Off
set path=c:\jdk1.2.2\bin;%PATH%
set java_home=c:\jdk1.2.2
java -versionJust replace c:\jdk1.2.2 with the path to your java install, then at the command prompt type usejava1.2 to switch to the relevant version within the current DOS session.
Its probably very simple to do something similar on Unix.

Similar Messages

  • How to Launch an Integration Builder under two different java versions

    How to Launch an Integration Builder under two different java versions     1
    1. Situation     2
    2. How To Do     2
    2.1 jre preparation     2
    2.2 Put them into the system     2
    2.3 Execute a Java Web Start under jre 1.4.x version     3
    2.4 Change Java Runtime Versions     3
    2.5 Launch an Integration Builder     6
    1. Situation
    OS: windows 2000 pro – English
    Java version: jdk 1.5.x was already installed. (It’s not permitted to change.)
    I don’t have any authorization to install any software on the PC.
    But I need to use an Integration Builder.
    I already knew URLs of an Integration Builder (http://<hostname>:50000/rep/start/repository.jnlp).
    2. How To Do
    At this moment, an Integration Builder (XI 3.0) can be launch under jre 1.4.x environment (on windows).
    2.1 jre preparation
    I download j2re-1_4_2_10-windows-i586-p.exe from http://java.sun.com/j2se/1.4.2/download.html
    I installed it on my home PC and copied all files from C:\Program Files\Java\ j2re1.4.2_10\ into my USB.
    2.2 Put them into the system
    I pasted j2re1.4.2_10 folder from my USB into the windows 2000 pro system.
    Finally, I could list up all of javaws.exe under this system.
    c:\j2re1.4.2_10\javaws\javaws.exe
    c:\Program Files\Java\jdk1.5.0_05\bin\javaws.exe
    c:\Program Files\Java\jdk1.5.0_05\jre\bin\javaws.exe
    c:\Program Files\Java\jre1.5.0_05\bin\javaws.exe
    2.3 Execute a Java Web Start under jre 1.4.x version
    I executed c:\j2re1.4.2_10\javaws\javaws.exe .
    2.4 Change Java Runtime Versions
    Go to File-> Preferences -> Java
    As you can see, it indicates 1.5 version.
    Click [FIND] button.
    Click [NEXT] button.
    Click the j2re1.4.2_10 folder.
    Click [NEXT] button.
    A JRE Finder is able to find javaw.exe automatically. Or you can indicate C:\j2re1.4.2_10\bin\javaw.exe directly.
    Click [NEXT] button.
    Finally, there are two Java Runtime Versions. Now you need to uncheck the Enabled column of 1.5 version and check 1.4 version.
    Click [OK] button.
    Well, in the General tab, I selected None for Proxies.
    2.5 Launch an Integration Builder
    In the Location field, I typed the URL of an Integration Builder jnlp.
    http://<hostname>:50000/rep/start/repository.jnlp
    SAP Integration Builder comes up inside Applications area.
    Select it and click [Start] button.
    If you click Environment-> Integration Builder (Configuration), you can launch Integration Builder: Configuration.
    [PDF file location] with screenshots
    http://SDN.mobilian.org/SDN/How2LaunchIB.rar
    ===================Advertisement==========================
    How do you search SDN?
    What about [<b>SDN Search Widget</b>]?
    SDN Search Widget
    =========================================================

    I am not getting anywhere with deploying my application or
    applet.
    I have set up my bc4j project. It contains all my VO info,
    links, application module. (proj a)
    I then have another project with DbInfo in it(has all my rowset
    info), Multiple Frames, and my Applet.java file.
    Actually I have an Applet.java file and a Application.java file
    because I was seeing if both/either worked. Anyway they seem the
    same, except for that extra window that comes up when you run the
    applet.
    I follow the steps in the oracle directions (from earlier post).
    And all seems ok. But at ---->
    [*] Select the subdirectory under myhtml where your applet's HTML
    file
    is located, and enter the directory path of the 'staging'
    directory you
    created in step 3 above, if different from the default.</li>
    [*]Select the HTML files that JDeveloper created to run your
    applet.</li>
    [*]Select all of the Java source files in your project that make
    up the
    applet.</li>
    I have no HTML file associated with my applet, at least that I
    know of.
    So do I need to create one, or should it of been done
    automatically.
    Also, I trying to figure out what will be the best way to deploy
    my project. Applet or stand alone application is what my first
    choices have been so far. I have read that there is some issues
    with applets being served from a different server than the
    database. So a stand alone application was my front runner, but
    I haven't gotten either way to work yet.

  • Use different java versions to start weblogic and run application.

    Hi All,
    I'm currently using weblogic707 which need java 1.4.1 to start up. However, i have this application that run only on java version 1.3.1. Is there any possibility to configure the weblogic to run my application on different java version?
    Thanks.
    wls

    Hi HMLunger,
    Did you install the SQL Server instance successfully? If not, please help to post the summary and detail logs for analysis. By default, the logs can be found in: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
    However, if you fail to start SQL Server Express service after successfully installing SQL Server,
    you might have to change the paths of the files by running the following scripts from the command prompt. For more details, please review this similar
    thread.
    NET START MSSQL$SQLEXPRESS /f /T3608
    SQLCMD -S .\SQLEXPRESS
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    go
    exit;
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    NET STOP MSSQL$SQLEXPRESS
    In addition, you can follow the steps in this KB article to uninstall SQL Server.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Access two EAS with different Essbase versions and different java versions from the same p.c.

    Hi,
    I need to regularly access Essbase 11.1.2.2. and Essbase 11.1.2.3 EAS from the same client machine.
    They are on, and must be on, different versions of java, is there a way to have both versions of java installed but each using the correct version and without the two java versions causing any kind of problems?
    thanks,
    Robert.

    Hi Robert...  I assume this is web-launched?
    I spent a day or so trying understand the intricacies of the JNLP protocol and create shortcuts that will invoke web-launched EAS with the appropriate version of Java.  I can get one version of EAS to use the 1.6 Java Web Launcher, and the other version of EAS to use the 1.7 Java Web Launcher - but both Web Launchers eventually invoke the same version of Java!  There are switches in the JNLP syntax that seem like they should allow you choose the actual Java version that gets invoked, but I just could not make it work.
    You can use the Java Control Panel (in Control Panel) to enable and disable the relevant versions before launching EAS.
    If you find otherwise I would love to know (or if you find out how to control which versions are enabled or disabled via command-line script).

  • Different Java versions on IE6

    Hello,
    We have a Windows server 2000 with Internet Explorer 6 SP1, and different aplications that need a specific version of JRE, exactly 1.4, 1.5 and 1.6.
    The problem is we do not know if it will work on the same server, or how to change the java version to use it with each application.
    I had thought to make different shortcuts to the IE, and somehow indicate at the launch which version to use, but I think it is not possible.
    I had investigate the navigator and there is no option to change the java version or something.
    What can I do?
    Thank you.

    The culprit is definitely the Java JRE as stated above, Oracle 11.5 I believe is designed to run with 1.5.0_16 or at least that what has been forced on our installation.
    From what I can tell, the export call when run with an invalid JRE does not fire properly and Oracle gets an unknown response so therefore defaults you back to the login screen.
    We had this issue and removed all versions of java (1.6.0_16 was the culprit in our case) and every returned to normal.
    You will also need to make sure you have "Automatically prompt for file download" and "File download" enabled in IE (assuming you use IE) for the zone in which your Oracle install resides or you will see popup-blocker symptoms as well.
    Hope this helps.

  • Multiple Java version on one Single Server

    Hello All,
    Linux RedHat 2.4.21-32.ELsmp
    jdk1.3.0
    j2sdk1.4.1_03
    We currently have an application that only runs with java 1.3.0, but also we have other application that need to be on java 1.4.+.
    What would be the right approuch in order to have multiple Java versions on a single server.
    TIA,
    Bruno

    I am pretty sure you can do that.
    I have done this with AccessGates and a Webgate is just an AccessGate with extra features. I am pretty sure we have done this on Apache with a webgate in different directories. Makes logical sense that it would work.
    Thanks,
    Scott

  • How do I get the old java version (the one that worked) back

    I just did the lastest OSX upgrade.  OSX 10.7.   It did a few things to Java.
    1) It removed the Utility to select a Java version to run (umm, so how am I supposed to pick Java 1.5 for some old Java 1.5 apps?)
    2) It made some Java 1.6 applications that I need on my desktop to do my job not work.   Anyone heard of ScrumWorksPro.?  Barfing on a laf.jar that's missing from the new 1.6 version
    I can't seem to 'downgrade' back to the version that worked.   Does anyone have the zip file of the old version of Java that worked?  If so, where do I unzip it to.   I'm fine with launching my app from a terminal, I just need the jvm files so I can.  Looks like the installer (or my attempts to get rid of the new version by doing rm -r on every Java dir I could find) has gotten rid of the old version of Java.   I just can't seem to find the installer or the zip files to get the old version.
    Help!

    In Firefox 4 by default the Stop, Go and Reload (refresh) buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, Control-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • Data copy to from different scenario, version to one scenario version

    Hi,
    I have this scenario to do.
    Copy data from 3 scenario version to one scenario version.
    Scenario1 -> final to TargetScenario -> working
    Scenario2 -> final to TargetScenario -> working
    Scenario3 -> final to TargetScenario -> working
    Means 3 scenario data into one
    Sum of all three
    I am using Datacopy command to target but this is wiping out previous scenario data
    Any thoughts which command to use or else???

    You cannot use DATACOPY here.
    Create a calculation script which does fix on working
    Target scenario= scenario1->final+scenario2->final+scenario3->final;
    Regards
    Celvin
    http://www.orayplabs.com
    Please mark responses as helpful/correct if applicable

  • Different java versions in same project

    Hi
    Has anyone used 2 different versions of java in same
    J2EE project.
    I have a web project where i have a Applet which
    displays data in graphs etc, this applet uses applet -
    servlet communication to connect to database,
    What i want to try to do is develop all the servlets
    and code running on application server using
    J2SDK1.4.2 and the applet using J2sdk1.5 (5.0).
    I cannot use java 1.5 for server side as i am using
    app server which does not support it, but i want to
    use java 1.5 to get latest abilities in Swing.
    I see a potential problem with class compiled in
    different versions,
    I populate data in java class and send this class to
    applet which reads data from these classes and do the
    plotting
    Any suggestions
    Ashish

    How are the applets and servlets to communicate? If they use html/xhtml, etc, there should be no problem. If you're serializing objects, then yes, there is a potential for a problem.

  • Different Java versions co-existing - forcing default Runtime engine

    We have recently upgraded from 1.4.2.06 to 1.5.0.10 on our local network. And we now just discovered an application that is hardcoded towards 1.4.2.06 it seems, and the programmers company says that too.
    Is it any way to force 1.4.2.06 as the default for use in browser for those machines?
    We are running Windows XP Professional SP2 with latest patches and the Java Runtime is in Internet Explorer 6.
    I've not found a way to force that, tried the Java entry in Control Panel. Even tried to force the 1.4.2.06 onto the machine (copied all installfiles over the new ones and imported all regsettings onto the machines - Im an application packager at our company so easy to get hold of those).
    Feedbacks are very welcome!

    Can you force the issue, by specifying the JVM. I have done the following:
    Copy the "old" jvm to another directory - say:
    c:\jvm1.4\
    Then create a new shortcut (or batch file):
    cd the\app\directory
    c:\jvm1.4\jre\bin\java -jar theapp.jar
    (ok, the line may be way different).
    Basically, the control panel just affects what the OS does when a .jar file is "run". Running the JVM directly (after chdir to the installation directory) and specifying the mail jar file usually works....
    But this does assume the java program does not load a second JVM in the background for some task....

  • Two different DB version in one server machine, help please

    Hello, greetings.
    I have two databases in one server.
    One is 10g1 version, currently running. another one I just installed is 10g2 version. They each has it's own home. I mean two versions sit in separate oracle home. They both in window.
    However, through sqlplus, toad etc, I can only access 10g1.
    How can I access both versions through sqlplus and toad? What do I need to set up ?
    Thanks in advance!

    However, through sqlplus, toad etc, I can only
    access 10g1.Show us the connect string that you use in SQSLPlus and in TOAD. Don't forget to include the part that tells the client which database to use ...
    >
    How can I access both versions through sqlplus and
    toad? What do I need to set up ?Each Oracle product has it's own network connection configuration files. These are in ORACLE_HOME/network/admin
    The listener.ora configures the piece that listens on the network. Each database must register to the listener. You only need one listener on the machine and each database should register to that listener. To check, run the command line 'lsnrctl status'
    In your control panel, set the listener for 19gR1 to start manually (and then never start it)
    The tnsnames.ora configures the client. Basically it says 'when yoohoo asks to connect to database blah, that means connect to host boing, talk to the listener on port whatever (usually 1521) and ask for a connection to database service bingo' as in
    blah =
      DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = boing)(PORT =  9876))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = bingo)
      )Nearly 100% of the time, the two tnsnames.ora files, one in each ORACLE_HOME, do not contain all the information needed. So when you use the sqlplus from one Oracle Home and try to connect to the other database, you are missing critical pieces of information that are found only in the other ORACLE_HOME
    The fix - as others say, is to run netca or netmgr (both available from START menu). Or simply open both tnsnames.ora files and make the match up by adding whatever entries are needed.
    >
    Thanks in advance!

  • Mac user wants 2 different language versions on one dock ???

    A friend of mine just downloaded a second version of Firefox in Irish. He can open both the English and the Irish versions individually without any issues. What he can't do is keep his second, Irish version on the dock. He can open it from some recent folders menu, but when he closes it it disappears from the dock. I don't have the patience to try and learn mac related things right now, so if anyone has some insight on this help would be appreciated!

    jphjph wrote:
    This still seems to lead to the suggestion that a piece of mac hardware can not have multiple itunes account, could be time to ask for a refund.
    This is exactly the case. Because iTunes Match is associated with one and only one iTunes Store account ID the same computer hardware can not be associated with two instances of iTunes Match. Just as the same iDevice hardware can not be associated with more than one iTunes Store account at a time.

  • Wrong Out while Cropping image using different java version

    Hi,
    my task is to crop the image based on x,y,w,h coordinates, but thing is i am getting different cropped images while using java 1.6 and java 1.7.
    in java 1.6 the x and y coordinates starting from 0,0 instead of given values.
    please find the code below:
    import java.awt.Image;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;
    public class CropImage {
    Image image;
    // Insets insets;
    BufferedImage img = null;
         public CropImage(){
              try{
    img = ImageIO.read(new File("D:/temp/","Capture.gif"));
    File outputfile = new File("D:/temp/","saved.gif");
    // 49,158,58,7 -x,y,w,h
    ImageIO.write(img.getSubimage(58, 6, 158, 50), "gif", outputfile);
              }catch(Exception es){
                   es.printStackTrace();
         public static void main(String args[]){
              new CropImage();
    Thanks,
    shashanka.
    Edited by: user8956018 on Dec 23, 2012 10:54 PM

    Note 791765 - Mixed JSESSIONID Cookies from Different Servers - resolved the issue

  • Secret key cipher for two different Java versions

    Hello All.
    I am trying to make a class that uses secret key encryption/decryption for both v1.18 and v1.3.1. That is the same class needs to be useable on both versions. Is this possible? v1.18 does not recoginize any javax.crypto.*. I was able to get the cipher working the way I wanted in just v1.3.1, but not v1.18.
    Any suggestions would be very appreciated.
    No upgrade at this time is possible.
    Thank you in advance,
    Jen

    You can use BouncyCastle JCE.
    http://www.bouncycastle.org/latest_releases.html
    Add the good jar file corresponding to JDK version,
    and you'll be able to use the same code.

  • Different JVM versions in a SAP system

    I have an SAP system which consist of 3 servers, and 2 of them have jvm version - 1.4.2_17-b06 and the other one has JVM version 1.4.2_12-b03, so i wanted to know will this setup affect the system/performance
    thank you
    Jonu Joy

    Hi
    Will my system/performance be affected if my CI has a different java version compared to the version on the app servers
    As per my knowledge it wont effect your sytem performance,you can still proceed with what you have now but its better to have same JAVA version
    Regards
    Uday

Maybe you are looking for