Importing external classes

Curt Albert falbert9 at vt.edu
Wed Jan 15 09:22:30 PST 2014


I am wanting to import a package from external project into one of my
substitutions in com.oracle.graal.replacements .  I was using Netbeans to
compile it and I added the library in Netbeans so it will compile correctly
but when I try and run mx vm I get the error:

[thread:1] scope:
  [thread:1] scope: RegisterReplacements
    [thread:1] scope: RegisterReplacements.InterceptException
    Exception occurred in scope: RegisterReplacements.InterceptException
    Context obj java.lang.NoClassDefFoundError: com/amd/aparapi/Kernel
    Context obj DebugDumpScope[RegisterReplacements]
java.lang.NoClassDefFoundError: com/amd/aparapi/Kernel
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
at java.lang.Class.getDeclaredMethods(Class.java:1845)
at
com.oracle.graal.replacements.ReplacementsImpl.registerSubstitutions(ReplacementsImpl.java:117)
at
com.oracle.graal.replacements.GraalMethodSubstitutions.registerReplacements(GraalMethodSubstitutions.java:54)
at
com.oracle.graal.hotspot.bridge.VMToCompilerImpl$2.run(VMToCompilerImpl.java:203)
at
com.oracle.graal.debug.internal.DebugScope.executeScope(DebugScope.java:256)
at com.oracle.graal.debug.internal.DebugScope.scope(DebugScope.java:243)
at com.oracle.graal.debug.Debug.scope(Debug.java:139)
at
com.oracle.graal.hotspot.bridge.VMToCompilerImpl.startCompiler(VMToCompilerImpl.java:197)


Also when I try to build with mx build I get the error that the package I
am trying to import does not exist.

How can I add the external package so that mx can find it?

Thanks,
Curt Albert


More information about the graal-dev mailing list