构造函数ProcessBuilder(String,String,String)未定义 [英] The constructor ProcessBuilder(String, String, String) is undefined

查看:635
本文介绍了构造函数ProcessBuilder(String,String,String)未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在同一个IDE eclipse中我有两个项目都有

In this same IDE eclipse i have two projects both have

ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c", "command");

但在项目一中它没有显示编译错误,但在项目二中它显示编译错误两个JRE系统库是jre1.8.0_31

but in project one it is not showing compile error but in project two it is showing compile error both JRE System Library is jre1.8.0_31

编译错误是这篇文章的主题标题,即。

The compile error is the subject-heading of this post ie.


构造函数ProcessBuilder(String,String,String)未定义

The constructor ProcessBuilder(String, String, String) is undefined

请帮帮忙?

推荐答案

对于我的日食,我右键点击了我的项目;去了物业;选择java编译器;我的合规水平停留在1.4;所以我把它提升到了最新的 - 1.8&它之后起作用了。

For me in eclipse I right clicked on my project; went to properties; chose java compiler; My compliance level was stuck at 1.4; so I bumped it up to the latest - 1.8 & it worked after that.

这篇关于构造函数ProcessBuilder(String,String,String)未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