thanks. I was able to run javac with changes in my environment variable. why do we need to run jar files. what is the significance. in course they say to run javac and java?
On Oct 16, 3:03 pm, webteam <[EMAIL PROTECTED]> wrote: > kantrat wrote: > > I installed netbeans and i am able to run the java programs for there, > > why can't i run them from command prompt. > > > what all things i need to setup in order to run my programs from > > command prompt > > > any help is appreciated. > > once you have compiled and run your program within Netbeans, you can try > using the *cmd prompt* (note *cmd* instead of *command*, I'm using XP). > To compile your program.....C:\dir>javac xxxx.java......dir is where > your file program is located > To run it C:\dir>java -jar xxxxx.jar > this is what i did; > C:\Documents and Settings\ybico\My > Documents\NetBeansProjects\MyJavaProjects\MyHelloProject2\src\myhelloproject2> > javac MyHelloProject2.java > C:\Documents and Settings\ybico\My > Documents\NetBeansProjects\MyJavaProjects\MyHelloProject2\dist>java -jar > MyHelloProject2.jar > good luck > ybico --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
