Help with packages getting started
- From: "BlitzA" <u40216@uwe>
- Date: Fri, 28 Dec 2007 13:57:57 GMT
I still need some help getting the Elements package working with java.
I've typed this in command prompt:
set CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\bin\element.zip
So now it let's me compile this code:
import element.*;
public class DrawRect
{
public static void main(String args[])
{
DrawingWindow d = new DrawingWindow();
Rect cornerRect = new Rect(10,10,20,30);
d.draw(cornerRect);
}
}
So I get a file called DrawRect.class
When I type in java DrawRect to run the code it says:
C:\Program Files\Java\jdk1.6.0_03\bin>java DrawRect
Exception in thread "main" java.lang.NoClassDefFoundError: DrawRect
Someone please help I've been trying to get this working for hours and
haven't even started my project lol
.
- Follow-Ups:
- Re: Help with packages getting started
- From: Lew
- Re: Help with packages getting started
- Prev by Date: Re: How To retrieve the full user name, in Vista??
- Next by Date: Re: when will Tuple be std?
- Previous by thread: when will Tuple be std?
- Next by thread: Re: Help with packages getting started
- Index(es):