🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to run already existing single .java file in Jbuilder2

#18371
From: Michael Mitiaguin
Date: Fri, 03 Jul 1998 00:00
35 lines
1642 bytes
I created 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);
}
} ///:~

It was created outside Jbuilder environment.
I opened this file in Opened tab and Make successfully created
passhandles.class file in myclasses subdirectory.

But when I try to run it  the execution log showed  the classname for
javaw  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  ?  How can I use simple one file fragments
for education purposes being in JBuilder IDE ?


--------------------------------------------------------------------
Michael Mitiaguin
Digerati
Email:  michael@digerati.com.au
--------------------------------------------------------------------
Technical Details
Message-ID: <359C81C1.3D1C930F@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,9c1374159e15c78f,start
X-Google-Attributes: gidf74b3,public
From: Michael Mitiaguin <michael@digerati.com.au>
Subject: How to run already existing single .java file in Jbuilder2
Date: 1998/07/03
Message-ID: <359C81C1.3D1C930F@digerati.com.au>
X-Deja-AN: 368331152
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