🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Running a single .class file in JBuilder

#18370
From: Michael Mitiaguin
Date: Fri, 03 Jul 1998 00:00
30 lines
1441 bytes
I opened a single passhandles.java file which is extraction from  book
"Thinking in Java" containing a code :

public class PassHandles {
static void f(PassHandles h) {
System.out.println("h inside f(): " + h);
}
public static void main(String[] args) {
PassHandles p = new PassHandles();
System.out.println("p inside main(): " + p);
f(p);
}
} ///:~

I put it in myprojects subdirectory  and after making received .class
file in myclasses.
When I try to run that  in the execution log the classname is
Passhandles other than PassHandles which results in error
"Can't find class Passhandles"

Changing PassHandles to Passhandles in a code eliminates the problem.

But what is a real solution  ?

--------------------------------------------------------------------
Michael Mitiaguin
Digerati
Email:  michael@digerati.com.au
--------------------------------------------------------------------
Technical Details
Message-ID: <359C51D9.C31B4FEC@digerati.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4e5ef208dfc5291d,start
X-Google-Attributes: gidf74b3,public
From: Michael Mitiaguin <michael@digerati.com.au>
Subject: Running a single .class file in JBuilder
Date: 1998/07/03
Message-ID: <359C51D9.C31B4FEC@digerati.com.au>
X-Deja-AN: 368291871
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language