[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [tycho-user] Access restriction: The type WindowsLookAndFeel is not accessible due to restriction on classpath entry C:\Program Files\Java\jdk1.6.0_20\jre\lib\rt.jar
|
- From: Barrie Treloar <baerrach@xxxxxxxxx>
- Date: Wed, 18 Apr 2012 17:21:51 +0930
- Delivered-to: tycho-user@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/r6ldVfbKLmnQ7y9ul0EpPmsloc7KyoCxQkjkfZroyU=; b=Wl9ay2777phncgD0lXGDrPJBT2HcykMeGyDfxmbT8XMQqj6NtB1/1qJ8aFS3Eq04xM FluFvo/1YFK0nQ0l4DHqqIg23eOE4e7VZzLIA/JM+2XhBp3KQNSGsZ2rxjzJWQLzNdoX ppxsr0vojVztpjzYTnUA7AqT3APa/fD4mp0Ypt4xsCMClQAMEwCXEoQzOebUIzZFdTri SX0IwgiTBsjSrFh3oolwC4tdK5i9Kg8nw2JG6TG5I1M5oHstKQgtpH1SXJpB0OCqKSnF 67lvyWeQEEPpZAkm8yQS4WtN2oRFcztuOGW7I4+ohKbsGsC7YUV2A/DHbij4lm2bqcZC Cd5Q==
On Wed, Apr 18, 2012 at 5:00 PM, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
> the docs are wrong.
> compilerArgument will work without fork=true
Ok, I couldn't get this to work.
<configuration>
<compilerArgument>-warn:-forbidden</compilerArgument>
</configuration>
(even through in discouraged as well)
As per http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_batch_compiler.htm
And -X wasn't giving me any information about passing these options
down into the compiler.
I eventually traced it to
org.eclipse.tycho.compiler.jdt.JDTCompiler compileInProcess()
compiler.options.put(CompilerOptions.OPTION_ReportForbiddenReference,
CompilerOptions.ERROR);
So there was no way for me to turn this option off.
Hence my workaround.
> Note that com.sun classes are VM vendor specific
Yeah, we are in a controlled environment with no public deployments.
These hack are necessary to work with third party tooling that doesn't
really work well with Java.