我使用的是 Windows 7 64 位、light table 0.3.9
和 lein 2.2.1
,但是
我从 Light Table 连接到 Overtone 时遇到问题。
clojure.lang.Compiler$CompilerException:
java.lang.ClassNotFoundException: overtone.live
最佳答案
出于好奇,我安装了 JDK 7
和lein 2.1.2
在我的 Windows 笔记本电脑上并下载 light table 0.3.9
.
首先,我使用 lein.bat new insane-noises
创建了新的 lein 项目命令。
然后,我打开light table ide并添加insane-noises
工作区目录。
然后,我编辑了我的 project.clj
文件设置正确的依赖关系:
(defproject insane-noises "0.1.0-SNAPSHOT"
:dependencies [ [org.clojure/clojure "1.4.0"]
[overtone "0.8.1"]])
然后,我编辑了我的 core.clj
文件:
(ns insane-noises.core
(:use overtone.live))
(demo (sin-osc))
当我尝试评估(demo (sin-osc))
时直接从光表编辑器中下载行,它下载了所有依赖项并播放了噪音。
最后,我尝试了灯台instarepl
:
(use 'overtone.live)
(demo (sin-osc))
它又发出同样的声音。
因此,我在 x64 Windows 7 中使用带有 light table ide 的泛音没有遇到任何问题。
检查您的依赖关系。可能您忘记添加overtone
依赖于您的project.clj
.
关于clojure - 如何通过 Light Table IDE 连接 Overtone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15717182/