Java Path Resolution on Windows

Today I was messing around with different Java versions and discovered that Java is a little more tightly integrated with Windows than I originally thought. Maybe it's just a JRE thing, and not a JDK thing. I don't know.
I have both Java 5 and Java 6 installed, and was trying to back down to Java 5 for a moment (investigating a "cannot access <whatever>.class" compiler error). I updated all of my environment variables (Windows XP) to point to the Java 5 JDK folder. But it was still using Java 6 JRE. So I moved the Java 6 JRE folder to a super-secret-haha-you-can't-get-to-it-now location. This gave me the following error:
Error: could not open 'C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
Doesn't matter that all of my environment variables point to the Java 5 JDK, somehow invoking java from anywhere other than the Java 5 JDK bin folder causes some other handler to try and look up configuration from the JRE 6 folder that no longer exists.
Can anyone shed some light as to what is handling the command line call to java without letting it defer to the Java 5 JDK referenced in the path?
I guess I'll just see if I can uninstall the Java 6 JRE.

Java.exe goes in \windows\system32. It is just a stub that refers to the correct JRE based on the registry HKLM\software\JavaSoft\Java Runtime Environment, which contains some keys pointing to Java 1.6.
Therefore, I would try to add a path to the desired java.exe from the JRE directory BEFORE \windows\system32.

