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
  • 12,111
  • 21
  • 91
  • 136
George Tomlinson
  • 1,871
  • 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,985
  • 13
  • 55
  • 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
  • 5,001
  • 4
  • 34
  • 49
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