i've been trying to run just very simple java programs here on my laptop to complement the work i've done in school. i am able to compile fine, but when i go to run, say\n\n>java Test.java\n\nit brings up this:\n\nException in thread "main" java.lang.NoClassDefFoundError: Test.java\n\ni cant seem to get this solved, no matter what i do....i've ensured that both ClassPath and PATH are set to my jdk bin, i've uninstalled the jdk altogether, and still nothing\n\nany help at all would be greattt!! thank you!
136272
Ok, I have been known to do this too. the java command wants the class name, so:\njava Test\n\n(no .java)\n\n\nyou'll neeed to compile it first too:\njavac Test.java\n\n(then there will be a Test.class)\n\nif java cannot find Test still, then you might want to ensure it is on the classpath (although I think the current directory always is) using the classpath parameter.
319468
it's because you  haven't installed java yet
638624
MyComputer--> properties--->advanced--->Environmental var--->\ncsystem variable-->new-->\njava_home="ur jdk installed directory"i.e c:&#92;j2sdk1.4(only)\nok
87879
Just go to the link below and download the latest Java SDK.\nHopefully, that would help you.
217456
Try to upgrade your Java Virtual Machine software\n\nfor more help in installation of JVM for windows and other platform look here\n\nhttp://java.com/en/download/help/download_options.xml\n\nyou can download the software also for there..it is free
323
Or better you can compile your file online. try http://www.innovation.ch/java/java_compile.html. good luck
22662
There is a logical way to go about debugging a program.  See the link.\n\nSince I don't know Java, this is the best I can do.
53882
it may be the problem ur account.Set ur user account as administrator and try. If u again found problem install java.
143986
Java is a cross platform programming language. This means that a program written in Java can run on UNIX, Mac, Windows, Linux, etc, without any modification whatsoever.\n\nJava is also totally free.\n\nJ# is Microsofts attempt to somehow copy Java. J# will run on windows and ONLY windows.
290350
At least on the Linux/Solaris machines that I use,\nyou need to "wrap" your java class file with a\nscript which invokes the Java run time system.\nThis also gives you an opportunity to pass\nflags into the runtime (ie. to increase the\ndefault heap size, tweak the GC settings,\netc).\n\nFor example, for the class file "foo.class",\nthe script might be a single line like:\n\njava foo\n\n\nThen you would invoke the *script* rather\nthan trying to directly invoke the class\nfile.
65727
Java Runtime Environment is a 'sandbox', an interpreter environment for runninng programs written in Java programming language. So you must install JRE then you can run Java programs.
529047
Whats the problem you are facing?\n\nSet your JAVA_HOME to the directory where you have downloaded java. like C:/java\n\nGo to your environment variables and in the User Variables define\nPath   %JAVA_HOME%/bin     OR      C:/java/bin\n\nThen open a command prompt and type \njavac <and press enter> you will some options...\n\nNow your java is set up. Create a class compile and run it.
457526
Hai pankaj,\nI think the problem must be in the compilation unit(i.e, the source code).\nPlease check that your main function is syntactically correct.\nor\nCheck it with the code below.\n\nclass Hello{\npublic static void main(String []arg){\nSystem.out.println("hello");\n}\n}\n\ngood luck.
550569
I received a message regarding a java update about 10mins ago.\nMy version is now updated.\nI don't know if this will affect you but do a software update for java anyway.\nIt must cure some current issues.\n\nhttp://www.java.com/en/\n\n.
211469
Are you trying to just run a java program or are you trying to install a software to let you code in java?  If you are just trying to use java its very easy if you are trying to set up your computer with eclipse or some other program to code in java its quite difficult.
44757
Jbuilder is just a development environment. To use it, you must give it a valid java runtime environment. That environment contains the entire Java language, so you don't need to install something else.\n\nShort of specifying what the actual problem is, the only thing I can say is that you are not using the Scanner and JOptionDialog properly.\n\n(Scanner does not seem to be an actual class from the original Java API. Did you mean something else?\n\nEdit: The Scanner class is a new class in JRE 5.0 - Just ensure JBuilder is using JRE 5.0)
220320
Maybe you need to download Java. It's free. Go to:\nhttp://www.java.com/en/