Java command still not working - please help

i have installed jdk1.6.0_05. The javac command works fine but the java command does not work at all. even when i try java HelloWorld i receive this exception message
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Caused by: java.lang.ClassNotFoundException: HelloWorld
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
please help (you to SUN)!!

bart@kerberos:~$ javac -help
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 used
  -classpath <path>          Specify where to find user class files and annotation processors
  -cp <path>                 Specify where to find user class files and annotation 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 compilation 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 systemSee the bold part.
More information: [http://java.sun.com/docs/books/tutorial/java/package/managingfiles.html]

Similar Messages

Maybe you are looking for

  • Why is the search on my mail app not working?

    I just bought the new iPod touch 5th generation. I synced it with my iTunes, transferring all the apps I had on my old 3rd generation iPod touch. Everything works fine, except the search on my mail app. When I type in some keyword to search, and clic

  • Script for adding a page

    Is there a way to have a whole page invisible from the actual form but when a certain word is selected from a drop down list the page then appears?? Thanks.

  • Apple ID does not exist

    hello, i am trying to log in to my account and itunes doesn't recognize my login id - even though it sent an email(which is also my log in ID) to my account to change my password i changed my password and entered my log in ID and new password and i s

  • Advise on Distributec Computing and Java

    Hello there all, I am MS Software Student and has taken project (2.5 month) on 'Distributed Computing and/in Java". It's a research project with some coding. I know CoreJava and some part in Advanced Java like JSP, RMI, Servlet etc. I know know much

  • ICM router OOSVC

    Hello Everyone I am facing router sync problem at a customer side RouterA is INSVC with PG's 3/3 and Router B showing OOSVC rb-rtr Peripheral CVP4 (ID 5004) is on-line. 02:04:17:122 rb-rtr Peripheral CVP4 (ID 5004) still in time interval 03/15/2012 2