Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2008, 01:03 PM
Member
 
Join Date: Jul 2008
Posts: 1
escuja is on a distinguished road
Get name of available classes
Hi guys.
I'm not sure i that's the right category for my question, if not maybe someone can move it, sorry 'bout that.

My Question:
I'm currently working on a SUNSpots project. And i'm wondering if it's in general possible to get at runtime the classes(or at least the names of the classes) belonging to a package.

So my scenario:
I got a package ('moves' for example) containig an interface and some classes implementing that interface, e.g. 'MoveRight', 'MoveLeft' etc.
Now i want to know if it's possible to implement a method that just returns me all the names of the classes in the package 'moves'. I saw an example for Java1.5, that worked with the classloader and read all files from a resource (the subdirectory). But afaik there's no way in JavaME to access the classloader.

Anyone got an idea how to solve my problem?

Thanks, greetings

Chris
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant run my classes Assaf A Eclipse 1 04-22-2008 03:31 PM
Help with classes freswood New To Java 5 04-21-2008 04:28 PM
Using a JAR from other classes Joe2003 Advanced Java 1 01-02-2008 08:08 PM
wrapper classes sireesha New To Java 5 12-11-2007 10:45 PM
When do we use inner classes? cruxblack New To Java 5 08-10-2007 06:00 PM


All times are GMT +3. The time now is 08:40 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org