File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 40051
    
  28
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: http://aspose.com/file-tools
 
subject: Using cmd.exe