Re: Help with "main" error

From: news (j_at_j.cm)
Date: 12/14/03


Date: Sun, 14 Dec 2003 04:28:10 GMT

I use the command line as follows:

c:\j2sdk1.4.2_03\bin\java d:\personal\java-ChartGen\TestChart.class

The full error message is as follows:

Exception in thread "main" java.lang.NoClassDefFoundError:
d:\personal\java-ChartGen\TestChart/class

I thought it may be the CLASSPATH, but all my class files are located in the
same folder and I used the switch -classpath but the same error comes up.

"Chris Smith" <cdsmith@twu.net> wrote in message
news:MPG.1a45669187e98ca498980e@news.pop4.net...
> news wrote:
> >
> > I am pretty new to Java and I just install the JDK1.4.2 03
> > I am getting an error when I run the class file TestChart.class with the
> > java.exe:
>
> What's your command line? What is the full error message? We can't
> read your mind, or your screen; and withholding important information
> like that makes it very difficult to answer your question.
>
> --
> www.designacourse.com
> The Easiest Way to Train Anyone... Anywhere.
>
> Chris Smith - Lead Software Developer/Technical Trainer
> MindIQ Corporation



Relevant Pages

  • Re: Help with "main" error
    ... > I use the command line as follows: ... > The full error message is as follows: ... > I thought it may be the CLASSPATH, but all my class files are located in the ...
    (comp.lang.java)
  • Re: Help with "main" error
    ... > I use the command line as follows: ... > The full error message is as follows: ... > I thought it may be the CLASSPATH, but all my class files are located in the ...
    (comp.lang.java.help)
  • Re: Help with "main" error
    ... > I use the command line as follows: ... > The full error message is as follows: ... > I thought it may be the CLASSPATH, ...
    (comp.lang.java.help)
  • Re: Help with "main" error
    ... > I use the command line as follows: ... > The full error message is as follows: ... > I thought it may be the CLASSPATH, ...
    (comp.lang.java)
  • Re: Display Problems
    ... If it shows up in the GUI, it is there, and must be present ... Or issue the command; ... > and got the error message file or folder not found. ... in the midst of the frustration, by all means, vent away. ...
    (alt.os.linux.suse)