View Single Post
  #1 (permalink)  
Old 12-28-2007, 03:53 PM
BlitzA BlitzA is offline
Member
 
Join Date: Dec 2007
Posts: 11
BlitzA is on a distinguished road
Help with setting up please
I still need some help getting the Elements package working with java.

I've typed this in command prompt:

Code:
set CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\bin\element.zip
So now it let's me compile this code:

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:

Code:
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
Reply With Quote
Sponsored Links