Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to save a program

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richie need help again am getting <Unexpected error, contact your administrator> error again while saving a program
 
Campbell Ritchie
Sheriff
Posts: 48404
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a new question unrelated to the original thread, so I thought it deserved a thread of its own.

Please supply more details. What sort of computer and OS are you using? Where are you trying to save your work? I hope not in Program Files, which is an inappropriate location for your own work.
 
Matthew Brown
Bartender
Posts: 4565
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell's your administrator? Cool.
 
Campbell Ritchie
Sheriff
Posts: 48404
56
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not me, but Richie. I've known him for over twenty years.
 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
please help
 
fred rosenberger
lowercase baba
Bartender
Posts: 12086
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Posts: 48404
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fred is right. I already told you Program Files is an inappropriate place to save things. Look at this older post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic