Java runtime environment path issues












0















I've had a problem with my Java installations for quite some time and I've never had time to sit and try to fix this problem.



So I went ahead and uninstalled all the various versions of Java I'd installed to get Weka to work.




  1. I then went ahead and installed JDK v7u71 x64 (my machine is a 64bit one).


  2. I added the bin directory of this newly installed java to my PATH.


  3. I go to the command prompt and type in 'java -version'. Here, I'm greeted by the same old error messages:



"Error: loading: C:Windowsjrebinmsvcr100.dll



Error: loading: C:Windowsjrebinclientjvm.dll"




  1. Then I ran this command: '"C:Program FilesJavajre7binjava" -version' and the correct version comes up.


I went and looked at the jre directory within the Windows directory and it had an msvcr100.dll there and a jvm.dll. Why is that particular 'java' not working? and what do I have to do to get java to work correctly on my system?



One solution was that I renamed (removed) the Windows jre folder and tried the 'java -version' command. It worked. But I'm not sure that's the best solution to my problem.










share|improve this question























  • after you change the PATH, type PATH<ENTER> to see the new path that the command prompt sees. If you change the path in windows GUI then you need to open a new cmd prompt to see that changed path in action in that command prompt. If you change the path variable within a command prompt then it'll only be true for that command prompt. Ultimately, run PATH<ENTER> to see the path. IF you enter JAVA and it runs the one in your windowsjre directory then that windowsjre directory is in your PATH. So try opening a new command prompt / changing your path properly.

    – barlop
    Dec 6 '14 at 17:25
















0















I've had a problem with my Java installations for quite some time and I've never had time to sit and try to fix this problem.



So I went ahead and uninstalled all the various versions of Java I'd installed to get Weka to work.




  1. I then went ahead and installed JDK v7u71 x64 (my machine is a 64bit one).


  2. I added the bin directory of this newly installed java to my PATH.


  3. I go to the command prompt and type in 'java -version'. Here, I'm greeted by the same old error messages:



"Error: loading: C:Windowsjrebinmsvcr100.dll



Error: loading: C:Windowsjrebinclientjvm.dll"




  1. Then I ran this command: '"C:Program FilesJavajre7binjava" -version' and the correct version comes up.


I went and looked at the jre directory within the Windows directory and it had an msvcr100.dll there and a jvm.dll. Why is that particular 'java' not working? and what do I have to do to get java to work correctly on my system?



One solution was that I renamed (removed) the Windows jre folder and tried the 'java -version' command. It worked. But I'm not sure that's the best solution to my problem.










share|improve this question























  • after you change the PATH, type PATH<ENTER> to see the new path that the command prompt sees. If you change the path in windows GUI then you need to open a new cmd prompt to see that changed path in action in that command prompt. If you change the path variable within a command prompt then it'll only be true for that command prompt. Ultimately, run PATH<ENTER> to see the path. IF you enter JAVA and it runs the one in your windowsjre directory then that windowsjre directory is in your PATH. So try opening a new command prompt / changing your path properly.

    – barlop
    Dec 6 '14 at 17:25














0












0








0








I've had a problem with my Java installations for quite some time and I've never had time to sit and try to fix this problem.



So I went ahead and uninstalled all the various versions of Java I'd installed to get Weka to work.




  1. I then went ahead and installed JDK v7u71 x64 (my machine is a 64bit one).


  2. I added the bin directory of this newly installed java to my PATH.


  3. I go to the command prompt and type in 'java -version'. Here, I'm greeted by the same old error messages:



"Error: loading: C:Windowsjrebinmsvcr100.dll



Error: loading: C:Windowsjrebinclientjvm.dll"




  1. Then I ran this command: '"C:Program FilesJavajre7binjava" -version' and the correct version comes up.


I went and looked at the jre directory within the Windows directory and it had an msvcr100.dll there and a jvm.dll. Why is that particular 'java' not working? and what do I have to do to get java to work correctly on my system?



