From: Joseph T. <jj...@ed...> - 2005-02-22 23:19:39
|
A) These are in reverse order, but the transcript below is so long I thought this might get lost. After B) I tried getting the current codebase from CVS and building it. I'm sure this marks me as not being a true-believer, but wouldn't a Makefile or a build.xml be perhaps less exciting, but ultimately more useful ? Suffice to say I couldn't get it to build, though I got very close once I abandoned the default method and built an Eclipse project for it. build.CompilingLoadlet uses internal sun.* classes which apparently didn't make it to JDK 1.5, which is of course why you're not supposed to use them. There are also a lot of static method calls being made as if they weren't static, which is odd. B) When I try to load many of the files in the elf directory, I get the typical result below. Ideas? JScheme 7.1 (8/5/04 12:39 PM) http://jscheme.sourceforge.net >(load "elf/basic.scm") ** WARNING: Error during load (lineno 23): jsint.BacktraceException[ (.append sb (U.stringify (car args )#f )) args = ("\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to desc... sb = loop = (lambda !{}~1 (args sb)...) args= = ("\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to desc... sb= = args = ("\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to desc... ==================================== SchemeException: Bad method application from a private class: , "(java.lang.IllegalAccessException: Class jsint.Invoke can not access a member of class java.lang.AbstractStringBuilder with modifiers \"public\" public java.lang.AbstractStringBuilder java.lang.AbstractStringBuilder.append(java.lang.String) #(\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to describe private\nfields of object x. \n\nExample:\n> (describe '(1 2 3))\nan insta... (.append sb (U.stringify (car args )#f )) args = ("\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to desc... sb = loop = (lambda !{}~1 (args sb)...) args= = ("\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to desc... sb= = args = ("\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to desc... ==================================== SchemeException: Bad method application from a private class: , "(java.lang.IllegalAccessException: Class jsint.Invoke can not access a member of class java.lang.AbstractStringBuilder with modifiers \"public\" public java.lang.AbstractStringBuilder java.lang.AbstractStringBuilder.append(java.lang.String) #(\nExample of using import and define-method. \n(describe x) uses JDK 1.2 AccessibleObject to describe private\nfields of object x. \n\nExample:\n> (describe '(1 2 3))\nan instance of jsint.Pair\n first: 1\n rest: (2 3)\n()\n\n(describe) calls the generic function (describe-object) which returns\na string.\n\nDescribing a class will show it constructors, fields, and methods.\nDescribing a procedure or generic function will display its definition.\n\n(whoCalls symbol) returns a list of the names of the procedures\nthat call the procedure named symbol.\nExample:\n> (whoCalls 'short-toString)\n(describe-object)\n))" ** WARNING: Error during load (lineno 46): jsint.BacktraceException[ (.append sb (U.stringify (car args )#f )) args = ("\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation fro... sb = loop = (lambda !{}~1 (args sb)...) args= = ("\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation fro... sb= = args = ("\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation fro... ==================================== SchemeException: Bad method application from a private class: , "(java.lang.IllegalAccessException: Class jsint.Invoke can not access a member of class java.lang.AbstractStringBuilder with modifiers \"public\" public java.lang.AbstractStringBuilder java.lang.AbstractStringBuilder.append(java.lang.String) #(\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation from scheme to the SQL equivalent.\n\nAssume data is a table (in SQL) or a collecti... (.append sb (U.stringify (car args )#f )) args = ("\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation fro... sb = loop = (lambda !{}~1 (args sb)...) args= = ("\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation fro... sb= = args = ("\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation fro... ==================================== SchemeException: Bad method application from a private class: , "(java.lang.IllegalAccessException: Class jsint.Invoke can not access a member of class java.lang.AbstractStringBuilder with modifiers \"public\" public java.lang.AbstractStringBuilder java.lang.AbstractStringBuilder.append(java.lang.String) #(\n\nThese utilities let you play with data in a somewhat relational way.\nHere's a translation from scheme to the SQL equivalent.\n\nAssume data is a table (in SQL) or a collection in JScheme.\n\n(filter p data) select * from data where p\n\n(map* (project x y z) data) select x, y, z from data\n\n(sort data (comparator < x)) select * from data order by x\n\n(map* (project (unique car) (count cadr))\n (group-by (project x y) data)\n select unique(x), count(y) from data\n\t\t\t group by x, y\n\nGroup-by example - print the names of methods that are defined in both\nJButton and JFrame classes:\n\n (for-each\n print\n (map (unique .getName)\n\t(filter (lambda (x) (> (length x) 1))\n\t\... ** WARNING: Error during load (lineno 167): jsint.BacktraceException[ (.append sb (U.stringify (car args )#f )) args = ("\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.sch... sb = loop = (lambda !{}~1 (args sb)...) args= = ("\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.sch... sb= = args = ("\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.sch... ==================================== SchemeException: Bad method application from a private class: , "(java.lang.IllegalAccessException: Class jsint.Invoke can not access a member of class java.lang.AbstractStringBuilder with modifiers \"public\" public java.lang.AbstractStringBuilder java.lang.AbstractStringBuilder.append(java.lang.String) #(\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.scheme.com/tspl2d/examples.html#g2335\nThe input list is copied once.\n\nThe merge ... (.append sb (U.stringify (car args )#f )) args = ("\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.sch... sb = loop = (lambda !{}~1 (args sb)...) args= = ("\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.sch... sb= = args = ("\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.sch... ==================================== SchemeException: Bad method application from a private class: , "(java.lang.IllegalAccessException: Class jsint.Invoke can not access a member of class java.lang.AbstractStringBuilder with modifiers \"public\" public java.lang.AbstractStringBuilder java.lang.AbstractStringBuilder.append(java.lang.String) #(\nThis is a very nice merge sort from Dybvig's The Scheme language\nsecond edition: http://www.scheme.com/tspl2d/examples.html#g2335\nThe input list is copied once.\n\nThe merge sorting algorithm works quite simply. The input list is\nsplit into two approximately equal sublists. These sublists are sorted\nrecursively, yielding two sorted lists. The sorted lists are then\nmerged to form a single sorted list. The base cases for the recursion\nare lists of one and two elements, which can be sorted trivially.\n))" #t > J. Toman |