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
cant find compiler
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Nicholas Jordan
- Posts: 124
- Joined: Mon Dec 20, 2004 12:33 am
- Location: Central Texas ISO Latin-1
- Contact:
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
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