LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 10:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration