Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Sunanda>set Path=C:\Program Files\Java\jdk1.7.0_11\bin
C:\Users\Sunanda>set HomePath=C:\Program Files\Java\jdk1.7.0_11\bin
C:\Users\Sunanda>javac HelloTest.java
javac: file not found: HelloTest.java
Usage: javac <options> <source files>
use -help for a list of possible options
C:\Users\Sunanda>java HelloTest
Error: Could not find or load main class HelloTest
C:\Users\Sunanda>javac FirstExample.java
javac: file not found: FirstExample.java
Usage: javac <options> <source files>
use -help for a list of possible options
C:\Users\Sunanda>set Path=C:\Program Files\Java\jdk1.7.0_11\bin
C:\Users\Sunanda>set HomePath=C:\Program Files\Java\jdk1.7.0_11
C:\Users\Sunanda>javac HelloTest.java
javac: file not found: HelloTest.java
Usage: javac <options> <source files>
use -help for a list of possible options
C:\Users\Sunanda>javac -d HelloTest.java
javac: directory not found: HelloTest.java
Usage: javac <options> <source files>
use -help for a list of possible options
C:\Users\Sunanda>cd Documents
C:\Users\Sunanda\Documents>cd NetBeansProjects
C:\Users\Sunanda\Documents\NetBeansProjects>cd JavaApplication1
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1>set Path=C:\Program
Files\Java\jdk1.7.0_11\bin
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1>set HomePath=C:\Pro
gram Files\Java\jdk1.7.0_11
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1>javac HelloTest.jav
a
javac: file not found: HelloTest.java
Usage: javac <options> <source files>
use -help for a list of possible options
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1>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
to 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
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
-Werror Terminate compilation if warnings occur
@<filename> Read options and filenames from file
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1>javac -g HelloTest.
java
javac: file not found: HelloTest.java
Usage: javac <options> <source files>
use -help for a list of possible options
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1>cd src
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1\src>cd javaapplicat
ion1
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1\src\javaapplication
1>javac HelloTest.java
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1\src\javaapplication
1>java HelloTest
Exception in thread "main" java.lang.NoClassDefFoundError: HelloTest (wrong name
: javaapplication1/HelloTest)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :791)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:14
2)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:449)
at java.net.URLClassLoader.access$100(URLClassLoader. java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 361)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:4 23)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
at sun.launcher.LauncherHelper.checkAndLoadMain(Launc herHelper.java:482)
C:\Users\Sunanda\Documents\NetBeansProjects\JavaAp plication1\src\javaapplication
1>
..................This is the error that i encountered