Installing jdk 1.4.2 and 1.5 parallel

Hello,
I would like to know it is possible to install jdk 1.5 on a windows XP machine already countaining jdk 1.4.2.
I need both versions. I want to switch between them with Eclipse build in features or by selecting the whole path to the bin folder of the target version in batch scripts.
Is this possible or does dll or registry stuff collide?
Tanks in advance.
Alex

When you install a JDK in Windows, you are given the choice to not install a JRE (it's installed by default).
The JRE uses the Registry and also installs copies of java.exe, javaw.exe, and javaws.exe in /Windows/System32 directory. The JDK doesn't alter or install anything outside of the directory it installs into.
You can have as many JDK installs (directories) of different versions as you want, and access the programs in each with a full path to the program. You can provide the path information either from the commandline or a .bat file.
If any of the installs also install a JRE, then the Registry entries and java files in the System32 directory will be for the last version installed. There can only be one active JRE installed.
Whatever version's files are found first on the PATH environment variable's list will be the version executed when a naked java command (without the path) is issued. This also means that you will [usually] execute the version whose files are in the System32 directory, since that directory is [usually] the first directory listed in the PATh list.

Similar Messages

  • Downloading and Installing JDK and JSDK

    I just got the book instant javaserver pages and it tells me to install JDK 1.2 for Linux and JSDK. Well I'm useing windows 98 and use IE6 mainly for a browser, so should I still download and install JDK for Linux? And the most resent version I could find on this site was 1.1.8.

    do a search on the forum top right of this page
    ill bet theirs over 10000 posts on it and getting it running
    or look to the installation forum itself
    as far as dling the right jdk if you have windows you use the windows version of the jdk the download spot
    can be a lil tough to find but the jdk is easy to install once you find it and itll make a folder under the c drive

  • Error while installing JDK 1.6 on Linux?

    Hi,
    Could not locate a suitable jar utility.
    Please ensure that you have Java 6 or newer installed on your system
    and accessible in your PATH or by setting JAVA_HOME
    Below is environment variables on Linux. when I try to install JDK 1.6 I'm getting forllowing error.
    do I need to add environment variable before installing JDK ? In windows it will automatically add to path variable while installing. how to fix above problem?
    environment variables on Linux server below.
    HOSTNAME=lx-cphrobi-t49x
    TERM=xterm
    SHELL=/bin/bash
    HISTSIZE=1000
    SSH_CLIENT=10.172.18.240 62878 22
    OLDPWD=/opt/oinstall/software
    SSH_TTY=/dev/pts/0
    USER=hrobi
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or= 01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:* .bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.l zh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31 :*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35 :*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/hrobi
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/share/centrifydc/bin:/usr/X11R6/bin:/home/hro bi/bin
    INPUTRC=/etc/inputrc
    PWD=/opt/oinstall/software/Java
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SHLVL=1
    HOME=/home/hrobi
    LOGNAME=hrobi
    CVS_RSH=ssh
    SSH_CONNECTION=10.172.18.240 62878 10.179.8.117 22
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    G_BROKEN_FILENAMES=1
    _=/usr/bin/env

    When you installing Java on Linux, installable should not ask for JAVA_HOME as you mentioned "Please ensure that you have Java 6 or newer installed on your system and accessible in your PATH or by setting JAVA_HOME "
    Check this link for more info, it suppose to be as good as Windows
    http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html

  • Unable to install JDK 6 on Windows Vista

    Hi
    I am unable to install jdk 6 (jdk-6u4-windows-x64)on windows vista. I am getting error at installing time and it will terminate process.
    Can any one help me!
    Thanks in advance
    Dave

    Not without exact problem information.
    Read the Installation Instructions (at where you gor Java.)

  • Installing jdk on windows 7

    Forgive me in advance as I am completely new to this. In September of this year I'll be starting an ict degree with the Open University. I figured I'd get a head start by learning a bit of java. I have installed jdk (64bit) for windows 7 fine, and altered the path so that the javac command works ok from the command prompt. However, it still does not work as I am getting the following error:
    error while writing.......a required privelage is not held by the client
    The problem seems to be that the javac application (and presumably all the others too) needs to be run in admin mode. I edited the properties of javac, and now when i use it from the command prompt it works fine. Is there an easier way around this?

    Looks like you are trying to compile in a directory where you don't have rights.
    Like a JDK directory under \program files. If this is the case, work in a directory under your user profile.
    Copy samples from the JDK as necessary.

  • Cannot install JDK 1.4.2 on Windows 2008 Server

    Hello,
    I am trying to install JDK 1.4.2, but I get this error message:
    "Internal Error 2902. ixoFileCopy"
    I tried serveral versions (JDK 1.4.2_15, 1.4.2_19, 1.4.2_18, ...) but I get always the same error.
    It is a fresh Windows Server 2008 installation (not 2008 R2), and I need JDK 1.4.2 for NW 7.01 installation.
    Any help is welcome!
    Best Regards,
    Holger

    Hello,
    I found the solution, see [SAP Note 1230512 - Ende des Produktlebenszyklus von Sun J2SE 1.4.2|https://service.sap.com/sap/support/notes/0001230512]
    I did not download the Java for Business Version. With this verions and Patch 27 it works....
    Best Regards,
    Holger Slomka

  • Errors:Installing Oracle Portal, Forms, Reports and Discoverer on Win7

    Someone can help me?
    I installed Oracle Portal, Forms, Reports and Discoverer on Win7.
    I have install:
    jdk 64bit
    Oracle db 11g (64bit)
    Oracle Weblogic 1033 (wls1033_generic.jar)
    Oracle Portal, Forms, Reports and Discoverer (ofm_pfrd_win_11.1.1.2.0_64/ofm_pfrd_win_11.1.1.3.0_64)
    Configure Components Screen:I just choose the Oracle Forms/reports Oracle Forms/reports builder Enterprise Manager Oracle Web Cache .
    Configure Ports Screen:Auto Port Configuration.
    Specify Proxy Details Screen:No
    Specify Application OID Screen:NO
    But when I configure the "Configuring the Classic Instance" under the "Oracle Classic 11g-Home1". It's always pending in "Creating the domain". No any Error information.
    the related log information:
    Creating a new AdminServer Object ...
    AdminServer port is 7001
    Starting the domain ...
    LOADING DLL : C:\Oracle\Middleware\as_2\install\config\\StartUtil64.dll

    Since your weblogic is on version 10.3.3, you can only succesfully configure your fusion middleware when you are on version 11.1.1.3.
    So (1) restart the install of fusion middleware 11.1.1.2, (2) choose install type INSTALL ONLY, (3) start installation of fusion middleware 11.1.1.3 and finally (4) configure fusion middleware using AS_ORACLE_HOME\bin\config.bat

  • When trying to install jdk-1_5_0_13 on Solaris geting file is corrupt.

    I am trying to install jdk-1_5_0_13 on Solaris 10 using the following downloaded files from Sun Archive site
    jdk-1_5_0_13-solaris-sparc.sh and jdk-1_5_0_13-solaris-sparcv9.sh
    When tried to install using these self extracting files
    It gives error file is corrupt after accepting the licencing agreement. We have already tried after downloading twice and it give the same error.
    Please could someone explain
    1. Is the set files at the site really corrupt ?
    2. Or is there something else, like instructions given at the site are not 100%
    3. How to make it work?
    Has any one installed jdk_1.5.0_13 recently on Sun Solaris using self extracting files and it worked?
    Your help will be higly appreciated.
    Thanks
    Edited by: SatishKainth on May 1, 2008 4:51 AM

    First make sure that you are logged in as "root", or use su [root password] to be logged in as.
    And then try all that things again.

  • Install JDK version 1.4.2.13 Netweaver 7.0

    Hi, i have install new versión JDK in Linux System.
    The current version is 1.4.2.10.
    I have the question: Before install new version have uninstall the old version?
    Exist documentation for install JDK in linux??

    SM wrote:
    Download the JDK from
    > http://java.com/en/javaforbusiness/sap_download.jsp
    >
    > for Linux X86/64 Bit platforms.
    I'm sorry but this is not completely right.
    Linux x86_64 uses the IBM JDK, only Linux on x86 and Linux on IA64 use the Sun JDK.
    Note 1172419 - Linux: Supported Java versions on the x86_64 platform
    Markus

  • Can't install JDK 5.0 on Windows

    I'm trying to install Java 5.0 on my Windows NT Workstation 4.0 box, but I can't get the installer to work. If I try the combined Netbeans 4.0 beta 2 and JDK 5.0 installer, it installs Netbeans fine, but then stops and complains that there "may have been an error installing" JDK 5.0 and tells me to look in install.log. Unfortunately, it hasn't created an install.log file.
    If I try the separate Windows Offline installer for JDK 5.0, I get the splash screen and the harddisk rattles a while, but then I get a dialog asking me where it can find the "Java 2 SDK, SE v1.5.0.msi" file. I can't find that file anywhere so I have no choice but to click Cancel.
    What's going on? Is there some installer-less version of the JDK somewhere which I can use? Can I cause the installer to run correctly?

    I had a similar experience with both the JRE 5.0 and JDK 5.0 installations on my machine with Windows XP service pack 2. The installations would start coping files and installing. Near the end of the installation, the installation would just freeze. I brought up Windows Task Manager and noticed a java process was running and not taking up any CPU time. I tried but could not kill this java process. I tried to shutdown down my computer, but in the end I had hit the off button my case.
    I uninstalled the JDK and tried again. Once again the installation freezed right when it started a java processes. From the command line I then tried java -version. Nothing happened and the command would not return. I brought up another command window and tried again. Same result. Now I had three java processes in the Windows Task Manager. I tried to "end process" all three java processes, but they would just remain the Windows Task Manger. All three could not be killed. Once again I had to turn my computer off (Shutdown didn't work again, it would just freeze).
    After rebooting I was able to run java -version and get "1.5.0". It seems that whatever the installation did before starting the java process was enough for me to use java 5. What does the installation spawned java processes do?
    I tried several things to get the installation to run all the way through. I cleaned my PATH and other environment variables, I tried stopping all unnecessary processes and services. Everytime I ran the installation I got the same results.
    Here are the steps I had to take on my computer to install j2sdk 5.
    1. Install JDK 5.0.
    2. Watch for java process in Windows Task Manager.
    3. Turn off and then turn on the computer.
    4. Install JRE 5.0
    5. Watch for java process in Windows Task Manager.
    6. Turn off and then turn on the computer.

  • Problem in installing JDK 5.0

    Hi,
    In order to install ORacle SQL Developer for linux, I tried to install JDK 5.0 according to the instruction. I downloaded the files and installed it. But when running the sqldeveloper, I got the error message:
    Error: This product requires a Java(TM) Platform 5.0 runtime.
    You are using 1.4.2 from /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
    sqldeveloper installation instruction suggests to go to this page:
    http://java.sun.com/javase/downloads/index_jdk5.jsp
    and download JDK 5.0 Update 6. Since this website doesn't have 6, so I downloaded JDK 5.0 Update 10.
    How do I make sure JDK 1.5 is installed?

    Sorry for delay but I was temporary away without
    internet connectivity ;-(
    That commad will print "/usr/java/jdk1.5.0_10" and
    redirect this text (output) to
    /home/cdre/.sqldeveloper_jdk file. If the file is
    exists then contents of file will be replaced by new
    text. If the file does not exeist then will be
    created.
    But there is another problem. Seems you are using
    SQLDeveloper 1.1 and (where some things were changed
    from 1.0) and this command is valid for 1.0.No problem. I have learned a lot about shell scripting recently.

  • Installing JDK 5.0 in MAC

    Hi, im trying to install jdk 5 in my mac. i downloaded the file and everything, i supposely installed it, even open the unzip the src file, but when i go to my terminal to check my java version, still tells me 1.4... im probably installing it wrong, or maybe i have to put it in some path. please help. thanks

    If you are working with a version of the Mac that is prior to X, you will be restricted to 1.1 or possibly 1.2 (can't remember) of the JRE and JDK..
    So I'm assuming you are working with Mac OS X...
    Apple provides it's own implementation of the JRE and JDK for Mac OS X. Currently, the highest available version of Java for the Mac X is 1.4.2
    http://www.apple.com/macosx/features/java/
    When Java 5 becomes available you will most likely want to obtain it via Software Updates.
    http://www.apple.com/macosx/upgrade/softwareupdates.html
    Here is an article on the Sun site about development for Mac OS X
    http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac/
    And a link to a site about Java on the Apple Developer Connection site
    http://developer.apple.com/java/

  • Installing JDK 1.2.2 in Windows XP - Professional

    I was getting the following error while installing JDK 1.2.2 in Win XP :-
    javaw.exe has encountered a problem and needs to close.
    AppName : javaw.exe AppVer : 0.0.0.0
    ModName : symcjit.dll ModVer : 3.10.0.107
    Offset : 0005f974
    The error report includes information regarding the condition of javaw.exe when the problem occured; the operating system version and computer hardware in use; your Digital product ID, which could be used to identify your license; and IP address of your computer.

    I recently installed the J2SE SDK onto my computer
    (Windows XP). How do I access MS-DOS to check my
    path?
    Thanks
    WTBInstall DOS on another machine and create a boot disk. Then put that bootdisk into your XP machine and boot from that.
    There is no DOS in Windows and hasn't been for years.

  • I Installed JDK but there is no Icon! Help!

    Hello, I installed JDK and it says it's installed yet I cannot find out how to start it up to do my "Hello World" test (I am new to this programming thing). What should I do to find the Java programming application I just installed? Thank you in advance!

    Installing the Java JDK does not create anything "to click on". You type commands into Windows' cmd window. Read this tutorial. Begin with "Getting Started" and don't skip anything.
    http://java.sun.com/docs/books/tutorial/

  • How to install j2ee 1.4 sdk , and only that nothing else

    hi guys , i am trying to install j2ee 1.4 sdk. i found the link for it on sun "http://java.sun.com/j2se/1.4.2/download.html ", and when i try to install that package . it has everything from
    app sever ,to java 2 sdk std edition to start up . etc .
    but i dont want all this , i just want j2ee sdk 1.4
    see what actully i want is j2ee sdk installation coz when i try writing my program in eclipse and when i say import javax.jms.*; it gives error coz it is not able to find the jar.
    just the way for core java we install jdk what do we install so that we can use servlet,jsp,ejb,jms etc
    please reply immediately , where do i install that stuff from
    thanks in advance

    exactly rene , i explored all of the
    "http://java.sun.com/j2ee/1.4/download.html" . i even
    downloaded " J2EE 1.4 SDK 2005Q2 UR2 " which took me
    half an hour. and when i ran the setup file , it had
    everthing from app server to jsdk 1.5 , but no where
    was j2ee sdk to be found. still exploring without any
    success :-(The "J2EE SDK" is basically nothing but the J2EE.JAR. It comes with that app server download.

Maybe you are looking for