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.
11-06-2005, 06:04 AM
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)
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.
11-06-2005, 06:28 PM
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 ).
11-06-2005, 06:52 PM
no it doesnt give me the right click options but the cd command worked great for me thanks a lot, prolblem solved. :)