File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Joined: Jan 26, 2009
Feb 01, 2009 12:52:07
Hello, I am trying to write a program on notepad, and use the cmd prompt to open. I have my PATH set and all that. When I look in the dir, using the cmd prompt my Hello.java is there.
My problem is: when I try javac Hello.java I get an error, the error is:
Hello.java:1: error while writing Hello: Hello.class <Access is denied>
Using vista 64bit.
Any idea on how to fix this?
EDIT: Figured it out, silly Vista makes me give myself access to write to folders I create!
Joined: Oct 13, 2005
Feb 01, 2009 14:05:42
Well done sorting it out by yourself (
), and thank you for telling us the answer in case anybody else has the same problem.-
I agree. Here's the link:
subject: Using cmd.exe
Running Java Programs from the command prompt
'javac' is not recognized as an internal or external command,
Use cmd and not an IDE.
Running compiled code
Is this the place to ask installation questions?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014