aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 36452
    
  15
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
 
Similar Threads
Running compiled code
Use cmd and not an IDE.
'javac' is not recognized as an internal or external command,
Running Java Programs from the command prompt
Is this the place to ask installation questions?