https://github.com/redhat-developer/vscode-java/wiki/%22Classpath-is-incomplete%22-warning
[Java] The declared package "reverseString" does not match the expected package ""
安装插件: Eclipse New Java Project
Usage
- Press
Cmd+Shift+P
(Mac) orCtrl+Shift+P
(Windows) and typeNew Java Project
and hit enter. - It will prompt for a project name and the Eclipse java build tool to use.
Requirements
- None that I know of yet. It may need the eclipse build tools, but I have not been able to determine whether you do or not.
elicpse引入工程,对buildpath进行设置。尤其是jdk的位置。
最后的classpath文件可能为:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>