🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.language
1 messages
1 total messages Started by Giulio Thu, 12 May 2005 09:52
problems linking classes in Jbuilder
#375
Author: Giulio
Date: Thu, 12 May 2005 09:52
45 lines
2215 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads