Access denied on Windows7 64bit
Erik Joelsson
erik.joelsson at oracle.com
Tue Nov 20 05:52:43 PST 2012
I don't know how to solve this, but I can confirm that I'm using
tortoisehg and cygwin on a windows 7 x64 system and building
successfully with both old and new build system. We have seen different
issues on some machines concerning file permissions though. A bit of
googling led me to this page http://www.cygwin.com/cygwin-ug-net/ntsec.html
Maybe something to investigate?
/Erik
On 2012-11-20 14:14, Oti wrote:
> Kelly,
>
> thanks for the fast response!
> Wow, real file permissions - I should have thought of that …
>
> They look like this:
> $ ls -l
> ./langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif
> ----------+ 1 ohumbel None 2313 Nov 15 08:49
> ./langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif
>
> while on Ubuntu I see:
> $ ls -l
> ./langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif
> -rw-rw-r--. 1 rep rep 2313 Jul 21 2011
> ./langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif
>
>
> I believe Tortoise is the only hg on my system:
> $ python
> -bash: python: command not found
> $ which hg
> /cygdrive/c/Program Files/TortoiseHg/hg
>
>
> Changing the permissions as follows:
> ohumbel at WIN-B8PK3J3J70Q/cygdrive/c/OpenJDK/jdk8_tl/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/resources
> $ ls -la
> -rw-rw-r--+ 1 ohumbel None 2313 Nov 15 08:49 background.gif
> :
> -rw-rw-r--+ 1 ohumbel None 10701 Nov 15 08:49 titlebar.gif
>
> , I get an Access denied from another directory:
> java.io.FileNotFoundException:
> com\sun\tools\javac\services\javax.tools.JavaCompilerTool (Access is denied)
>
>
> In the archives I read that TortoiseHg solves some problems because it
> provides a hg.exe. That is the reason why I installed it.
> Is this still true?
> If yes: How can I tell Tortoise to preserve the file permissions?
>
> Oti.
>
>
> On Mon, Nov 19, 2012 at 8:47 PM, Kelly O'Hair<kelly.ohair at oracle.com>wrote:
>
>> Since this appears to be some kind of file permission issue, what does 'ls
>> -al' say on these files?
>>
>> Perhaps the problem is with the hg you are using?
>>
>> -kto
>>
>> On Nov 19, 2012, at 9:51 AM, Oti wrote:
>>
>>> Hi all,
>>>
>>> recently I joined the AdoptOpenJDK program and started to test the new
>>> build on Windows.
>>> You can find a list what I did here:
>>> http://java.net/projects/adoptopenjdk/pages/BuildWindows.
>>>
>>> The disabling of ASLR really helped: Before that I got a never ending
>>> hotspot build with 0% CPU load.
>>> Now hotspot builds just fine, thanks for the tip in
>>>
>> http://mail.openjdk.java.net/pipermail/build-dev/2012-February/005594.html
>> !
>>> What I am stuck with now is an Access denied stack trace.
>>> I can reproduce it as many times I want, like this:
>>>
>>>
>>> ohumbel at WIN-B8PK3J3J70Q ~
>>> $ cd /cygdrive/c/OpenJDK/jdk8_tl/common/makefiles/
>>>
>>> ohumbel at WIN-B8PK3J3J70Q /cygdrive/c/OpenJDK/jdk8_tl/common/makefiles
>>> $ make clean-langtools
>>> Cleaning langtools build artifacts ... done
>>>
>>> ohumbel at WIN-B8PK3J3J70Q /cygdrive/c/OpenJDK/jdk8_tl/common/makefiles
>>> $ make langtools-only
>>> Building OpenJDK for target 'langtools-only' in configuration
>>> 'windows-x86_64-normal-server-release
>>> '
>>>
>>> ## Starting langtools
>>> Compiling 2 files for BUILD_TOOLS
>>> Compiling 23 properties into resource bundles
>>> Compiling 673 files for BUILD_BOOTSTRAP_LANGTOOLS
>>> Creating langtools/dist/bootstrap/lib/javac.jar
>>> Compiling 676 files for BUILD_FULL_JAVAC
>>> Creating langtools/dist/lib/classes.jar
>>> java.io.FileNotFoundException:
>>> com\sun\tools\doclets\internal\toolkit\resources\background.gif (Access
>> is
>>> denied)
>>> at java.io.FileInputStream.open(Native Method)
>>> at java.io.FileInputStream.<init>(FileInputStream.java:138)
>>> at sun.tools.jar.Main.copy(Main.java:791)
>>> at sun.tools.jar.Main.addFile(Main.java:740)
>>> at sun.tools.jar.Main.update(Main.java:592)
>>> at sun.tools.jar.Main.run(Main.java:223)
>>> at sun.tools.jar.Main.main(Main.java:1177)
>>> BuildLangtools.gmk:186: recipe for target
>>>
>> `/cygdrive/c/OpenJDK/jdk8_tl/build/windows-x86_64-normal-server-release/langtools/dist/lib/classes.jar'
>>> failed
>>> make[1]: ***
>>>
>> [/cygdrive/c/OpenJDK/jdk8_tl/build/windows-x86_64-normal-server-release/langtools/dist/lib/classes.jar]
>>> Error 1
>>> /cygdrive/c/OpenJDK/jdk8_tl/common/makefiles//Main.gmk:75: recipe for
>>> target `langtools-only' failed
>>> make: *** [langtools-only] Error 2
>>>
>>>
>>> Interestingly, it is always the same background.gif which appears in the
>>> error message.
>>>> From the above mentioned mail thread I guess that this could have
>> something
>>> to to with Security Software (Anti-Virus, ...)
>>> I use Microsoft Security Essentials and
>>> - disabled all real time access
>>> - excluded the whole jdk folder
>>> - excluded the whole cygwin folder
>>> , but without any effect.
>>>
>>> Hopefully somebody on this list has a tip what I could try next.
>>>
>>> Thanks in advance, and best wishes,
>>> Oti.
>>>
>>>
>>> PS.
>>> I am running a VM inside VMware Fusion on a Macbook Air
>>
More information about the build-infra-dev
mailing list