Home arrow static arrow Java Programming [Archive] - package com.bruceeckel.simpletest does not exist
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - package com.bruceeckel.simpletest does not exist
This topic has 3 replies on 1 page.

Posts:17
Registered: 8/3/04
package com.bruceeckel.simpletest does not exist  
Aug 3, 2004 1:18 PM



 
I have a problem with source book code. Exactly with c03\Assignment.java. When I'm try to compile the programm there is an error: D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not exist
import com.bruceeckel.simpletest.*;

I don't know how can I fix this.
 

Posts:24,036
Registered: 2/3/03
Re: package com.bruceeckel.simpletest does not exist  
Aug 3, 2004 1:25 PM (reply 1 of 3)



 
Add the com.bruceeckel.simpletest.* package or the jar file containing the classes you need to your classpath.

[url=http://wiki.java.net/bin/view/Javapedia/ClassPath]Javapedia: Classpath[/url]
[url=http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html]Setting the class path[/url] (Windows)
[url=http://java.sun.com/j2se/1.4.2/docs/tooldocs/findingclasses.html]How Classes are Found[/url]
 

Posts:3,258
Registered: 00-08-28
Re: package com.bruceeckel.simpletest does not exist  
Aug 3, 2004 2:46 PM (reply 2 of 3)



 
set the classpath variable. On the windows machine you could do it in environment in the control panel
 

Posts:17
Registered: 8/3/04
Re: package com.bruceeckel.simpletest does not exist  
Aug 3, 2004 3:41 PM (reply 3 of 3)



 
It's not easy!! :(
I have SDk in c:\j2sdk1.4.2_05\
my projects are in d:\java
and the source code from the book: d:\java\code\
i copied the whole catalog com\bruceeckel\ into c:\j2sdk1.4.2_05\
I JCreator in options->JDK Profiles->j2sdk1.4.2_05(edit)->sources I added path c:\j2sdk1.4.2_05
And I don't know what else??

Please Help Me!!
 
This topic has 3 replies on 1 page.