🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #375

problems linking classes in Jbuilder

#375
From: 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
Technical Details
Message-ID: <d5v90k$kbv$1@domitilla.aioe.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!news.moat.net!213.155.197.138.MISMATCH!ilaria.aioe.org!aioe.org!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,6091c1a04db067a3,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!news.moat.net!213.155.197.138.MISMATCH!ilaria.aioe.org!aioe.org!not-for-mail
From: Giulio <frank.zappalEVA@email.it.invalid>
Newsgroups: borland.public.jbuilder.java.language
Subject: problems linking classes in Jbuilder
Date: Thu, 12 May 2005 11:52:22 +0200
Organization: Aioe.org NNTP Server
Lines: 45
Message-ID: <d5v90k$kbv$1@domitilla.aioe.org>
NNTP-Posting-Host: t6AB4E+HrDRrsHR/P46KOQ.domitilla.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
NNTP-Posting-Date: Thu, 12 May 2005 09:52:25 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)