Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

有關java的問題,請各位大大幫忙一下...

我安裝了Sun的JDK 也設好環境變數了然後執行命令提示字元(如下 省略了一些)卻無法執行我在c槽的body_gogo資料夾的檔案EX2_1_291.java 請問是怎麼一回事?我檔名確定沒存錯==

C:\Users\user>javac

Usage: javac <options> <source files>

where possible options include:

-g Generate all debugging info

-g:none Generate no debugging info

-g:{lines,vars,source} Generate only some debugging info

-nowarn Generate no warnings

-verbose Output messages about what the compiler is doing

-deprecation Output source locations where deprecated APIs are u

sed

-classpath <path> Specify where to find user class files and annotati

on processors

-cp <path> Specify where to find user class files and annotati

on processors

-sourcepath <path> Specify where to find input source files

-bootclasspath <path> Override location of bootstrap class files

-extdirs <dirs> Override location of installed extensions

-endorseddirs <dirs> Override location of endorsed standards path

-proc:{none,only} Control whether annotation processing and/or compil

ation is done.

-processor <class1>[,<class2>,<class3>...]Names of the annotation processors t

o run; bypasses default discovery process

-processorpath <path> Specify where to find annotation processors

-d <directory> Specify where to place generated class files

-s <directory> Specify where to place generated source files

-implicit:{none,class} Specify whether or not to generate class files for

implicitly referenced files

-encoding <encoding> Specify character encoding used by source files

-source <release> Provide source compatibility with specified release

C:\Users\user>cd\body_gogo

C:\body_gogo>javac EX2_1_291.java

javac: file not found: EX2_1_291.java

Usage: javac <options> <source files>

use -help for a list of possible options

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    你有設classPath變數嘛?

    classPath="."

    檔名大小寫分

    Source(s): me
    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.