Article View: borland.public.jbuilder.java.language
Article #18375Re: How to run already existing single .java file in Jbuilder2
From: Gerry Mantha
Date: Fri, 03 Jul 1998 00:00
Date: Fri, 03 Jul 1998 00:00
44 lines
2037 bytes
2037 bytes
Java & JBuilder are very sticky on case. Does your file have a capital "H"
in it? If it does, Jbuilder may just "Think" it has a lower case "h". In
that case, use the file/rename feature in JBuilder. Ensure you type the
.java extension as well, and rebuild it. It should work after this.
Michael Mitiaguin wrote in message <359C81C1.3D1C930F@digerati.com.au>...
>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:
<6njlb4$9sg8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<359C81C1.3D1C930F@digerati.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9c1374159e15c78f X-Google-Attributes: gidf74b3,public From: "Gerry Mantha" <gmantha@home.com> Subject: Re: How to run already existing single .java file in Jbuilder2 Date: 1998/07/03 Message-ID: <6njlb4$9sg8@forums.borland.com> X-Deja-AN: 368518997 References: <359C81C1.3D1C930F@digerati.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.1 Organization: QTECH Hybrid Systems Inc. Newsgroups: borland.public.jbuilder.java.language