'javac' is not recognized as an internal or external command

前端 未结 8 636
独厮守ぢ
独厮守ぢ 2021-01-13 10:25

I have to convert my Matlab algorithm in Java. For this I\'m using matlab builder ja toolbox, after following all the necessary steps, the build fails and this error is disp

相关标签:
8条回答
  • 2021-01-13 10:59
    • First make sure you have installed jdk and jre, both are installed with the java software development kit. The installation folder is typically C:\Program Files\Java.

    • Now go to Computer > Properties > Advanced system settings in the advanced tab click on Environment Variables

    • In System variables find the variable named Path, in the value of Path you will find a java path like C:\ProgramData\Oracle\Java\javapath, just change it to C:\Program Files\Java\jdk1.x.x_x\bin.

    Hope that helps.

    0 讨论(0)
  • 2021-01-13 11:02

    Download Java from given link according to your requirements.

    http://www.oracle.com/technetwork/java/javase/downloads/index.html

    then follow below steps: Step-1 : Right Click on MyComputer and click on properties .

    Step 2 : Click on Advanced tab

    Step 3 : Click on Environment Variables

    Step 4 : Create a new class path for JAVA_HOME

    Step 5 : Enter the Variable name as JAVA_HOME and the value to your jdk bin path ie c:\Programfiles\Java\jdk-1.6\bin and

    NOTE Make sure u start with .; in the Value so that it doesn't corrupt the other environment variables which is already set.

    Step 6 : Follow the Above step and edit the Path in System Variables add the following ;c:\Programfiles\Java\jdk-1.6\bin in the value column.

    Step 7 :Your are done setting up your environment variables for your Java , In order to test it go to command prompt and type

    java
    who will get a list of help doc

    In order make sure whether compiler is setup Type in cmd

    javac

    who will get a list related to javac

    Hope this Helps !

    0 讨论(0)
提交回复
热议问题