One solution was that I renamed (removed) the Windows jre folder and tried the 'java -version' command. It worked. But I'm not sure that's the best solution to my problem.










share|improve this question














I've had a problem with my Java installations for quite some time and I've never had time to sit and try to fix this problem.



So I went ahead and uninstalled all the various versions of Java I'd installed to get Weka to work.




  1. I then went ahead and installed JDK v7u71 x64 (my machine is a 64bit one).


  2. I added the bin directory of this newly installed java to my PATH.


  3. I go to the command prompt and type in 'java -version'. Here, I'm greeted by the same old error messages:



"Error: loading: C:Windowsjrebinmsvcr100.dll



Error: loading: C:Windowsjrebinclientjvm.dll"




  1. Then I ran this command: '"C:Program FilesJavajre7binjava" -version' and the correct version comes up.


I went and looked at the jre directory within the Windows directory and it had an msvcr100.dll there and a jvm.dll. Why is that particular 'java' not working? and what do I have to do to get java to work correctly on my system?



One solution was that I renamed (removed) the Windows jre folder and tried the 'java -version' command. It worked. But I'm not sure that's the best solution to my problem.







windows-7 java path environment-variables






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 6 '14 at 16:18









Siddharth KumarSiddharth Kumar

111




111













  • after you change the PATH, type PATH<ENTER> to see the new path that the command prompt sees. If you change the path in windows GUI then you need to open a new cmd prompt to see that changed path in action in that command prompt. If you change the path variable within a command prompt then it'll only be true for that command prompt. Ultimately, run PATH<ENTER> to see the path. IF you enter JAVA and it runs the one in your windowsjre directory then that windowsjre directory is in your PATH. So try opening a new command prompt / changing your path properly.

    – barlop
    Dec 6 '14 at 17:25



















  • after you change the PATH, type PATH<ENTER> to see the new path that the command prompt sees. If you change the path in windows GUI then you need to open a new cmd prompt to see that changed path in action in that command prompt. If you change the path variable within a command prompt then it'll only be true for that command prompt. Ultimately, run PATH<ENTER> to see the path. IF you enter JAVA and it runs the one in your windowsjre directory then that windowsjre directory is in your PATH. So try opening a new command prompt / changing your path properly.

    – barlop
    Dec 6 '14 at 17:25

















after you change the PATH, type PATH<ENTER> to see the new path that the command prompt sees. If you change the path in windows GUI then you need to open a new cmd prompt to see that changed path in action in that command prompt. If you change the path variable within a command prompt then it'll only be true for that command prompt. Ultimately, run PATH<ENTER> to see the path. IF you enter JAVA and it runs the one in your windowsjre directory then that windowsjre directory is in your PATH. So try opening a new command prompt / changing your path properly.

– barlop
Dec 6 '14 at 17:25





after you change the PATH, type PATH<ENTER> to see the new path that the command prompt sees. If you change the path in windows GUI then you need to open a new cmd prompt to see that changed path in action in that command prompt. If you change the path variable within a command prompt then it'll only be true for that command prompt. Ultimately, run PATH<ENTER> to see the path. IF you enter JAVA and it runs the one in your windowsjre directory then that windowsjre directory is in your PATH. So try opening a new command prompt / changing your path properly.

– barlop
Dec 6 '14 at 17:25










1 Answer
1






active

oldest

votes


















0














The correct solution would have been to edit your PATH environment variable, such that is does contain C:Program FilesJavajre7bin
but not C:Windowsjrebin.



You said you added the new one, but probably you did not delete the old path.






share|improve this answer
























  • I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

    – Siddharth Kumar
    Dec 6 '14 at 16:52













  • Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

    – Lorenz Meyer
    Dec 6 '14 at 16:56











  • There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

    – Siddharth Kumar
    Dec 6 '14 at 16:59











  • @SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

    – barlop
    Dec 6 '14 at 17:26













  • So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

    – Siddharth Kumar
    Dec 6 '14 at 20:53











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f849353%2fjava-runtime-environment-path-issues%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The correct solution would have been to edit your PATH environment variable, such that is does contain C:Program FilesJavajre7bin
but not C:Windowsjrebin.



