在自学java,第一个程序就被Jcreator这编译器郁闷到了,我有eclipse,但是听朋友说小程序还是JCreator方便,可是第一个程序就郁闷了...他总显示
程序源码就是helloworld,肯定是没问题的
我用eclipse能成功,就是用Jcreator出现这个,我已经baidu了半个小时了,没折了,请教一下各位大侠,有时间的话.麻烦帮我解答一下,谢谢

解决方案 »

  1.   

    Usage: java [-options] class [args...]
    (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
    编译通过,运行的时候小黑屏出现的
      

  2.   

    呵呵,我和你一样只用 Eclipse, 我没有理由转到 JC。 所以... 
    1 你改回用Eclipse
    2 你自己去找运行参数
    3 等其它的朋友
      

  3.   

    我用Eclipse了
    就是一点麻烦啊,初学要写很多简单的小程序,可是Eclipse新建一个就是一个工程,太麻烦了,呵呵总之谢谢了哈
      

  4.   

    偷偷告诉你,我一般建一个叫 Test的工程,以后所有的测试的东西都在这个工程下面做,建 package就行了,比如test1
    test2呵呵,正式的程序再新建一个工程。
      

  5.   

    我的test工程下面,已经有大约1000个java文件了,大概用了快9个月了。呵呵!
      

  6.   

    JCreator 编辑,你会吗,好象是说,你用的类名,与文件名不同吧,还者是说你的输出,位置,JCreator找不到呀!
    嗨,这个IDE我也用过,可是还觉得,eclipse 方便一些啦,不用自行配置啦,你说呢!
      

  7.   

    即然能在eclipse  中运行 ,代码是没错的,重装一下软件,如如果还是不好那就是初始设置或违反什么常规。
      

  8.   

    新学java,还不懂那些包什么的呢 呵呵
    是不是一个主main方法
    其余的就一个一个建啊