OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [pr29812.java] - Rev 767

Go to most recent revision | Compare with Previous | Blame | View Log

import java.io.File;
import java.net.*;
import java.lang.reflect.Method;
 
public class pr29812
{
  static {
    System.loadLibrary("pr29812");
  }
 
  public static native void baseN();
 
  public static void main(String[] args) throws Throwable
  {
    // Make sure JNI environment is initialized.
    baseN();
 
    File jar = new File(args[0]);
    URL u = jar.toURL();
    URLClassLoader uc = new URLClassLoader(new URL[] { u });
    Class k = uc.loadClass("pr29812_injar");
    Method m = k.getMethod("doit", (Class[]) null);
    m.invoke(null, (Object[]) null);
  }
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.