0

I was just starting to learn basic java for I apparently need it to be able to code bukkit plugins for minecraft and I'm stuck on the following issue.

I have made the HelloWorldApp.java in the folder c/test but it wont do want its supposed to do. Any help would be good and please try to dumb down any coding, etc

This is how I invoked it:

C:\Users\Matthew\Desktop>cd C:\test

C:\test>javac HelloWorldApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

C:\test>
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
ozm8ey
  • 1
  • 3

1 Answers1

2

You need to setup Java in path.

Windows XP:

  1. Select Start, select Control Panel. double click System, and select the Advanced tab.
  2. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  3. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Windows Vista:

  1. From the desktop, right click the My Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced tab (Advanced system settings link in Vista).
  4. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  5. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Windows 7:

  1. From the desktop, right click the Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced system settings link.
  4. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  5. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

https://docs.oracle.com/javase/tutorial/essential/environment/paths.html

Vicky Thakor
  • 3,847
  • 7
  • 42
  • 67