Posts

Showing posts from January, 2018

Problems with java and javac commands? Do the following

Image
This is a branch from the usual discussion about java. You don’t really need this if you didn’t have any errors when executing the java –version and javac –version commands in the last post . You probably also don’t need it if you’re using an IDE since the commands are run internally for you. Now, let’s start sorting things out. The windows command prompt has inbuilt commands. You can also run other executables from the command line as long as the command prompt knows where to find the executables. In order to find the executables, it searches the current directory in which you are and also the path (which is just a list of directories you specify). If the javac –version command doesn’t run, it is likely you have not included it in your path. Let’s do that now. Even though I strongly advise you to do this yourself by following either method 1 or 2, I have included a small utility written in python to search for your java installation and add it to the path for you. You can find thi