Le 11/09/2009 03:06, Jochen Theodorou a écrit : > Rémi Forax schrieb: > [...] > >> Here is how I compile on linux 32bits: >> >> - I first take the latest jdk binary build (b71) >> - I set-up the davinci vm like describe here: >> http://wikis.sun.com/display/mlvm/Building >> - But at the end instead of using the makefile which never works for me :) >> I use the shell commands described at the end of the README.txt >> http://hg.openjdk.java.net/mlvm/mlvm/file/tip/README.txt >> - and then in sources/hospot/make >> ALT_BOOTDIR=path_to_jdk7_binaries; make >> - After that, the VMs are >> client: >> hotspot/build/linux/export-linux-i586/jre/lib/i386/client >> server: >> hotspot/build/linux/export-linux-i586/jre/lib/i386/server >> fastdebug-client: >> hotspot/build/linux/export-linux-i586/fastdebug/jre/lib/i386/client >> fastdebug-server: >> hotspot/build/linux/export-linux-i586/fastdebug/jre/lib/i386/server >> and copy the one that interrest me into path_to_jdk7/jre/lib/i386/ >> And change path_to_jdk7/jre/lib/i386/jvm.cfg to add them >> -client IF_SERVER_CLASS -server >> -server KNOWN >> -davinci-client KNOWN >> -davinci-server KNOWN >> -debug-client KNOWN >> -debug-server KNOWN >> -hotspot ALIASED_TO -client >> -classic WARN >> -native ERROR >> -green ERROR >> > > till here all works. > > >> - After that, I prepare a jar extracted from the jdk containing java.dyn >> and sun.dyn, >> like this, in davinci/sources/jdk/src/share/classes: >> path_to_jdk7_binaries/bin/javac -J-Xmx1g -d /tmp/davinci_jsr292/ >> -sourcepath . java/dyn/*.java sun/dyn/*.java sun/dyn/*/*.java >> and >> cd /tmp/davinci_jsr292 >> jar cvfM ../jdk7-jsr292.jar java/dyn/* syn/dyn/* >> >> Basically, I've now an uptodate JDK7 patched to add JSR292 API. >> > this does not work, a class is missing. But you gave me the jar, so I > can continue >
Oups forget that. You need to include a linux/unix specific implementation of a NIO2 class. path_to_jdk7_binaries/bin/javac -J-Xmx1g -d /tmp/davinci_jsr292/ -sourcepath .:../../solaris/classes/ java/dyn/*.java sun/dyn/*.java sun/dyn/*/*.java > >> And to run the fidget example: >> /usr/jdk/jdk1.7.0/bin/java -debug-server >> -Xbootclasspath/p:/tmp/jdk7-jsr292.jar -XX:+UnlockExperimentalVMOptions >> -XX:+EnableInvokeDynamic FidgetDemo >> >> That's all, folks :) >> > I wish: > > OpenJDK Server VM warning: JSR 292 method handle code is mismatched to > this JVM. Disabling support. > hum, this means that you use a wrong VM or you don't patch the VM sources has it should be. > The FidgetDemo works with b71 out of the box, but with a newly compiled > hotspot it crashes with an internal error. > > What is b71 itself capable of? > It supports only interpreter mode and all classes must be in the bootstrap classpath. > bye Jochen cheers, Rémi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---
