2014-01-22 5 views
1

모호한 제목에 대해 유감스럽게 생각하지만 문자 그대로이 동작의 이름을 지정하는 방법을 모르겠습니다. Eclipse에서 프로젝트를 컴파일하려고하면 콘솔에 다음과 같이 표시됩니다.Eclipse에서 javaw 명령이 잘못되었습니다.

Usage: javaw [-options] class [args...] 
     (to execute a class) 
    or javaw [-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 <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 | -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[:<packagename>...|:<classname>] 
-enableassertions[:<packagename>...|:<classname>] 
       enable assertions with specified granularity 
-da[:<packagename>...|:<classname>] 
-disableassertions[:<packagename>...|:<classname>] 
       disable assertions with specified granularity 
-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 
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. 

그리고 중지됩니다. 도대체 무슨 일이 있다는 것입니다?

+1

잘못된 명령이 사용 된 것으로 보입니다. – Fredrik

+0

을 사용중인 정확한 명령 줄로 질문을 수정하면 http://stackoverflow.com/questions/14993683/eclipse-run-error 또는 http://stackoverflow.com/questions/9862037/trouble-compiling이 중복 될 수 있습니다. -any-java-code-in-eclipse – lakshman

+0

좋아요, 실행 구성을 변경했는데 작동합니다. 감사합니다. –

답변

3

에 잘못된 명령을 내고 있습니다.

디버그 모드에서 코드를 실행하려면 "디버그"보기에서 프로세스 항목을 마우스 오른쪽 단추로 클릭하고 "속성"을 선택하십시오. 사용중인 명령이 표시되어야합니다. 거기에서 잘못된 점을 볼 수 있습니다.

+0

예, 그랬습니다! –