JDK installed but no javap?
I have the JDK 10.0.2 installed, have the cmd opened in the folder of the class files of my program and try the command: javap Simulation.class .
I get the error that the command javap is not found. What do I do wrong?
java javap
add a comment |
I have the JDK 10.0.2 installed, have the cmd opened in the folder of the class files of my program and try the command: javap Simulation.class .
I get the error that the command javap is not found. What do I do wrong?
java javap
You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…
– Chris
Nov 23 '18 at 10:39
add a comment |
I have the JDK 10.0.2 installed, have the cmd opened in the folder of the class files of my program and try the command: javap Simulation.class .
I get the error that the command javap is not found. What do I do wrong?
java javap
I have the JDK 10.0.2 installed, have the cmd opened in the folder of the class files of my program and try the command: javap Simulation.class .
I get the error that the command javap is not found. What do I do wrong?
java javap
java javap
asked Nov 23 '18 at 10:32
TemeritaTemerita
366
366
You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…
– Chris
Nov 23 '18 at 10:39
add a comment |
You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…
– Chris
Nov 23 '18 at 10:39
You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…
– Chris
Nov 23 '18 at 10:39
You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…
– Chris
Nov 23 '18 at 10:39
add a comment |
3 Answers
3
active
oldest
votes
Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.
Ex. If you have installed Java on path,say, C:Program FilesJavajdk-10
Then you have to add C:Program FilesJavajdk-10bin to your PATH environment variable to be able to execute java commands from anywhere on command line.
References for Oracle Docs
- https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-microsoft-windows-platforms.htm#JSJIG-GUID-DAF345BA-B3E7-4CF2-B87A-B6662D691840
- https://www.java.com/en/download/help/path.xml
On a sidenote, recommend you to move to Java 11 now that Java 10 is no longer supported. The above instructions would still remain same.
add a comment |
You must have your $JAVA_HOME/bin
directory added to system PATH
for javap
command to be available without it's absolute path.
Alternatively you can call javap
using the absolute path:
/usr/lib/../bin/javap Simulation.class
add a comment |
append $JAVA_HOME/bin to system $PATH variable. for example on linux
JAVA_HOME= "path of java installation on system"
export PATH = $JAVA_HOME/bin:$PATH
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445007%2fjdk-installed-but-no-javap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.
Ex. If you have installed Java on path,say, C:Program FilesJavajdk-10
Then you have to add C:Program FilesJavajdk-10bin to your PATH environment variable to be able to execute java commands from anywhere on command line.
References for Oracle Docs
- https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-microsoft-windows-platforms.htm#JSJIG-GUID-DAF345BA-B3E7-4CF2-B87A-B6662D691840
- https://www.java.com/en/download/help/path.xml
On a sidenote, recommend you to move to Java 11 now that Java 10 is no longer supported. The above instructions would still remain same.
add a comment |
Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.
Ex. If you have installed Java on path,say, C:Program FilesJavajdk-10
Then you have to add C:Program FilesJavajdk-10bin to your PATH environment variable to be able to execute java commands from anywhere on command line.
References for Oracle Docs
- https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-microsoft-windows-platforms.htm#JSJIG-GUID-DAF345BA-B3E7-4CF2-B87A-B6662D691840
- https://www.java.com/en/download/help/path.xml
On a sidenote, recommend you to move to Java 11 now that Java 10 is no longer supported. The above instructions would still remain same.
add a comment |
Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.
Ex. If you have installed Java on path,say, C:Program FilesJavajdk-10
Then you have to add C:Program FilesJavajdk-10bin to your PATH environment variable to be able to execute java commands from anywhere on command line.
References for Oracle Docs
- https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-microsoft-windows-platforms.htm#JSJIG-GUID-DAF345BA-B3E7-4CF2-B87A-B6662D691840
- https://www.java.com/en/download/help/path.xml
On a sidenote, recommend you to move to Java 11 now that Java 10 is no longer supported. The above instructions would still remain same.
Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.
Ex. If you have installed Java on path,say, C:Program FilesJavajdk-10
Then you have to add C:Program FilesJavajdk-10bin to your PATH environment variable to be able to execute java commands from anywhere on command line.
References for Oracle Docs
- https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-microsoft-windows-platforms.htm#JSJIG-GUID-DAF345BA-B3E7-4CF2-B87A-B6662D691840
- https://www.java.com/en/download/help/path.xml
On a sidenote, recommend you to move to Java 11 now that Java 10 is no longer supported. The above instructions would still remain same.
edited Nov 23 '18 at 11:11
answered Nov 23 '18 at 10:42
Rajiv BandiRajiv Bandi
255
255
add a comment |
add a comment |
You must have your $JAVA_HOME/bin
directory added to system PATH
for javap
command to be available without it's absolute path.
Alternatively you can call javap
using the absolute path:
/usr/lib/../bin/javap Simulation.class
add a comment |
You must have your $JAVA_HOME/bin
directory added to system PATH
for javap
command to be available without it's absolute path.
Alternatively you can call javap
using the absolute path:
/usr/lib/../bin/javap Simulation.class
add a comment |
You must have your $JAVA_HOME/bin
directory added to system PATH
for javap
command to be available without it's absolute path.
Alternatively you can call javap
using the absolute path:
/usr/lib/../bin/javap Simulation.class
You must have your $JAVA_HOME/bin
directory added to system PATH
for javap
command to be available without it's absolute path.
Alternatively you can call javap
using the absolute path:
/usr/lib/../bin/javap Simulation.class
answered Nov 23 '18 at 10:38
Karol DowbeckiKarol Dowbecki
21.1k93154
21.1k93154
add a comment |
add a comment |
append $JAVA_HOME/bin to system $PATH variable. for example on linux
JAVA_HOME= "path of java installation on system"
export PATH = $JAVA_HOME/bin:$PATH
add a comment |
append $JAVA_HOME/bin to system $PATH variable. for example on linux
JAVA_HOME= "path of java installation on system"
export PATH = $JAVA_HOME/bin:$PATH
add a comment |
append $JAVA_HOME/bin to system $PATH variable. for example on linux
JAVA_HOME= "path of java installation on system"
export PATH = $JAVA_HOME/bin:$PATH
append $JAVA_HOME/bin to system $PATH variable. for example on linux
JAVA_HOME= "path of java installation on system"
export PATH = $JAVA_HOME/bin:$PATH
answered Nov 23 '18 at 10:39
Prateek JainPrateek Jain
8991221
8991221
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445007%2fjdk-installed-but-no-javap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…
– Chris
Nov 23 '18 at 10:39