-4

javac working on server computer but not on client computers for programming purpose why? Like when I make a program in Notepad and run on server computer in Dos mode its work perfectly, but when I use this on client computer its says:

javac is not internal or external command

This setup is being used in a school to learn Java programming. I use this path to run a file:

E:\java>javac Filename.java

this command is work on server computer while rest of other computers does not execute this command.

halfer
  • 19,824
  • 17
  • 99
  • 186
  • Please Show the error message and the related code. – Jens Jan 15 '16 at 06:16
  • 2
    Welcome to stackoverflow! Please check the FAQ [ask] on how to ask good questions, so that you get good answers. In particular, requests like `please resolve this problem ASAP` usually lead to the question being closed quickly. Also, please take some care on formatting your question. – Andreas Fester Jan 15 '16 at 06:18
  • In addition to @Andreas' good advice, please do not add your email address asking for private assistance - everything here is done in the open, so that other people may benefit from the answers given. – halfer Jan 15 '16 at 08:21
  • 1
    I suspect [this question has a few duplicates](https://stackoverflow.com/search?q=javac+is+not+internal+or+external+command). – halfer Jan 15 '16 at 08:22

2 Answers2

0

When you run an executable it needs to be somewhere on your path variable. Or you can use the full path. Most likely the client machine doesn't even have the JDK installed and thus doesn't have a javac command for you to compile your project.

  1. Make sure you have the Java Development Kit installed. If not, install it.
  2. Make sure that the directory containing javac is on your path. If not, add it (system dependent).
ktbiz
  • 586
  • 4
  • 13
0

javac.exe is only available in JDK(Java development Kit) not in JRE. I think you have JRE installed on client computers under E:\Java not JDK