Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Access restriction: The type 'VirtualMachine' is not API (restriction on classpath entry

I can try to whip something up.

It's from this library: https://github.com/earcam/com.sun.tools.attach
basically wrapping the package from openjdk.
I'm using p2-maven-plugin to get it into the build, the jar is exporting every package in there.
Maybe that additional info already helps understand the problem.

in the meantime I'll try a small repro
 

On Wed, May 5, 2021 at 2:49 PM Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:
Can you provide a reproducer that shows the problem?

Maybe 'VirtualMachine' is in a package that is not exported by the bundle.

Am 05.05.21 um 14:41 schrieb Reinhold Degenfellner:
> Hi all,
>
> I'm trying to compile with Java 11, Tycho 2.3.0, target: 8, and release: 8.
>
> I get the following error:
>
> Access restriction: The type 'VirtualMachine' is not API (restriction on
> classpath entry
> 'C:\Users\r.degenfellner\.m2\repository\p2\osgi\bundle\io.earcam.wrapped.com.sun.tools.attach\1.8.0.jdk8u172-b11\io.earcam.wrapped.com.sun.tools.attach-1.8.0.jdk8u172-b11.jar')
>
> I tried:
>
> <compilerArgs>
> <arg>-warn:none</arg>
> <arg>-err:none</arg>
> </compilerArgs>
>
> Is there anyway I can get this to compile?
>
> thx
>
> Reinhold
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user

Back to the top