You said you added the new one, but probably you did not delete the old path.






share|improve this answer
























  • I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

    – Siddharth Kumar
    Dec 6 '14 at 16:52













  • Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

    – Lorenz Meyer
    Dec 6 '14 at 16:56











  • There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

    – Siddharth Kumar
    Dec 6 '14 at 16:59











  • @SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

    – barlop
    Dec 6 '14 at 17:26













  • So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

    – Siddharth Kumar
    Dec 6 '14 at 20:53
















0














The correct solution would have been to edit your PATH environment variable, such that is does contain C:Program FilesJavajre7bin
but not C:Windowsjrebin.



You said you added the new one, but probably you did not delete the old path.






share|improve this answer
























  • I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

    – Siddharth Kumar
    Dec 6 '14 at 16:52













  • Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

    – Lorenz Meyer
    Dec 6 '14 at 16:56











  • There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

    – Siddharth Kumar
    Dec 6 '14 at 16:59











  • @SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

    – barlop
    Dec 6 '14 at 17:26













  • So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

    – Siddharth Kumar
    Dec 6 '14 at 20:53














0












0








0







The correct solution would have been to edit your PATH environment variable, such that is does contain C:Program FilesJavajre7bin
but not C:Windowsjrebin.



You said you added the new one, but probably you did not delete the old path.






share|improve this answer













The correct solution would have been to edit your PATH environment variable, such that is does contain C:Program FilesJavajre7bin
but not C:Windowsjrebin.



You said you added the new one, but probably you did not delete the old path.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 6 '14 at 16:48









Lorenz MeyerLorenz Meyer

3142623




3142623













  • I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

    – Siddharth Kumar
    Dec 6 '14 at 16:52













  • Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

    – Lorenz Meyer
    Dec 6 '14 at 16:56











  • There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

    – Siddharth Kumar
    Dec 6 '14 at 16:59











  • @SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

    – barlop
    Dec 6 '14 at 17:26













  • So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

    – Siddharth Kumar
    Dec 6 '14 at 20:53



















  • I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

    – Siddharth Kumar
    Dec 6 '14 at 16:52













  • Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

    – Lorenz Meyer
    Dec 6 '14 at 16:56











  • There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

    – Siddharth Kumar
    Dec 6 '14 at 16:59











  • @SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

    – barlop
    Dec 6 '14 at 17:26













  • So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

    – Siddharth Kumar
    Dec 6 '14 at 20:53

















I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

– Siddharth Kumar
Dec 6 '14 at 16:52







I added the new one after checking if the PATH had the old one. It wasn't there. Still gave me problems. I checked again.

– Siddharth Kumar
Dec 6 '14 at 16:52















Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

– Lorenz Meyer
Dec 6 '14 at 16:56





Sorry, so this is not the answer in your case. But did you search your files for another version of java.exe ?

– Lorenz Meyer
Dec 6 '14 at 16:56













There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

– Siddharth Kumar
Dec 6 '14 at 16:59





There are no other JRE folders on my system. There's a java.exe in the jdk folder in Program Files/Java/jdk<ver> as well, but I don't think that's causing problems.

– Siddharth Kumar
Dec 6 '14 at 16:59













@SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

– barlop
Dec 6 '14 at 17:26







@SiddharthKumar run PATH<ENTER> to see your path. You might be OK deleting that windowsjre java though perhaps it'd have been better to look into reinstalling the jre that is there but many people don't want the java jre there on their system or if it's there they disable java in their browsers.. cos java appets are apparently not very secure

– barlop
Dec 6 '14 at 17:26















So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

– Siddharth Kumar
Dec 6 '14 at 20:53





So you're saying it's fine to get rid of the JRE that's there in the windows directory, right?

– Siddharth Kumar
Dec 6 '14 at 20:53


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f849353%2fjava-runtime-environment-path-issues%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

Алькесар

Josef Freinademetz