🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Inner classes--beginning execution?

#18436
From: Tony Pittarese
Date: Thu, 18 Jun 1998 00:00
37 lines
2278 bytes
I'm working on a project that uses inner classes as supported in Java 1.1.
As a hypothetical example, I have 2 .java files.

File 1--JOJO.java contains the code for class JOJO
File 2--COMBO.java contains the code for class COMBO and the inner class
STARTHERE

I can easily compile both files without error, but I want execution to being
with STARHERE.

I've tried this in JBuilder2, J++, Cafe, and the JDK.  I got the "closest"
with plain JDK.  I did:

javac JOJO.java
javac COMBO.java
java STARTHERE

The last line doesn't work.  It reports that the class isn't found.  In J++,
Cafe, and JBuilder2 I have no clue how to proceed--the STARTHERE class
doesn't even show up in the object browsers.  It is a public class with a
main method.

As a test, I pulled the STARTHERE class out to its own file, made a minor
change, and then compiled and ran without error.  I "know" the code itself
is sound since it came out of a very good reference book (Java Examples in a
Nutshell).

Can anyone help with this?  None of my reference books address
this--probably since it's new to Java 1.1.


--
Tony Pittarese
www.pittarese.com

**Change nospam to tony in the above address to reply via email**
Technical Details
Message-ID: <33E43C5721E58E33.1F7235F3A24081CC.3C372043D0792B84@library-proxy.airnews.net>
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,ef47ca97bb8aa285,start
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,ef47ca97bb8aa285,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 100145,ef47ca97bb8aa285,start
X-Google-Attributes: gid100145,public
X-Google-Thread: f5e83,ef47ca97bb8aa285,start
X-Google-Attributes: gidf5e83,public
From: "Tony Pittarese" <nospam@pittarese.com>
Subject: Inner classes--beginning execution?
Date: 1998/06/18
Message-ID: <33E43C5721E58E33.1F7235F3A24081CC.3C372043D0792B84@library-proxy.airnews.net>
X-Deja-AN: 364006596
X-Orig-Message-ID: <6mc4ud$o5f@library.airnews.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
NNTP-Posting-Time: Thu Jun 18 17:39:09 1998
Organization: Airnews! at Internet America
NNTP-Proxy-Relay: library.airnews.net
Abuse-Reports-To: abuse at airmail.net to report improper postings
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java.programmer,comp.lang.java.softwaretools,microsoft.public.java.visualj++