在shell中运行LoadFile "f:/anaconda_3_32_bit/python37.dll"
LoadModule wsgi_module "f:/anaconda_3_32_bit/lib/sitepackages/mod_wsgi/server/mod_wsgi.cp37-win32.pyd"
WSGIPythonHome "f:/anaconda_3_32_bit"
时,控制台输出为:
lein
我无法在线程上应用建议的解决方案
cannot run lein script。
命令Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.core$fn__8478.invokeStatic(core.clj:7060)
at clojure.core$fn__8478.invoke(core.clj:7055)
at clojure.core__init.load(Unknown Source)
at clojure.core__init.<clinit>(Unknown Source)
at java.lang.Class.forName0(java.base@9-internal/Native Method)
at java.lang.Class.forName(java.base@9-internal/Class.java:378)
at clojure.lang.RT.classForName(RT.java:2207)
at clojure.lang.RT.classForName(RT.java:2216)
at clojure.lang.RT.loadClassForName(RT.java:2235)
at clojure.lang.RT.load(RT.java:453)
at clojure.lang.RT.load(RT.java:428)
at clojure.lang.RT.doInit(RT.java:471)
at clojure.lang.RT.<clinit>(RT.java:338)
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.NoSuchMethodException: no such method:java.lang.reflect.Method.canAccess(Object)boolean/invokeVirtual
at java.lang.invoke.MemberName.makeAccessException(java.base@9- internal/MemberName.java:929)
at java.lang.invoke.MemberName$Factory.resolveOrFail(java.base@9-internal/MemberName.java:1046)
at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(java.base@9-internal/MethodHandles.java:1683)
at java.lang.invoke.MethodHandles$Lookup.findVirtual(java.base@9-internal/MethodHandles.java:939)
at clojure.lang.Reflector.<clinit>(Reflector.java:38)
... 14 more
Caused by: java.lang.NoSuchMethodError:java.lang.reflect.Method.canAccess(Ljava/lang/Object;)Z
at java.lang.invoke.MethodHandleNatives.resolve(java.base@9-internal/Native Method)
at java.lang.invoke.MemberName$Factory.resolve(java.base@9-internal/MemberName.java:1018)
at java.lang.invoke.MemberName$Factory.resolveOrFail(java.base@9-internal/MemberName.java:1043)
... 17 more
输出相同。
使用ubuntu 16.04
lein version
输出:
update-java-alternatives -l
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
java-1.9.0-openjdk-amd64 1091 /usr/lib/jvm/java-1.9.0-openjdk-amd64
输出:
java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
输出:
$PATH
实际上尝试安装Lighttable编辑器...大声笑
答案 0 :(得分:0)
问题是openjdk version "9-internal"
您必须安装默认的JRE / JDK。
清除/删除以前的JRE / JDK安装。 更新包索引:
sudo apt-get update
接下来,安装Java。具体来说,此命令将安装Java Runtime Environment(JRE):
sudo apt-get install default-jre
您可以使用以下命令安装JDK:
sudo apt-get install default-jdk
命令java -version
应该输出如下内容:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
仅此而已。