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

前端 未结 8 686
独厮守ぢ
独厮守ぢ 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条回答
  •  旧时难觅i
    2021-01-13 10:45

    To solve the aforementioned problem follow the mentioned steps:

    1) Copy the address location of your Java\jdk\bin folder usually installed in your C: drive. It should look something like this:

    C:\Program Files (x86)\Java\jdk1.8.0_65\bin

    2) Right click on My Computer-->Properties-->Change settings--> Advanced-->Environment Variables.. -->New..

    3) Now,

     Set Variable name: PATH
     Variable value: C:\Program Files (x86)\Java\jdk1.8.0_65\bin
    

    4) Press OK, re-open your cmd and compile your program.

    Hopefully it worked!

提交回复
热议问题