Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c-only 0.7.0 maven artifact tries to find cpp class. #79

Open
Zubnix opened this issue Oct 6, 2015 · 0 comments
Open

c-only 0.7.0 maven artifact tries to find cpp class. #79

Zubnix opened this issue Oct 6, 2015 · 0 comments

Comments

@Zubnix
Copy link

Zubnix commented Oct 6, 2015

When using the c-only maven artifact, library initialization fails.

INFO: Registering type org.freedesktop.wayland.util.bridj.WaylandUtilLibrary
Exception in thread "main" java.lang.NoClassDefFoundError: org/bridj/cpp/CPPType
    at org.bridj.StructFieldDeclaration.<init>(StructFieldDeclaration.java:48)
    at org.bridj.StructFieldDeclaration.fromMember(StructFieldDeclaration.java:129)
    at org.bridj.StructFieldDeclaration.fromGetter(StructFieldDeclaration.java:121)
    at org.bridj.StructFieldDeclaration.listFields(StructFieldDeclaration.java:80)
    at org.bridj.StructUtils.computeStructLayout(StructUtils.java:225)
    at org.bridj.StructDescription.build(StructDescription.java:160)
    at org.bridj.StructDescription.getStructSize(StructDescription.java:171)
    at org.bridj.CommonPointerIOs$StructPointerIO.computeTargetSize(CommonPointerIOs.java:92)
    at org.bridj.CommonPointerIOs$NativeObjectPointerIO.getTargetSize(CommonPointerIOs.java:61)
    at org.bridj.Pointer.getTargetSizeToAllocateArrayOrThrow(Pointer.java:2074)
    at org.bridj.Pointer.allocateArray(Pointer.java:2546)
    at org.bridj.Pointer.allocateArray(Pointer.java:2670)
    at org.bridj.Pointer.allocateArray(Pointer.java:2655)
    at org.freedesktop.wayland.util.Arguments.create(Arguments.java:43)
    at org.freedesktop.wayland.client.WlDisplayProxy.getRegistry(WlDisplayProxy.java:133)
    at examples.Display.<init>(Display.java:48)
    at examples.SimpleShm.main(SimpleShm.java:30)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.lang.ClassNotFoundException: org.bridj.cpp.CPPType
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 22 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant