hello i have written a program and i am trying to save it C:\Program Files\Java\jdk1.7.0\bin at this location but when i'm trying to save it it asks following error
You dont have permission to save in this location. Conatct administrator to obtain the permission
and asks Would you like to save in the My Documents folder instead?
please help. nothig is happening.
and when we try to access bin folder through cmd prompt and give a dir command then it does not show add.java file saved.
I'm using windows 7 home basic edition. In C drive its showing two different fo;ders named Program Files and Program Files(x86).
I think that error is fairly self-explanatory. Your user account does not have permission to save a file in that directory - and that is a good thing. You DON'T WANT to save your java files (or your class files) in the JDK's bin directory. That directory is for the JDK code.
Make your own directory, and save your files there. c:\myJava might be a good place to start.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joined: Oct 13, 2005
Fred is right. I already told you Program Files is an inappropriate place to save things. Look at this older post.