Thankyou for responding but I do not understand what I am supposed to
do, how do I add a path to my JDK bin directory, oh wait do I go into
CMD and then put cd [file directory] then path = [bin directory]


On Feb 21, 1:50 pm, Pavel Vassiliev <[email protected]> wrote:
> No, you need to add path to your jdk bin directory to your PATH system
> variable. Here you can find more info and instructions how to do 
> that:http://vlaurie.com/computers2/Articles/environment.htm
>
>
>
>
>
> On Sat, Feb 21, 2009 at 1:27 PM, Tomatoe <[email protected]> wrote:
>
> > Alright I have figured out one problem I was having it was because I
> > did not have javac in the same directory as the file so now I am
> > getting a message saying exception in thread "main"
> > java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
>
> > On Feb 21, 1:11 pm, Tomatoe <[email protected]> wrote:
> > > Hi,
> > > Thank you for responding, I did exactly what you told me to do down to
> > > the last letter
> > > and the cmd is saying that javac is not recognized as an internal or
> > > external command,
> > > operable program or batch file.
>
> > > On Feb 21, 12:45 pm, Anton Shaykin <[email protected]> wrote:
>
> > > > Hi, there!
> > > > Suppose, you using Windows, then you have to run Command Prompt first.
> > > > After that go to the directory where your program is (*.java) typing
> > > > in "cd C:\[my directory]". Then type "javac [NameOfProgram].java".
> > > > After the program successfully compiled, type in "java
> > > > [NameOfProgram]". All this stuff you have to do from Command Prompt
> > > > typing appropriate commands, not having to deal with javac.exe
> > > > directly.
> > > > Good luck!
>
> > > > On Feb 21, 8:30 pm, Tomatoe <[email protected]> wrote:
>
> > > > > Hello, I joined this class after learning about it not long ago
> > > > > through an email, and I am having trouble compiling .java programs
> > > > > that I have made. Specifically I am having difficulty turning them
> > > > > into .class files using javac. I interpreted the intructions as that
> > > > > there is supposed to be a program in JDK 6 that is supposed to
> > compile
> > > > > the .java files and I believe it is supposed to be called javac. I
> > > > > have tried opening the .java program with an application called javac
> > > > > in the directory: C:\Program Files\Java\jdk1.6.0_12\bin. but a cmd
> > > > > window pops up then disappears very quickly without doing anything.
> > > > > Any help would be greatly appreciated. Thank you- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -
>
> --
> With best regards,
> Pavel Vassiliev
> Sr Software Engineer,
> Core Systems,
> Information Technology,
> WellCare HealthPlans- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to