Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Java Compiler

I have been trying to compile an applet but when i type "javac <source file>"
it always says "error:cannot read" and i have checked to make sure the name is exactly the same and the class in the source code is the same so would anyone know what i am doing wrong i made a pic of the things that i thought might matter.

http://img246.imageshack.us/img246/5044/untitled3bq.th.png (http://img246.imageshack.us/my.php?image=untitled3bq.png)
[456 byte] By [Darrel104] at [2007-11-11 7:13:11]
# 1 Re: Java Compiler
your DrawingLines.java file in C:\Jsdk~\java directory,
but you use command in C:\document and settings\owner directory.
you should go to same directory with that file ( or give the full path of file in command)

i use that free utility , right click the folder you want to work. choose "command prompt".
it will open a console there
http://www.rjhsoftware.com/rjhextensions/
mr1yh1 at 2007-11-11 22:38:57 >
# 2 Re: Java Compiler
so what would i have to type in the ms-dos prompt if my directory is C:\j2sdk1.4.2_10\java directory and my file that i want to compile is DrawingLines.java?

Also i could not get the utility to work because after i installed it the .exe file it came with just gave me the options of what i wanted to use the ulility for and nothing else.
Darrel104 at 2007-11-11 22:39:57 >
# 3 Re: Java Compiler
you can use cd ( change directory ) command to go to another directory.
( learn about dir and cd commands , they are most usefull ones )
...
after installing that utility, you will have some extension in rightclick menu, didnt you have them .
rightclick on a folder and choose "command prompt" ( in website i saw "dos prompt" but i guess its and old pic ).
mr1yh1 at 2007-11-11 22:41:01 >
# 4 Re: Java Compiler
no it doesnt give me the right click options but the cd command worked great for me thanks a lot, prolblem solved. :)
Darrel104 at 2007-11-11 22:42:05 >