在自学java,第一个程序就被Jcreator这编译器郁闷到了,我有eclipse,但是听朋友说小程序还是JCreator方便,可是第一个程序就郁闷了...他总显示
程序源码就是helloworld,肯定是没问题的
我用eclipse能成功,就是用Jcreator出现这个,我已经baidu了半个小时了,没折了,请教一下各位大侠,有时间的话.麻烦帮我解答一下,谢谢
程序源码就是helloworld,肯定是没问题的
我用eclipse能成功,就是用Jcreator出现这个,我已经baidu了半个小时了,没折了,请教一下各位大侠,有时间的话.麻烦帮我解答一下,谢谢
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
编译通过,运行的时候小黑屏出现的
1 你改回用Eclipse
2 你自己去找运行参数
3 等其它的朋友
就是一点麻烦啊,初学要写很多简单的小程序,可是Eclipse新建一个就是一个工程,太麻烦了,呵呵总之谢谢了哈
test2呵呵,正式的程序再新建一个工程。
嗨,这个IDE我也用过,可是还觉得,eclipse 方便一些啦,不用自行配置啦,你说呢!
是不是一个主main方法
其余的就一个一个建啊