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
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.
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 !