简体   繁体   English

Maven Tycho插件中的编译错误

[英]Compilation error in maven tycho plugin

 File logFile = Platform.getLogFileLocation().toFile();
 ^^^^
 File cannot be resolved to a type

 File logFile = Platform.getLogFileLocation().toFile();
 ^^^^^^^^
 Platform cannot be resolved
 2 problems (2 errors)

I am experiencing errors on building my project. 我在构建项目时遇到错误。 As above, I am using the Platform class to get the log file eclipse is making. 如上所述,我正在使用Platform类来获取Eclipse正在制作的日志文件。 So, my problem is maven cannot resolve org.eclipse.runtime jar. 所以,我的问题是Maven无法解析org.eclipse.runtime jar。 I tried installing the jar in my local repo but it is still failing. 我尝试将jar安装到本地存储库中,但仍然失败。

Any idea's guy? 有什么主意吗?

  • A total beginner. 完全是新手。

org.eclipse.core.runtime.Platform.getLogFileLocation().toFile() returns an instance of java.io.File (standard JDK class). org.eclipse.core.runtime.Platform.getLogFileLocation().toFile()返回java.io.File的实例(标准JDK类)。 Make sure you import the class in your code. 确保在代码中导入该类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM