File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Using cmd.exe" Watch "Using cmd.exe" New topic

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 is there.

My problem is: when I try javac I get an error, the error is: 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

Joined: Oct 13, 2005
Posts: 45427
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
It's not a secret anymore!