Page 1 of 1

cant find compiler

Posted: Mon Oct 29, 2007 10:17 pm
by esiuol
hey,
when i try to compile a java file i get an error saying 'cannt find file specified' i think its because it cant find the compiler and i do have the sun enviroment installed, does anyone know where i can specy this...something to do with envirmonet variables?
thanks

Posted: Thu Nov 22, 2007 7:18 pm
by Nicholas Jordan
Yes, it is something to do with envirionment variables.

set path to include the location of javac.exe, which someone will help you find or just keep reading documentation. There are several 'environment variables' but I have had to not use class path sometimes even though it says to use it. remember current dir is '.' (a dot) under win and sometimes including that makes things work, sometimes it doesn't

run a command prompt and echo %path% remember the percent sign and it gets complicated from there.

-classpath .;C:\{your devleopment home directroy} ... notice use of semicolons not something else: search for classpath on java site and work the tutorials