0

I tried typing the name of the bat file (makejar.bat) from the containing direcory from the command line. It gives several errors all containing "'javac' is not recognised as an internal or external command."

tshepang
  • 11,360
  • 21
  • 88
  • 132
George Tomlinson
  • 1,835
  • 3
  • 17
  • 32

3 Answers3

1

This sounds like a java class path problem.

You can find the instructions to set the java CLASSPATH on the following Oracle web page.

Andre Lombaard
  • 6,745
  • 13
  • 54
  • 96
1

I suppose you are working on Windows, so make sure that your environment variables are properly set:

JAVA_HOME - points to a proper JDK installation
PATH - contains a references to JAVA_HOME, something like: **PATH;%JAVA_HOME%\bin**

This should do it! Make sure to restart the command line you are using after making changes to environment variables.

You can see how to set/add environment variables on windows here.

Olimpiu POP
  • 4,856
  • 4
  • 32
  • 46
0

On CMD--> type--> PATH="c:\Program Files\Java\jdk1.8.0_144\bin"; and then check java path by type "java -version" on cmd and also check on YouTube : -https://www.youtube.com/watch?v=mzAAmJj-W6w

  • A link to an outside source is not the same as an answer. Please consider adding key details from the video to your answer. – Thomas Smyth Dec 04 '17 at 06:56