> On 2011-08-19 18:27:36, Gabe Black wrote: > > It looks like it, but if I don't want to (or can't) build the java parts, > > that's not pulled in automatically, right? If somebody needs the C parts > > but doesn't have java set up, we want the C parts to still work. I think > > you have this covered, but it seemed like a good idea to double check.
yea, no problems if you make it without JDK_PATH set and don't try to make gem5OpJni.jar or libgem5OpJni.so (which aren't made by default) - Ali ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.m5sim.org/r/831/#review1468 ----------------------------------------------------------- On 2011-08-19 15:27:51, Ali Saidi wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviews.m5sim.org/r/831/ > ----------------------------------------------------------- > > (Updated 2011-08-19 15:27:51) > > > Review request for Default, Ali Saidi, Gabe Black, Steve Reinhardt, and > Nathan Binkert. > > > Summary > ------- > > gem5ops: Implement Java JNI for gem5Ops > > These ops allow gem5 ops to be called from within java programs like the > following: > import jni.gem5Op; > > public class HelloWorld { > > public static void main(String[] args) { > gem5Op gem5 = new gem5Op(); > System.out.println("Rpns0:" + gem5.rpns()); > System.out.println("Rpns1:" + gem5.rpns()); > } > > static { > System.loadLibrary("gem5OpJni"); > } > } > > When building you need to make sure classpath include gem5OpJni.jar: > javac -classpath $CLASSPATH:/path/to/gem5OpJni.jar HelloWorld.java > > and when running you need to make sure both the java and library path are set: > java -classpath $CLASSPATH:/path/to/gem5OpJni.jar > -Djava.library.path=/path/to/libgem5OpJni.so HelloWorld > > > Diffs > ----- > > util/m5/Makefile.arm 1f95c9a0bb2f > util/m5/jni/gem5Op.java PRE-CREATION > util/m5/jni_gem5Op.c PRE-CREATION > > Diff: http://reviews.m5sim.org/r/831/diff > > > Testing > ------- > > > Thanks, > > Ali > > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
