JDK installed but no javap?












1















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?










share|improve this question























  • You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…

    – Chris
    Nov 23 '18 at 10:39
















1















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?










share|improve this question























  • You have to set the path/environment variable. please see: stackoverflow.com/questions/1672281/…

    – Chris
    Nov 23 '18 at 10:39














1












1








1








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












3 Answers
3






active

oldest

votes


















1














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.






share|improve this answer

































    0














    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





    share|improve this answer































      0














      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





      share|improve this answer























        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%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









        1














        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.






        share|improve this answer






























          1














          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.






          share|improve this answer




























            1












            1








            1







            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.






            share|improve this answer















            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.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 23 '18 at 11:11

























            answered Nov 23 '18 at 10:42









            Rajiv BandiRajiv Bandi

            255




            255

























                0














                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





                share|improve this answer




























                  0














                  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





                  share|improve this answer


























                    0












                    0








                    0







                    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





                    share|improve this answer













                    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






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 23 '18 at 10:38









                    Karol DowbeckiKarol Dowbecki

                    21.1k93154




                    21.1k93154























                        0














                        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





                        share|improve this answer




























                          0














                          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





                          share|improve this answer


























                            0












                            0








                            0







                            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





                            share|improve this answer













                            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






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 23 '18 at 10:39









                            Prateek JainPrateek Jain

                            8991221




                            8991221






























                                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%2f53445007%2fjdk-installed-but-no-javap%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

                                Costa Masnaga

                                Fotorealismo

                                Sidney Franklin