LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-29-2005, 10:01 AM   #1
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
Java Dynamic Class Loading


Hello Everyone,

I need to find a way to get the names of all classes
in a particular package. I do not know the names of
each of the classes, as it is constantly changing.

I am not sure that I am able to use the File class at
all, because the entire application will be enclosed
in a sealed jar.

Any ideas?

Thanks
 
Old 12-29-2005, 11:25 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"jar -tvf myfile.jar | grep class"?
 
Old 12-29-2005, 12:09 PM   #3
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Original Poster
Rep: Reputation: 15
I'm actually trying to do this in code...when it comes down to it though
it may just be easier to issue that command, cat it to an external file,
and open it. But then that's just a PITA.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic class loading doesn't find my functions!? Thinking Programming 1 07-28-2005 02:12 PM
dynamic class instantiation in c++? Thinking Programming 3 07-28-2005 08:59 AM
error loading dynamic library with Java trutnev Programming 4 06-01-2005 03:33 PM
Dynamic Class Loading Problems dmnc Programming 11 07-22-2004 04:06 PM
dynamic array in class help PTBmilo Programming 6 03-09-2003 02:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration