JCreator集成开发环境:程序可以编译但不能运行,在命令提示符下工作

JCreator集成开发环境:程序可以编译但不能运行,在命令提示符下工作

最近购买了一台新电脑,试图恢复开发Java。我使用的IDE之一,JCreator,已经开始向我发出错误。我在新机器上卸载并重新安装了几次Java,以使一切正常工作。

我有一个语法正确的程序,编译得很好,但每当我尝试从IDE中运行该程序时,它都会显示一条错误消息。它的内容如下:

代码语言:javascript运行复制--------------------Configuration: --------------------

Usage: java [-options] class [args...]

(to execute a class)

or java [-options] -jar jarfile [args...]

(to execute a jar file)

where options include:

-d32 use a 32-bit data model if available

-d64 use a 64-bit data model if available

-server to select the "server" VM

-hotspot is a synonym for the "server" VM [deprecated]

The default VM is server.

-cp

-classpath

A ; separated list of directories, JAR archives,

and ZIP archives to search for class files.

-D=

set a system property

-verbose[:class|gc|jni]

enable verbose output

-version print product version and exit

-version:

require the specified version to run

-showversion print product version and continue

-jre-restrict-search | -no-jre-restrict-search

include/exclude user private JREs in the version search

-? -help print this help message

-X print help on non-standard options

-ea[:...|:]

-enableassertions[:...|:]

enable assertions with specified granularity

-da[:...|:]

-disableassertions[:...|:]

disable assertions with specified granularity

-esa | -enablesystemassertions

enable system assertions

-dsa | -disablesystemassertions

disable system assertions

-agentlib:[=]

load native agent library , e.g. -agentlib:hprof

see also, -agentlib:jdwp=help and -agentlib:hprof=help

-agentpath:[=]

load native agent library by full pathname

-javaagent:[=]

load Java programming language agent, see java.lang.instrument

-splash:

show splash screen with specified image

See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

Process completed.我假设这仅仅是关于如何挂接运行时环境的说明。

最重要的是,下面的所有运行时设置:

配置>选项> JDK工具>运行应用程序

在我的旧机器上是完全相同的,一切都运行得很好。我知道这肯定是一个JCreator问题,因为我可以从命令行很好地编译所有东西,然后运行它。

javac和java命令可以在命令行中工作,只有这一点在JCreator中不能工作。

对解决这个问题的最佳方法有什么想法吗?

相关拼贴

365bet备用服务器 题字书法字典在线查询

题字书法字典在线查询

📅 07-17 👀 9162
365bet备用服务器 八村塁确定缺席男篮世界杯 将专注于自由市场
365bet备用服务器 京东金融上开炒股账户的避坑指南