クラスをgradleスクリプトにロードするのに問題があります。このコードを実行すると:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath( group:"xerces", name:'xercesImpl', version:'2.9.1')
}
}
task hello {
doLast {
println 'Hello world!'
Class testClass = Class.forName("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl")
assert testClass: "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found"
println "found"
}
}
「gradlehello」を実行すると、これが発生します:java.lang.ClassNotFoundException:org.apache.xerces.jaxp.DocumentBuilderFactoryImpl "
Jaxpの実装の問題が疑われますが、jaxpがどのように機能するかについてはよくわかりません。
助けてくれてありがとう