Change java version from 6 to 5

Is there quick way to change from 6 to 5 and back?
The only way I've known from this forum - is with help of Add/Remove Programs
Thank you!
Edited by: stopper on Feb 22, 2008 11:20 AM

Well, this technique has always worked for me. Right now I have JDK 1.6.0_04 installed on the D: drive, and JRE 1.6.0_03 installed in the usual way, including the copies of those .exe files in the System32 directory. With my PATH set up as shown above, here's how the commands work: C:\>java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
C:\>C:\Windows\System32\java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) I also have JDK 1.5 and 1.7 installed; when I want to test something under one of those, I use the fully qualified command: C:\>D:\Java\jdk1.7.0\bin\java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b19)
Java HotSpot(TM) Client VM (build 1.7.0-ea-b19, mixed mode, sharing)

Similar Messages

  • Changing java version from 4 to 5 using command prompt

    My default java version is 1.4 . I want to change to jdk 5 for a particular command prompt session alone. i used the following commands
    java - versionjava version "1.4.2_07"
    set path = C:\java\jdk150_06\bin;%path%.C:\bea92\jdk150_04\bin;C:\WINNT\system32;C:\WINNT;
    java - versionjava version "1.4.2_07"
    The version still points to 1.4. What is the method to change it from 1.4 to 1.5 ?
    Thanks..

    Rohiini wrote:
    My default java version is 1.4 . I want to change to jdk 5 for a particular command prompt session alone. i used the following commands
    java - versionjava version "1.4.2_07"No, that will say
    Unrecognized option: -try
    java -version
    set path = C:\java\jdk150_06\bin;%path%That will not set anything, try
    set path=C:\java\jdk150_06\bin;%path%or just
    path=C:\java\jdk150_06\bin;%path%

  • [svn:osmf:] 18011: 1. Fix bug FM-1086, change OSMF version from 1.41 to 1.5

    Revision: 18011
    Revision: 18011
    Author:   [email protected]
    Date:     2010-10-04 16:45:07 -0700 (Mon, 04 Oct 2010)
    Log Message:
    1. Fix bug FM-1086, change OSMF version from 1.41 to 1.5
    2. Misc code modifications
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-1086
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/F4MLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetConnectionFactory.as
        osmf/trunk/framework/OSMF/org/osmf/utils/Version.as
        osmf/trunk/framework/OSMFTest/org/osmf/media/pluginClasses/TestPluginManager.as

    I chroot into workdir. uncommented en_US.UTF-8 in /etc/locale.gen, run locale-gen and now get this inside the chroot.
    [root@dArch2 releng]# chroot work/x86_64/root-image/
    [root@dArch2 /]# locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    this looks alright to me. Any more suggestions?
    It's the first time I use a custom-repo and I set it up only for this purpose. So yes, it's up to date and can be used outside the chroot. Also a different package I put from AUR into my custom-repo installs fine and doesn't give this error.
    How else could I test the custom-repo?

  • Identify Java version from CLASS file

    Hi,
    I have a .class file. I would like to identify the Java version from that.
    Is there a way to find out?
    Also, is there a way to find out the Java version from JAR file?
    Thanks.

    Kavipriya wrote:
    I have a .class file. I would like to identify the Java version from that.
    Is there a way to find out?Sure, there's the major version number (48, 49, 50) included in the class files. Look for the class file specification, shouldn't be too hard to find.

  • Please help!! How can I change the version from Chinese to English?? Many thank!!!

    Please help!!
    I have download the photoshop, but its Chinese version, I need English one...
    How can I change the version from Chinese to English??
    Many thank!!!

    Read http://forums.adobe.com/message/5713507#5713507 for instructions.

  • Problem with starting Sun ONE Server after changing Java version

    Hi
    I installed Sun ONE Java Server 6.1 SP6 on Redhat Enterprise 4.0 64bit. This version uses java version "1.4.2_04" which is intalled in /opt/SUNWwbsvr/bin/https/jdk. With this configuration everything works ok. When I changed Java (/usr/java/jdk1.5.0_09) on version "1.5.0_09 (in server.xml) Sun One doesn't start. I have such error:
         CORE3170: Configuration initialization failed: Error running init function load-modules: dlopen of /opt/SUNWwbsvr/bin/https/lib/libj2eeplugin.so failed (libjvm.so: cannot open shared object file: No such file or directory)
    I checked file libjvm.so and it is in locations: /opt/SUNWwbsvr/bin/https/lib/ and /usr/java/jdk1.5.0_09/jre/lib/amd64/server.
    Does anybody know what is wrong ???
    Thanks for help

    Hi Ges7
    You were right. I installed Java 1.5_10 and 1.6 32 bit version and SUN ONE works but i have some errors
    [https-fast1]: Sun ONE Web Server 6.1SP6 B05/07/2006 14:57
    [https-fast1]: warning: CORE3283: stderr: Java HotSpot(TM) Server VM warning: Can't detect initial thread stack location - find_vma failed
    [https-fast1]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0] from [Sun Microsystems Inc.]
    [https-fast1]: info: WEB0100: Loading web module in virtual server [https-fast1] at [XagentBr]
    [https-fast1]: info: WEB0100: Loading web module in virtual server [https-fast1] at [search]
    [https-fast1]: info: WEB2798: [XagentBr] ServletContext.log(): AuthAgent v1.55 starting ...
    [https-fast1]: info: WEB2798: [XagentBr] ServletContext.log(): Filter configuration file was not found
    [https-fast1]: failure: WebModule[XagentBr]: WEB2680: Exception starting filter Authorization Agent Filter
    [https-fast1]: javax.servlet.ServletException: Filter configuration file was not found
    [https-fast1]: at com.pl.comprze.authagent.AuthAgentFilter.init(AuthAgentFilter.java:262)
    [https-fast1]: at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    [https-fast1]: at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:322)
    [https-fast1]: at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120)
    [https-fast1]: at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3321)
    [https-fast1]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3797)
    [https-fast1]: at com.iplanet.ias.web.WebModule.start(WebModule.java:257)
    [https-fast1]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-fast1]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-fast1]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-fast1]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-fast1]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-fast1]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-fast1]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-fast1]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-fast1]:
    [https-fast1]: failure: WebModule[XagentBr]: WEB2705: Context startup failed due to previous errors
    [https-fast1]: info: HTTP3072: [LS ls1] http://fast1:8088 ready to accept requests
    [https-fast1]: startup: server started successfully
    Success!
    The server https-fast1 has started up.
    Do You know what it can be ???

  • How do I change JAVA versions?

    Hi All,
    Since upgrading to Lion, I cannot use a program to look at x-rays on Safari. I called the IT help desk, and they said that I needed to change the JAVA version to 4.1.10 but could not tell me how. Can someone please help me on this? Thank you so much!

    I'm not sure. That's out of my expertise.  You'd have to make sure that the Java version you need will work well with this version Lion. But if it did work, it might be as simple as dragging a file from one Mac to the other or it could be that you need a Terminal command to do it.
    In general, I'd go out on a limb and say it may not be a good idea with something like Java. 

  • Cannot Change Java Version Using Java Preferences

    When I attempt a change of the current Java version (say, switching from 1.5 to 6) using Java Preferences, the change is reflected in the preferences, but the update does actually occur and java -version continues to report Java 1.5 as the current version.
    If I create another account, this work just fine and I can switch versions at will. Anyone have any idea what might be missing from my account?

    Ok, I figured out what was going on: I had explicitly set my JAVA_HOME in ~/.bash_profile, pointing to the symlinked path for the current JSE. It turns out there a new CLI tool /usr/libexec/java_home that can be used to assign JAVA_HOME like this:
    export JAVAHOME=`/usr/libexec/javahome`
    Using this will ensure that JAVA_HOME is set to the correct value when the shell starts up (if you don't have JAVA_HOME set at all, you can switch the JSE versions in the Terminal 'on-the-fly' when changing the Java Preferences setting).
    http://lists.apple.com/archives/java-dev/2009/Jun/msg00139.html
    Message was edited by: stonehippo

  • PDDocSaveWithParams does not change PDF version from 1.8 (Acrobat 9, Acrobat X) to 1.4

    Dear all,
    this post seems similar to this discussion:
    http://forums.adobe.com/message/1160826#1160826
    but it is not.
    Our customers prepare documents to be presented at regulatory  authorities, and it is required that these documents have PDF Version  1.4, are linearized, etc. In a plug-in we change the document properties accordingly. This used to work fine with Acrobat versions from 6 to 9. Then came Acrobat X.
    We detected the problem with a document created with Acrobat PDFMaker 10.0 for Word: a very simple 1-page 3-lines document with no Acrobat X features.
    When using Acrobat X, after calling PDDocSaveWithParams, the PDF version was not changed as required. (We check this calling PDDocGetVersion from the plugin after saving.)
    Doing the same conversion with Acrobat 9 seemed to be OK: PDDocGetVersion reported PDF Version 1.4.
    But when opening the converted document in Acrobat X, it still reported "PDF Version: 1.7 Extension Level 8 (Acrobat X.x)".
    Opening it in a text editor showed that the header was "%PDF-1.4", but it still had "<</Extensions<</ADBE<</BaseVersion/1.7/ExtensionLevel 8>>>>..."
    With Acrobat 8 and below, the version could not be downgraded, but this was reported correctly.
    Downgrading the version directly via the "Optimize" function of Acrobat X worked.
    I could not test Acrobat 9, since I have no Professional version available.
    In Acrobat 8 Prof, I saw the message "This file appears to use a new format that this version of Acrobat does not support.", and the "Optimize" function was disabled.
    Now I have the following questions:
    (1) Is it a known problem that PDDocSaveWithParams does not downgrade the version with Acrobat X ?
    (2) Is it a known problem that PDDocSaveWithParams does not downgrade correctly with Acrobat 9 ?
    (3) Is it a known problem that Acrobat9 wrongly reports the PDF Version of the document, in this case ?
    (4) Why is downgrading (or optimizing) disabled for Acrobat 8 and below ?
    Thank you !

    Remember that as of PDF 1.4, the version number in the PDF header can be overridden via a /Version key in the /Catalog dictionary.  In addition, the presence of an /Extension dictionary (ISO 32000-1) will also override the header version. 
    The header version is JUST A HINT - it is NOT a guarantee of any sort.
    Based on both of the above, neither of your "bugs" are bugs. 
    Acrobat 9 (and I assume X as well) are reporting correctly. If you have a PDF that you believe IS being reported incorrectly, please post! 
    If the Extensions dict is present, the Save command will NOT override it since it takes precedence.

  • Java version from class file

    How to decide from class file that which java version (1.3, 1.4 etc) was used to compile it?

    Sorry I made a mistake,
    its minor, major
    Dont we have some utility given by Sun for this?
    javap -verbose <classname>will print out versions plus more...
    Do I need to use InputStream for reading class file then see the version?
    DataInputStream din = new DataInputStream(new FileInputStream(classFile));
    din.readInt();
    short minor = din.readShort();
    short major = din.readShort();Why do you need to do this?

  • 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).

  • Get Java Version from Applet to JSP

    Hi Forum!
    I am trying to collect client information with a jsp page and put the information into a html form.
    Besides the request information and some javascript screensize and flash version information I'd like to get the client's Java Version and Vendor with System.getProperty("java.version").
    I assume I can get this info only with an applet.
    How do I pass the Applet's version result to the JSP so I can view it with HTML and insert it into the form?
    Thanks a lot,
    Tom

    You would use liveconnect and the JSObject class to connect the Java code in the applet to JavaScript in the browser to populate the HTML:
    http://www.gsu.unibel.by/pub/javascript/ch19_06.htm
    http://www.apl.jhu.edu/~hall/java/JavaScript-from-Java.html

  • Changing java version

    Hi all,
    We are using IBM AIX 5.2 power series 64-bit servers, y by defaulut java version which is 32-bit version is installed on servers.
    And we installed OC4J ( oracle 10g R1) on that servers, and when ever emctl is running javacore files are generation .
    Finally we observed and changed the java version to 64 bit, and we restarted the servers. Now alos javacore files are generating excessively and in the newly created javacore files shows old java version only
    I changed at env variables levels and when we type java -version it showing new version only
    Can any one please suggest how to chage the java version at OC4J level
    Now my application is working fine but it is generating java core files excessively
    And some times we are getting java.outof memroy exception
    regards
    Rajesh

    Rohiini wrote:
    My default java version is 1.4 . I want to change to jdk 5 for a particular command prompt session alone. i used the following commands
    java - versionjava version "1.4.2_07"No, that will say
    Unrecognized option: -try
    java -version
    set path = C:\java\jdk150_06\bin;%path%That will not set anything, try
    set path=C:\java\jdk150_06\bin;%path%or just
    path=C:\java\jdk150_06\bin;%path%

  • Updating Apps Java version from 1.6 to 1.7_25

    Hello friends,
    I want to access EBS using Java 1.7 on client PC for which I've to update my java version at Apps tier. Right now my Forms & Reports Server patchset version is 10.1.2.3.0.
    The document recommends to apply latest patches on 10.1.2.3.0 Home. Can I update java version to 1.7 without applying any patchset update?
    Configuration: EBS 12.1.1 on OEL 5.5 (64-bit).
    Regards
    Aneel Ahmed

    qazianeel wrote:
    Hello friends,
    I want to access EBS using Java 1.7 on client PC for which I've to update my java version at Apps tier. Right now my Forms & Reports Server patchset version is 10.1.2.3.0.
    The document recommends to apply latest patches on 10.1.2.3.0 Home. Can I update java version to 1.7 without applying any patchset update?
    Configuration: EBS 12.1.1 on OEL 5.5 (64-bit).
    Regards
    Aneel Ahmed
    You need to be on 10.1.2.3.0 or higher, so if you are on 10.1.2.3.0 you should be OK and you can skip this patchset. However, it's always recommended you have the latest patchset applied.
    Thanks,
    Hussein

  • Changing backup version from icloud?

    Hi I have two iPhones, one which is no longer in use. I have started to use my other phone before stopping the other.  I also have an Ipad which has been around before and after these new/old phones.
    My new phone has not been able to back up as the storage is full from the previous phone.  I now want to swap so that my new phone has the previous backup.  Is this possible?
    To try make this clear: I have two backups
    Catherine's IPhone 4.9gb
    iPhone (this phone) 0gb. (Not been backed up, due to no storage)
    Can I swap to the other version?
    If you understand this I take my hat off to you!
    Thanks
    Catherine

    Do the back up on itunes on a computer and restore from an itunes back up
    http://support.apple.com/kb/ht1766

