Re: newbie with compiling

From: Amey Samant (ameyas7_at_yahoo.com)
Date: 10/25/03


Date: 25 Oct 2003 02:39:45 -0700


"Libin Xie" <xiaobin2u@yahoo.com.cn> wrote in message news:<3f991d18$1_1@news.iprimus.com.au>...
> Hi
> I am new to Java world, I download java version j2sdk1.4.1_01 to my
> computer, and install it
> when I try to compile program from command line type javac tst.java, I got
> the following error
> "Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/tools/javac/Main"
>
> however, I can use textPad to compile it, when I try to run from textPad, I
> got same error:
>
>
> Thanks advance
> Libin

hi
its a question of classpath
make sure that you have included '.' in your classpath variable
& also path for required directories in classpath variable

regards
amey



Relevant Pages

  • Re: Simple Java Problem
    ... (or an editor such as TextPad) ... compile files for you is no solution. ... in the one directory (default package) then some ...
    (comp.lang.java.help)
  • Re: Good IDE
    ... > It can be a little 'fragile' as someone ... > (Sudsy?) put it recently. ... Textpad. ... can compile and execute from Textpad, ...
    (comp.lang.java.programmer)
  • Re: newbie with compiling
    ... > I am new to Java world, I download java version j2sdk1.4.1_01 to my ... > when I try to compile program from command line type javac tst.java, ... > however, I can use textPad to compile it, when I try to run from textPad, I ...
    (comp.lang.java)
  • newbie with compiling
    ... I am new to Java world, I download java version j2sdk1.4.1_01 to my ... when I try to compile program from command line type javac tst.java, ... however, I can use textPad to compile it, when I try to run from textPad, I ...
    (comp.lang.java)
  • newbie question with compiling
    ... I am new to Java world, I download java version j2sdk1.4.1_01 to my ... when I try to compile program from command line type javac tst.java, ... however, I can use textPad to compile it, when I try to run from textPad, I ...
    (comp.lang.java.programmer)