Setting Classpath to comile problems

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Ardon

Setting Classpath to comile problems

Post by Ardon »

Hi,
I am new to Java programming. I have just finished my first week of java in college. I have Textpad 4.4.2. Ive read through this forum and I just don't have
enough knowledge of what most of you are talking about yet to solve my own problem.

Here is the problem. Ive installed SDK 1.3.1_02 for Windows 2000 pro on my computer. Ive installed Textpad 4.4.2 also. I am recieving the common error everyone else seems to be getting :
" exception in thread "main" java.lang.NoClassDefFoundError: TestPadTest "
TestPadTest being the name name of the file.

Now I have compiled and run this in notepad and using my command prompt.
I just can't get it to create a TestPadTest.class file. It compiles in Textpad but I cant find the .class file. When I Run (ctrl-2) the application I get the above stated
error.
If someone could walk me through setting up the classpath or path(I dont understand that yet) so that TextPad can get to the javac.exe that would be great.

p.s
Please be very specific as I dont really understand everything just yet, but on the same tokken im not dumb with computers.

Thanks in Advance 8)
lee

Re: Setting Classpath to comile problems

Post by lee »

hey :)

if you have compiled and run it in notepad you should have the .class already, obviously.

the error you are getting is nothing to do with textpad. if your file name is TestPadTest then you need to have the public class in your .java file called TestPadTest as well. Seeing as you have named the file TestPadTest, I would make sure your class name is TestPadTest as well, cause maybe you typed TestPad instead of TextPad and spelt it correctly in the file.

does that make sense?
Post Reply