Olá,
Estou tentando aprender Java com a apostila do Caelum, porém logo de cara o primeiro programa exemplo não roda.
Mensagem de erro:
C:\Documents and Settings\XP>javac MeuPrograma.java
error: cannot read: MeuPrograma.java
1 error
C:\Documents and Settings\XP>
Será que não instalei ou não configurei direito os programas Java?
Abaixo, as versões do Java e Javac.
Grato.
Microsoft Windows XP [versão 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\XP>java -version
java version “1.6.0_02”
Java™ SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot™ Client VM (build 1.6.0_02-b06, mixed mode, sharing)
C:\Documents and Settings\XP>
Microsoft Windows XP [versão 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\XP>javac -version
javac 1.5.0_15
javac: no source files
Usage: javac
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 Specify where to find user class files
-cp Specify where to find user class files
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-endorseddirs Override location of endorsed standards path
-d Specify where to place generated class files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J Pass directly to the runtime system
C:\Documents and Settings\XP>