hw 2  Set the Java path and run java program?
346327
Easy.  Just include "jdk<version>&#92;bin" in your PATH environment variable.  You have to know the path to your jdk directory (where you installed java).  Then there are two ways to include your it in your path.\n\n1. Option 1: put it in your path every time you open a new command window.  (Note: Yahoo Answers won't let me put a slash character in here -- can't escape it also. So I'll put  an under_score character below to include back-slash.)\n\nset PATH=C:_jdk<version>_bin;%PATH%\n\n2. Or include it in your computer's env variable.  (In windows 2000, you can right-click My Computer --> Properties --> Advanced --> Environment Variables --> Then edit your "PATH" variable [or create one if it doesn't exist]).  Good luck!
1060143
Install the JDK (http://java.sun.com)\n\nMake sure the path to the JDK bin directory is in your PATH variable\n\ntype:\n\njavac myjavafile.java  \n\nto compile\n\nTo run:\n\njava myjavafile  \n\n(assuming your class is myjavafile in the file myjavafile.java)
1123941
MyComputer--> properties--->advanced--->Environmental var--->\ncsystem variable-->new-->\njava_home="ur jdk installed directory"i.e c:&#92;j2sdk1.4(only)\nok
1578
You have a few options here:\n\n- You can run it from the command line.  Go to Start->Run and type "cmd" and press Enter.  Then, cd to the directory containing the file and run it with options.\n\n- You can right click on the program and select Properties... - I believe there is a field that should let you specify options to use when running it.
587156
goto http://www.java.com and download the software , once downloaded just double click it and wait
1174415
if you use windows xp click \n\nstart > set program access and defaults
633144
put the installation Cd and run it
498345
Go to http://java.sun.com\nJAVA Developer's Source
642368
On your hard drive (drive c:) go to start then run then type in "c:" (without the brackets) and look for it. Id start in the folder called program files
1129887
reinstall it from http://www.java.com
6667
Unless you write or use a special or custom class loader class files are loaded from the CLASSPATH.  The can be defined as a environment variable or you can pass it in as a option to the java runtime.  So you don't actually "register" when usuing just the JVM.  If using some Java J2EE applicaitons / servers they will provide a configuration or installation aide that will build the classpath for you.  Without knowing what environment your running on / using I can only point you to the -classpath option at the command line.  \n\nCheers, good luck
783624
i had ta download some java thing before mine would work...look into that...
520815
http://java.sun.com/javaee/downloads/
500928
go to http://www.java.com/en/download/manual.jsp \n\nSelect the 1st or 2nd option, either one, and follow the on-line instructions.
493283
Try redownloading java from http://www.java.com/
428013
because it's way way outdated.\nTry Eclipse from eclipse.org.\nOr else, compile from the command line:\njavac *.java\nand then create the jar file, like so:\njar test.jar *.class
92333
Using the CLASSPATH Environment Variable\n\nIf you use a particular set of classes from one or more jar files regularly, it is convenient to set your CLASSPATH environment variable once, log off, then any time afterwards, you just need to invoke javac or java without specifying the -classpath option (as illustrated in later sections).\n\n    * For Windows XP:\n\n         1. Right-click on the My Computer icon\n\n         2. Select Properties\n\n         3. Click on the Advanced tab\n\n         4. Click on the Environment Variables button\n\n         5. Create a new or edit the old CLASSPATH variable for your login account\n\n         6. Add this as a value:\n\n            .;PATH\n\n            where "." represents the current directory, and "PATH" represents the full path to the jar files you want.\n\n         7. Click on OK buttons until you have closed the Properties.\n\n         8. Log off, then log back on to ensure that your environment variables are set.