vscode java - 尝试设置项目

时间:2017-10-07 00:39:02

标签: java eclipse visual-studio-code

我在Windows上安装了vscode。

安装Redhat扩展 - 将java.home设置变量设置为我的JDK8文件夹。

我有一个eclipse项目,想在相应的文件夹中编译文件。

有.classpath文件,还有.project和.settings文件夹。

.classpath文件包含输出文件夹的条目。

我正在看跟踪消息 - 我认为它正在做某事(我得到java警告)......但我没有看到输出类文件。

当我在编辑器中选择一个java文件时 - 我得到以下输出:

如前所述,我相信我已正确设置java.home var。

[Trace - 7:02:28 AM] Sending request 'initialize - (0)'.
[Trace - 7:02:30 AM] Received response 'initialize - (0)' in 1995ms.
[Trace - 7:02:30 AM] Sending notification 'initialized'.
[Trace - 7:02:30 AM] Sending notification 'workspace/didChangeConfiguration'.
[Trace - 7:02:30 AM] Sending notification 'textDocument/didOpen'.
[Trace - 7:02:30 AM] Sending request 'textDocument/codeAction - (1)'.
[Trace - 7:02:30 AM] Received notification 'language/status'.
[Trace - 7:02:30 AM] Received notification 'language/status'.
[Trace - 7:02:30 AM] Received notification 'language/status'.
[Trace - 7:02:32 AM] Received request 'client/registerCapability - (1)'.
[Trace - 7:02:32 AM] Sending response 'client/registerCapability - (1)'. Processing request took 1ms
[Trace - 7:02:32 AM] Received notification 'language/status'.
[Trace - 7:02:33 AM] Received response 'textDocument/codeAction - (1)' in 3339ms.
[Trace - 7:02:33 AM] Received notification 'textDocument/publishDiagnostics'.

我在根文件夹中看到了这些Eclipse文件 - 以及我的java文件

.classpath - 此处列出的大多数包含的项目文件和库。

的.project

.settings文件夹 - 只有1个org.eclipse.jdt.core.prefs文件

0 个答案:

没有答案