If you are using Windows, then on the command prompt, type the following c:\> echo %JAVA_HOME% The output of this command will be the path where your JDK is installed. For example: C:\>echo %JAVA_HOME% C:\Program Files\Java\jdk1.6.0_13\ C:\>
There will be a directory called "bin" in "C:\Program Files\Java\jdk1.6.0_13\" (for example) which contains all binary files. There will a java compiler file called "javac" present in the above mentioned path. Compiling javacode: On the command prompt, type the following: C:\> javac Hello.java Once the java code is compiled without any errors, you can execute using the following command: C:\> java Hello Hope this helps On Thu, May 28, 2009 at 11:35 PM, SophE Kravitz <[email protected]>wrote: > > Hello- > I do not understand what some parts of Lab 1001 means: > How do I find %JAVA_HOME%\bin? > How do I compile once I've located Javac? > Thanks! > 3. Compile Hello.java using javac compiler. The javac compiler comes with > J2SE SDK you've download. It resides in %JAVA_HOME%\bin (Windows) or > $JAVA_HOME/bin (Solaris/Linux) directory. The result of compilation will > be the creation of Hello.class file. > > C:\myjavaprograms>javac Hello.java > > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
