wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Using cmd.exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Using cmd.exe" Watch "Using cmd.exe" New topic
Author

Using cmd.exe

Brian Pianczk
Ranch Hand

Joined: Jan 26, 2009
Posts: 45
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>
class Hello
^
1 error


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!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37926
    
  22
Well done sorting it out by yourself ( ), and thank you for telling us the answer in case anybody else has the same problem.-
 
Consider Paul's rocket mass heater.
 
subject: Using cmd.exe
 
Similar Threads
Running Java Programs from the command prompt
Running compiled code
'javac' is not recognized as an internal or external command,
Use cmd and not an IDE.
Is this the place to ask installation questions?