Hi, If you are using the NetBeans IDE, then you don't have to use the command prompt to compile and run your program. In the IDE, your program will be compiled automatically as soon as you save it and you can run your program with the help of the Run Project option from Run in the menu bar. But if you deliberately want to compile and run your programs from the command prompt and you don't want to type in the entire path for the java compiler each time, then you have to add your java installation directory to your PATH variable. To do that, you can type this at the command prompt:
*SET PATH =%C:\Program Files\Java\jdk1.6.0_14\bin%;* Regards, Babu On Sun, Jul 19, 2009 at 2:19 AM, kenneth okoli <[email protected]> wrote: > 1 Please help me out. To compile my program using command promt i must > have to type > C:\java>C:\"Program Files"\Java\jdk1.6.0_14\bin\javac HelloWorldApp.java > each time. > What do i do to make it as short as C:\java>javac HelloWorldApp.java? > NB: I am using IDE 6.7 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
