Hello Guys,
I have this error when trying to run this code. To run the code, I have to
import the element.jar package downloaded from
http://www.cs.williams.edu/~bailey/JavaElements/je.zip located in c:\cis109
folder, which I did as you can see my environment variable stated below.
Kindly help as i am having the following error
//PROGRAM one
package element;
import element.*;
class Drawone
{
public static void main( String [] args)
{
drawingWindow d = new drawingWindow(500,500);
d.moveTo(100,100);
d.lineTo(100,150);
}
}
With the above program, i have this error
//ERROR one
C:\javacourse\Lecture1\Drawone.java:7: cannot find symbol
symbol : class drawingWindow
location: class element.Drawone
drawingWindow d = new drawingWindow(500,500);
^
C:\javacourse\Lecture1\Drawone.java:7: cannot find symbol
symbol : class drawingWindow
location: class element.Drawone
drawingWindow d = new drawingWindow(500,500);
^
2 errors
Tool completed with exit code 1
With the below program (package element removed)
//PROGRAM two
import element.*;
class Drawone
{
public static void main( String [] args)
{
drawingWindow d = new drawingWindow(500,500);
d.moveTo(100,100);
d.lineTo(100,150);
}
}
I have this with 3 errors
//ERROR two
C:\javacourse\Lecture1\Drawone.java:2: package element does not exist
import element.*;
^
C:\javacourse\Lecture1\Drawone.java:13: cannot find symbol
symbol : class drawingWindow
location: class Drawone
drawingWindow d = new drawingWindow(500,500);
^
C:\javacourse\Lecture1\Drawone.java:13: cannot find symbol
symbol : class drawingWindow
location: class Drawone
drawingWindow d = new drawingWindow(500,500);
^
3 errors
Tool completed with exit code 1
And in my Environment Variable, I have this as CLASSPATH
c:\cis109\;c:\javacourse;.\
I have the element.zip and element.jar in the c:\cis109\ directory.
Kindly help.
Help & suggestions welcomed.
--
DISCLAIMER
This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recipient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and delete this e-mail and any
attachments from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
Thank you -- Tope Olukosi
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en