Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31704

Re: get a list of classes at runtime

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: get a list of classes at runtime
Date 2015-05-13 22:43 +0000
Organization A noiseless patient Spider
Message-ID <mj0k1n$4rb$1@dont-email.me> (permalink)
References <mivd25$2m28$1@ariadne.rz.tu-clausthal.de> <mivlo4$83v$1@dont-email.me> <4b9ec70b-28f1-488f-9945-ec6ebf8ebda8@googlegroups.com> <mj0ao4$t8u$1@dont-email.me>

Show all headers | View raw


On Wed, 13 May 2015 16:05:17 -0400, Eric Sosman wrote:

> On 5/13/2015 11:59 AM, e.d.programmer@gmail.com wrote:
>>[...]
>> To find the rt.jar your IDE would just have to specify where the rt.jar
>> is.
>> Normally to build a project in Eclipse you add "JRE System Library" to
>> the build path.  You'll see that as a folder in the Package Explorer. 
>> You can expand that folder.  I don't know if Oracle/Sun publishes a
>> list of which jars to include or where they get it but my Eclipse
>> project using Java 8 update 40 has 18 jars listed there.
> 
>      I could be wrong, but I don't think that's the O.P.'s problem.
> He wrote "I create an UI" that finds and lists classes (sounds like a
> sort of auto-completion thing), in somewhat the manner of an IDE.
> So I think the issue isn't "How do I tell my IDE where rt.jar is?" but
> "How does a piece of executing code find the rt.jar its JVM is using?"

Since, IIRC, Eclipse is FOSS, I suppose the OP could always download its 
source and see how the class list is handled there.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

get a list of classes at runtime Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-05-13 14:47 +0200
  Re: get a list of classes at runtime Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-05-13 10:06 -0400
    Re: get a list of classes at runtime Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-05-13 16:14 +0200
      Re: get a list of classes at runtime Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-05-13 11:23 -0400
        Re: get a list of classes at runtime Arne Vajhøj <arne@vajhoej.dk> - 2015-05-17 19:29 -0400
      Re: get a list of classes at runtime Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2015-05-13 22:15 -0500
    Re: get a list of classes at runtime e.d.programmer@gmail.com - 2015-05-13 08:59 -0700
      Re: get a list of classes at runtime Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-05-13 16:05 -0400
        Re: get a list of classes at runtime Martin Gregorie <martin@address-in-sig.invalid> - 2015-05-13 22:43 +0000
  Re: get a list of classes at runtime Joerg Meier <joergmmeier@arcor.de> - 2015-05-13 16:20 +0200
  Re: get a list of classes at runtime j4n bur53 <janburse@fastmail.fm> - 2015-05-13 17:47 +0200
  Re: get a list of classes at runtime Arne Vajhøj <arne@vajhoej.dk> - 2015-05-17 19:09 -0400

csiph-web