tag:blogger.com,1999:blog-17889588.post113793927733264613..comments2024-03-13T07:14:55.283+01:00Comments on chem-bla-ics: Trouble running the CDK JUnit tests with Cacao and KaffeEgon Willighagenhttp://www.blogger.com/profile/07470952136305035540noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-17889588.post-1138567140445384912006-01-29T21:39:00.000+01:002006-01-29T21:39:00.000+01:00I had trouble getting JamVM running the tests, bec...I had trouble getting JamVM running the tests, because it did not pick up JAVA_HOME, and therefore I ant used gij to run the CDK JUnit tests. After talking to tashiro and man-di on #debian-java I wrote a patch that solved my problem:<BR/><BR/>--- jamvm-1.4.2/src/properties.c 2006-01-22 22:31:46.000000000 +0000<BR/>+++ jamvm-1.4.2_JAVAHOME_patch/src/properties.c 2006-01-29 20:16:32.000000000 +0000<BR/>@@ -116,6 +116,9 @@<BR/> void addDefaultProperties(Object *properties) {<BR/> struct utsname info;<BR/> <BR/>+ char *java_home;<BR/>+ java_home = getenv("JAVA_HOME");<BR/>+<BR/> uname(&info);<BR/> setProperty(properties, "java.vm.name", "JamVM");<BR/> setProperty(properties, "java.vm.version", VERSION);<BR/>@@ -125,7 +128,7 @@<BR/> setProperty(properties, "java.version", "1.4.2");<BR/> setProperty(properties, "java.vendor", "GNU Classpath");<BR/> setProperty(properties, "java.vendor.url", "http://www.classpath.org");<BR/>- setProperty(properties, "java.home", INSTALL_DIR);<BR/>+ setProperty(properties, "java.home", java_home ? java_home : INSTALL_DIR);<BR/> setProperty(properties, "java.specification.version", "1.4");<BR/> setProperty(properties, "java.specification.vendor", "Sun Microsystems, Inc.");<BR/> setProperty(properties, "java.specification.name", "Java Platform API Specification");Egon Willighagenhttps://www.blogger.com/profile/07470952136305035540noreply@blogger.com