我正在安装Eclipse错误,我收到此错误
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
...
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
Run Code Online (Sandbox Code Playgroud)
java.base/java.lang.Thread.run上的org.eclipse.osgi.internal.framework.EquinoxBundle $ SystemBundle $ EquinoxSystemModule $ 1.run(EquinoxBundle.java:165)(未知来源)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
Run Code Online (Sandbox Code Playgroud)
我在系统变量中将"Path"设置为系统变量中的"C:\ Program Files\Java\jdk-10.0.1\bin; C:\ Program Files\Java\jre-10.0.1\bin"和"CLASSPATH" as"C:\ Program Files\Java\jdk-10.0.1\bin"
我在Maven构建期间遇到此错误。
无法在项目dl4j上执行目标org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade(默认)-示例:创建阴影jar时出错:无效的LOC标头(错误的签名)-> [帮助1] [错误]
这是我的pom.xml文件。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>${shadedClassifier}</shadedClassifierName>
<createDependencyReducedPom>true</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>org/datanucleus/**</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我试图多次删除jar文件,但似乎无法正常工作。
我正在尝试在 Ubuntu WSL2 中运行 VSCode。
\n当我运行时code .,zsh 无法找到 VSCode。\n我已经安装了Remote - WSL插件,并且我能够从 Windows 打开我的 Ubuntu 实例。我也想从 Ubuntu 终端实现它。
ayman@DESKTOP \xee\x82\xb0 ~ \xee\x82\xb0 code .\nzsh: command not found: code\nRun Code Online (Sandbox Code Playgroud)\n我努力了wsl --shutdown然后重新安装 Remote-WSL 插件,但仍然不起作用。
zsh从终端运行 VSCode是否需要配置?如果可以,需要什么配置?
eclipse ×1
eclipse-neon ×1
installation ×1
java ×1
maven ×1
pom.xml ×1
windows-subsystem-for-linux ×1
wsl-2 ×1
zsh ×1