I can't compile any class in Windows 7 C drive - Super User


i've installed windows 7 , want compile class in c drive, whenever try compile class i'm getting error(the following java):

  unknown.java:1: error while writing          unknown: unknown.class (a required          privilege not held client)           class unknown           ^ 1 error 

how can enable windows 7 compile class in c drive, can in other drive?

this can happen if permissions incorrectly set c: drive.

you can take ownership of drive so:

  • right-click c: drive , click properties.
  • go security tab.
  • click advanced click owner tab.
  • make note of current owner if want restore later in case
  • in list of names select user name, or click administrators group.
  • click edit , check replace existing inheritable permissions on descendants inheritable permissions object apply recursively.
  • click ok, , click yes message:

this replace explicitly defined permissions on descendants of object inheritable permissions c-drive (c:). wish continue?

  • wait until permissions replaced, click on ok.

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User