How to find the JRE path on Windows?2019 Community Moderator ElectionHow can you find out which process is listening on a port on Windows?Is there an equivalent of 'which' on the Windows command line?How to count all the lines of code in a directory recursively?Get current directory name (without full path) in a Bash scriptHow to set a variable to the output of a command in Bash?How do I install pip on Windows?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionHow to permanently set $PATH on Linux/Unix?Node.js version on the command line? (not the REPL)How to import an SQL file using the command line in MySQL?

Could the Saturn V actually have launched astronauts around Venus?

Time travel from stationary position?

Do I need life insurance if I can cover my own funeral costs?

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

What is the significance behind "40 days" that often appears in the Bible?

How to deal with a cynical class?

A Cautionary Suggestion

If curse and magic is two sides of the same coin, why the former is forbidden?

A link redirect to http instead of https: how critical is it?

Did Ender ever learn that he killed Stilson and/or Bonzo?

Are all passive ability checks floors for active ability checks?

Welcoming 2019 Pi day: How to draw the letter π?

Why Choose Less Effective Armour Types?

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

PTIJ: Who should I vote for? (21st Knesset Edition)

Existence of subset with given Hausdorff dimension

Interplanetary conflict, some disease destroys the ability to understand or appreciate music

What are substitutions for coconut in curry?

My adviser wants to be the first author

Professor being mistaken for a grad student

How to write cleanly even if my character uses expletive language?

How Could an Airship Be Repaired Mid-Flight

How big is a MODIS 250m pixel in reality?

What is the domain in a tikz parametric plot?



How to find the JRE path on Windows?



2019 Community Moderator ElectionHow can you find out which process is listening on a port on Windows?Is there an equivalent of 'which' on the Windows command line?How to count all the lines of code in a directory recursively?Get current directory name (without full path) in a Bash scriptHow to set a variable to the output of a command in Bash?How do I install pip on Windows?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionHow to permanently set $PATH on Linux/Unix?Node.js version on the command line? (not the REPL)How to import an SQL file using the command line in MySQL?










0















I am trying to run a command to get the JRE path.



I know how to find it manually but want a command in command prompt to fulfill that.



java -XshowSettings:properties -version | findstr "java.home" this doesn't work, because it prints all lines.










share|improve this question






















  • From the cmd line, where java shows where java.exe is found (otherwise echo %java_home% if it is set)

    – Daniele
    Mar 6 at 19:59











  • @Daniele , where java is getting the path of java, but that is different than the path C:Program FilesJavajre1.8.0_181

    – Ray Z
    Mar 6 at 20:04















0















I am trying to run a command to get the JRE path.



I know how to find it manually but want a command in command prompt to fulfill that.



java -XshowSettings:properties -version | findstr "java.home" this doesn't work, because it prints all lines.










share|improve this question






















  • From the cmd line, where java shows where java.exe is found (otherwise echo %java_home% if it is set)

    – Daniele
    Mar 6 at 19:59











  • @Daniele , where java is getting the path of java, but that is different than the path C:Program FilesJavajre1.8.0_181

    – Ray Z
    Mar 6 at 20:04













0












0








0








I am trying to run a command to get the JRE path.



I know how to find it manually but want a command in command prompt to fulfill that.



java -XshowSettings:properties -version | findstr "java.home" this doesn't work, because it prints all lines.










share|improve this question














I am trying to run a command to get the JRE path.



I know how to find it manually but want a command in command prompt to fulfill that.



java -XshowSettings:properties -version | findstr "java.home" this doesn't work, because it prints all lines.







java windows bash command-line command-prompt






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 19:54









Ray ZRay Z

6310




6310












  • From the cmd line, where java shows where java.exe is found (otherwise echo %java_home% if it is set)

    – Daniele
    Mar 6 at 19:59











  • @Daniele , where java is getting the path of java, but that is different than the path C:Program FilesJavajre1.8.0_181

    – Ray Z
    Mar 6 at 20:04

















  • From the cmd line, where java shows where java.exe is found (otherwise echo %java_home% if it is set)

    – Daniele
    Mar 6 at 19:59











  • @Daniele , where java is getting the path of java, but that is different than the path C:Program FilesJavajre1.8.0_181

    – Ray Z
    Mar 6 at 20:04
















From the cmd line, where java shows where java.exe is found (otherwise echo %java_home% if it is set)

– Daniele
Mar 6 at 19:59





From the cmd line, where java shows where java.exe is found (otherwise echo %java_home% if it is set)

– Daniele
Mar 6 at 19:59













@Daniele , where java is getting the path of java, but that is different than the path C:Program FilesJavajre1.8.0_181

– Ray Z
Mar 6 at 20:04





@Daniele , where java is getting the path of java, but that is different than the path C:Program FilesJavajre1.8.0_181

– Ray Z
Mar 6 at 20:04












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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%2fstackoverflow.com%2fquestions%2f55031214%2fhow-to-find-the-jre-path-on-windows%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f55031214%2fhow-to-find-the-jre-path-on-windows%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

1928 у кіно

Захаров Федір Захарович

Ель Греко