BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problems linking classes,

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Debugger
View previous topic :: View next topic  
Author Message
Giulio
Guest





PostPosted: Tue May 10, 2005 9:21 am    Post subject: problems linking classes, Reply with quote



Perfect code: one class in one file, instanciating the class in another
class.
Jbuilder 2005 EE can't find the class instanciated.
Often times it's enough to open the file and to go back to the
instanciating file and it works.
Other times I've just to save the file again and it works... other times
I don't know how to solve the problem.

to be more precise:
both classes belongs to the same package, and jbuilder said that the
files have been moved

randomGenerator.java:
------------
public class randomGenerator {
Random rnd;

randomGenerator() {
rnd = new Random();
}
....
---------------
arrival1.java
---------------
public class arrival1 extends event {

private float time;
public void arrival1(float clock) {
randomGenerator rnd = new randomGenerator();
time = clock + rnd.getNextTime();
}
.....
--------------------------
randomGenerator rnd = new randomGenerator();
time = clock + rnd.getNextTime();

in these two rows jbuilder says: that it cannot find symbol: class
randomGenerator, location : class system.arrival1 .....

I had similar problem also with other versions of jbuilder.

can someone help me to solve this prob?

thanx
Giulio
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Debugger All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.