Maybe you are looking for

  • E-mail content for actions

    Hello, I have created smartforms for e-mail which I have assigned to my actions. But these smartforms are being sent as PDF attachements in the mail. I want them to be in the mail body, how this can be achieved? Any ideas are welcome. Regards

  • Why doesnt a sound play when I change the path?

    Hi. I am trying to play a background sound in my program and so far, after searching and reading lots of posts I finally have a "TaDa" sound playing once when the program starts. But what I want is a sound to be looped everytime I start a program. Th

  • Final Cut Pro 10.1.3 - Choose another SAN location

    I have just upgraded to 10.1.3 and Final Cut Pro still cannot update ALL my projects and events that are in the Old Final Cut Projects and Events on my 2T My Passport external HD. I get a message that this location - My Passport - is not a valid and

  • Code Completion indesign cs3 VS C++ 2005

    Hello everyone, Has anyone been able to make the intellisence working for InDesign cs3 plugin developing with VS C++2005 I was referring to a post long ago for InDesign cs2 VS C++ 2003 http://forums.adobe.com/message/1304438#1304438 But I'm getting t

  • Release strategy purchase order workflow

    hi,   after release strategy defined ,   i configured role on relesae codes in img.   1.  If  I (functional people  and me) define release strategy, I have assigned the roles,  then  if purchase is created , the work item goes to  particular agent in