|
From: Geoffrey S. K. <ge...@kn...> - 2007-09-13 10:29:09
|
On Sep 11, 2007, at 23:47, Frank Hu wrote:
> I'm trying to build version 7.2 on a Mac OS X 10.4.10 system. Got
> the following error message when doing "sh bin/make"
> [...]
> SchemeException: java.io.FileNotFoundException: path_to_jscheme-7.2/
> src:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
> Classes/.compatibility/src/jsint/version.txt (No such file or
> directory)
I found a way to build JScheme on Mac OS X 10.4.10.
I believe this fix should be valid for all platforms.
Geoffrey
In src/build/make.scm, I replaced:
--->8---snip--->8---
;;; Assumes a subdirectory is the only thing on classpath.
(define appDir (.getCanonicalFile
(.getParentFile
(.getCanonicalFile
(File. ($ "java.class.path"))))))
--->8---snip--->8---
with:
--->8---snip--->8---
;;; No longer assumes a subdirectory is the only thing on classpath.
;;; Now assumes first thing on classpath is what should be used.
(define appDir
(let* ((cp ($ "java.class.path"))
(i (.indexOf cp (System.getProperty "path.separator")))
(subdir (cond ((= i -1) cp)
((> i 0) (substring cp 0 i))
(else (error (string-append
"appDir: can't create File
object "
"from classpath "
"\"" cp "\"\n"))))))
(.getCanonicalFile (.getParentFile (.getCanonicalFile (File.
subdir))))))
--->8---snip--->8---
|