Similar Messages

  • Path problem in windows os

    Dear friends,
    some time I meet a strange class path problem under windows enviroment. that is, the class path uses "/" to splite directory while not "\". so java will report error message like "NoClassFoundError: com/boland/...". I think there should be a way to adjust this environment problem. but I don't know how to set this. I will greatly appreciate if you happen to know this and let me know.
    Best wishes,
    Sam

    You reported an error in a package statement or reference. This is nothing to do with the OS folder structure per se, altho that is how it is implemented on a given platform like windows. Classpath statements are NOT platform independent, due to path separator issues. You should not use a system-wide classpath variable anyway, as this is really quite bad practice. Instead, create a run script for you program, and put the -cp switch in there. In any case, you should be referencing packages (separated by dots) in there anyway, not actual paths.

  • Problem in installing SAP NetWeaver 7.0 Java sneak preview on windows xp sp

    Hi
    when I am trying to install SAP NetWeaver 7.0 Java sneak preview on windows xp sp2 I am getting the following problem 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Automatic LiveUpdate scheduler does not exist' after giving the jce file path and i can find the registry entry for the automatic live update scheduler .then what is wrong
    Any inputs are welcome

    Hello Bala,
    Do you have Norton AntiVirus installed? If so then you may need to uninstall it and then proceed with installation. Simple stopping it will not work.
    Regards,
    Vishwas.

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • Java path error

    hi gurus
    i am facing a problem while installing SAP IDES on my desktop(windows XP) but am facing the problem in JAVA PATH settings.
    can anyobdy please tell me the step by step JAVA path settings to resolve my probem?
    thanks in advance..

    go to Run
    type - > regedit
    in u r registry
    select
    HKEY_LOCAL_MACHINE
    SOFTWARE
    JAVASOFT
    JAVARUNTIME ENVIRONMENT
    JAVA 1.4.2_12
    on the right side you will find path for Java_home
    copy the same
    go to mycomputer properties advanced environment variables create one entry
    JAVA_HOME
    <the copied text eg. C:\Program Files\Java\j2re1.4.2_13>
    now go to cmd
    type java
    it should work
    Please provide points if helpful
    Regards
    Balamurugan.P

  • Java Path in XP

    Having problem with executing java compiled program. If I copy anc compile the source in Java directory, I can execute it, but from source directory I can not. I realized it is the Path, so I added java directory to the path, and now it compiles, but does not execute. Following is the log of my activities. I appreciate help with this issue.
    At the buttom of this log, it shows the current path.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\MaxMonakes\MaxJava>javac TipAdder.java
    C:\MaxMonakes\MaxJava>java TipAdder
    Exception in thread "main" java.lang.UnsupportedClassVersionError: TipAdder (Uns
    upported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    C:\MaxMonakes\MaxJava>path
    PATH=C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\
    Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
    Program Files\Common Files\Adaptec Shared\System;C:\Program Files\Schlumberger\S
    mart Cards and Terminals\Cyberflex Access Kits\v4\;C:\PROGRA~1\CA\SHARED~1\SCANE
    N~1;C:\PROGRA~1\CA\ETRUST~1;C:\Program Files\Java\jdk1.5.0_06\bin
    C:\MaxMonakes\MaxJava>

    You probably have an older version of java.exe somewhere in the Path, I would guess in the oracle directory. The error is saying that the java.exe you are running is not compatible with the compiled code. I suggest moving "C:\Program Files\Java\jdk1.5.0_06\bin" to the start of the Path (and you may need to put "" around the path).

  • SAP NetWeaver 2004s Java Trial Version on Windows Vista

    Hello everyone,
    I have been trying to install SAP NetWeaver 2004s Java Trial Version for three days now on Windows Vista Ultimate. Since Microsoft has a new security infrastructure implemented in Windows Vista, it is not that easy to install SAP NetWeaver 2004s Java Trial Version. Windows Vista has some sort of User-account security. In summary, in Windows Vista, you are logged in as an administrator, but when it comes to change system files or do registry entries, you or respectivly third party programs (e.g. SAP NetWeaver 2004s Java Trial Version installer) has no rights to do things like registry entries. There is a possibility to rightclick on the setup.bat file and start it in administrative mode, but that doesn't change a thing.
    I hope you guys get my problem.
    This is the error log:
    WARNING 2007-01-28 21:09:35
    Error 5 (acces denied
    ) in execution of a 'RegOpenKeyEx' function, line (69), with parameter (SYSTEM\CurrentControlSet\Services\DPS).
    WARNING 2007-01-28 21:09:35
    The Subkey 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DPS' does not exist on the 'localhost' host.
    ERROR 2007-01-28 21:09:35
    MOS-01185  The subkey 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DPS' does not exist on the 'localhost' host.
    ERROR 2007-01-28 21:09:35
    FCO-00011  The step collect with step key |NW_Java_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_GetSidNoProfiles|ind|ind|ind|ind|1|0|collect was executed with status ERROR .
    Please help!
    yours
    erik

    Windows Vista isn't on the support matrix of SAP Netweaver 2004s!
    you may play arround with regedit and chaning the security settings of SYSTEM\CurrentControlSet\Services\DPS key. SAPinst is doing a KEY_ALL_ACCESS when enumerating the services registry.
    Starting with Vista some registry values have special protection which do not allow administrators to open them with KEY_ALL_ACCESS.
    peter

  • SAP NW 7.0 Java trial version on windows platform

    Hi,
    I am searching for a SAP NW 7.0 Java trial version on windows platform in the "Downloads" sessions. But I couldn't find it there. Can anybody help me finding this trial version?
    Thanks,
    Kris

    Hi Kris
    Except the trial version, if you have a Sxxxxxxx user in Service Market Place(http://service.sap.com), I would like to recommend
    you install the netweaver developer workplace version, which can be installed on your laptop with windows XP, which should
    be better than the trial version.
    Thanks
    Thunder

  • 13" Cannot set screen resolution in Windows 7 to 1440 by 900

    Just finished installing BootCamp with Windows 7 Pro. For some reason the screen resolution in Windows display driver only goes up to 1200 not 1440 x 900. On MacOS it is obviously working fine. Any ideas?

    On my MacBook Air 11 with Windows 7 64 bit I experience an even worse situation: when ever trying to install a NVidia driver (also when following the mentioned instructions) the setup executable reports - after a check of system compatibility - that no compatible graphic hardware (=320m) could be found. Luckily at least MacOS X is aware of a NVidia 320m installed.
    Any Idea? Thanks

  • Java Applet Certificate Signing Window comes up BLANK!

    Hi Everyone I have a problem where
    Java Applet Certificate Signing Window comes up BLANK!
    It comes up as blank gray panel with the java logo on the upper left.
    the title bar says "Java Plugin Security Warning"
    And I can't figure out what to do to make it come up properly. I tried double clicking it dragging it around to make it repaint itself nothing happens.
    I have tried clearing temp files deleting files from IE, deleting cookies, clearing the history.
    Now i'm going to restart the computer and see if it works.
    It is supposed to give me buttons.
    1. Accept for this session
    2. Grant
    3. Deny
    4. View Certificate
    But does anyone have any idea how to address this issue ?
    Stephen

    You might try setting the trace level to 5 in the plugin's Java console and looking what it spits out while the applet is launching. I remember seeing loads of information in there including stuff relating to certificate validation. It might be helpful.
    The trick to getting this info during start up:
    1) get the plugin to load by directing your browser to page with a known applet. Write your own little stub applet and load it or go to http://java.sun.com/. There's an applet on that page.
    2) bring up the plugin's console if it's not already and then go to a blank page.
    3) set the trace level to 5 in the console. (just press the 5 key).
    4) go to the page that launches your applet. You'll have tons of information pour out in your console.
    Happy hunting.

  • About Java Communication API for Windows

    hi
    I'm studying Serial Communication in university.
    I'd like to know the reason why we can't downlaod Java Communication API for Windows.
    I confirmed Comm for Linux and Soralis, but I can't find Comm for Win.
    Please tell me the reason if someone know.

    For no particular reason Sun stopped supporting the windows version
    of that package. I use rxtx which happens to allow for much faster
    communication too.
    The interface is identical to Sun's version, just the package differs: "gnu.io".
    kind regards,
    Jos

  • I'm looking for Java version j2sdk-1_4_2_16-windows-amd64

    Hello everyone.
    I need Java version j2sdk-1_4_2_16-windows-amd64
    On SUN site are only versions j2sdk-1_4_2_13-windows-amd64 and j2sdk-1_4_2_17-windows-amd64.
    Could enyone has this version?
    Thank you.

    hi,
    it was very hard to find  and you have to register at the sun website (should be free).
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=j2sdk-1.4.2_16-amd64-JPR@CDS-CDS_Developer
    PS: I don´t know why the link is crossed out. Should work anyway.
    I hope i could help.
    regards
    Tobias

  • How to stop a thread in java 1.5 on windows

    Hi All,
    I am using Java 1.5 on windows plateform. I want to stop all the threads which belongs to a particular process when the timeout occurs. In java 1.5 stop() method is depricated and interrupt method just sets the flag and does not stop the thread actually.
    Is there any way to destroy the thread permenently. I am using TheadPool Executor class.
    Regards
    Rinku Garg

    Hi,
    I am having a timer task which is scheduled to run after some fixed time interval when the process started.
    Now this timer task when started, should destroy the active threads of the request. When the request is timed out then the thread is action should termininate.
    In my case run method of particular thread had already made a call to Database through DAO when the time out occurs. So how can I set up a loop in run method which I found on google.
    thread.stop() is deprecated.
    thread.destroy() is deprecated.
    I used thread.interrupt() but it does not stops the thread.
    Please help me in this scenario.
    Regards
    Rinku Garg

  • Able to select resolution in Windows?

    Hello,
    I spent 2 days working through boot camp issues and finally got it installed.  The reason I wanted to install it is because I wanted to play some games that only come on PC - especially Star Citizen. 
    When I play the game, its PAINFULLY MISERABLY slow.  It takes more than 20 seconds for it to respond to my actions.  I posted some questions on the board there and they said that it's either my resolution or my RAM.
    Is there a way to change the resolution only on the PC side so I don't have to always change it back on the Mac?  That would be very inconvenient.   I tried to change it but it seems like I have to change it on the Mac.  Also when I tried, then logged into the PC again, there was just a green screen - it didn't allow me to log in.
    Another player commented that it may be my RAM.  I have 8GB of Ram but they said that the PC may get less since I'm using Boot Camp.  Would that be correct?  Do I need to install more RAM?
    iMac 27 inch, late 2013
    3.2 GHz Intel Core i5
    8GB RAM
    NVIDIA GeForce GT 755M 1024MB
    10.10.2 Yosemite
    Windows 8.1 via boot camp
    THANK YOU!!!

    Thank you.  When I go to change resolution, it shows what it currently is but there is no option to change.
    I haven't been able to change resolution in windows at all.  I changed in Mac side but it would not load windows after I did that.
    To install the NVidia driver, which file would I select?  THANKS

  • Cannot maintain Monitor Resolution in Windows XP - Operating Parallels

    I cannot maintain the monitor resolution in Windows XP after I have set resolution in Settings. I am operating Parallels. I do maintain the monitor resolution in MAC at 1024 x 640. Can you help?
    Thank you

    Hi
    Sorry this is the forum for iChat apples instant messenger, try this forum http://discussions.apple.com/forum.jspa?forumID=1219

Maybe you are looking for

  • ITunes 11.0.1 no longer shows my TV Shows that are in the cloud

    After upgrading to iTunes 11.0.1, it seems my TV Shows that are in the cloud, but not downloaded locally no longer show up in my library.  I verified that Show TV Shows in the cloud is selected and if I goto the iTunes Store and look under purchased

  • Exists in sequence

    So I can create a sequence, insert and delete from it, but can I do a quick "in" check. Something like     if (3 in [1..10]) ...

  • How to move text in a text box

    Please help me put to move text inside a text box to move smoothly If anybody can provide me with the code, I will be thankful to him.

  • ODI 11g and Weblogic Server Link

    Hi All, I am beginner to work on ODI. Currently installing ODI 11g. I wan to install ODI on my pc and my database is installed on another server. Can we Install ODI without weblogic server to work with database using connection string? Weblogic serve

  • Access Variable on Main Timeline from Package

    I have set a variable on the root level timeline.  I have a movieclip that calls a package and within that package I want to call or access the main timline variable.  I have tried MovieClip(root) currentLabelName or just calling currentLabelName and