我正在使用gradle作为JavaFX插件.即使在建立和运行分发之后的所有内容之后,一切都运行良好,除了一个类:CloseableHttpClient
出于几个目的,我创建了以下对象:
CloseableHttpClient client = HttpClients.createDefault();
Run Code Online (Sandbox Code Playgroud)
在IDE中运行程序没问题,一切正常.但是如果我构建并尝试运行.exe-File,我会得到以下Throwable-StackTrace:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:955)
at org.apache.http.impl.client.HttpClients.createDefault(HttpClients.java:58)
at ch.itcb.tools.lom.util.JsonSimpleUtil.http(JsonSimpleUtil.java:29)...
Run Code Online (Sandbox Code Playgroud)
我真的不明白.怎么可能只是这个班级找不到,但我所有的其他班级呢?
我的build.gradle文件:
apply plugin: 'java'
apply plugin: 'eclipse'
apply from: 'javafx.plugin'
sourceCompatibility = 1.8
version = '0.1'
jar {
manifest {
attributes 'Implementation-Title': 'LogoffManager',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar'])
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'org.apache.httpcomponents:httpclient:4.5.1'
compile 'com.googlecode.json-simple:json-simple:1.1'
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: …Run Code Online (Sandbox Code Playgroud) 我已经让我的.vimrc以非常酷的方式满足了我的需求,而且我已经习惯了.这就是为什么当我的不同快捷方式和绑定不像git commit vim那样工作时,我总是感到困惑.
有没有办法使用我的普通vim配置?为什么这与普通的vim有所不同?这不使用我当地的vim编辑器吗?
根据这个问题,我已经将vim设置为标准编辑器.
谢谢!
更新
我使用的是Mac OS X Sierra.
:version在git vim里面返回正确的文件'$HOME/.vimrc'.
更新2
我其实是在使用Neovim.但我将VISUAL设置为'nvim',但它仍然不起作用.