You have to add the path of the Java bin directory, so that when you type in command the shell would know where to look for.
The PATH variable must be already containing other paths, which are separated by ; so all you have to do is add your path after the existing paths.