Solved

Show the class that is loading

Posted on 2004-04-29
16
190 Views
Last Modified: 2012-03-15
Hi i have an applet that take a lot of classes to load and i have a splash screen that display the user a little image with a JProgressBar with the setIndeterminate() to true. For this i don't care, but what i want is to do like acrobat software that display all plugin that is loading. So when the splashscreen start i want it to display all classes that is loading at the moment the jre load it.

Is there a dynamic way? Cause i know i can use
Class thatClass = Class.forName("TheClassToLoad");
  theObject = thatClass.newInstance();

but each time i will have to add a new class i will add to add these line... so i want  something that will know which classes the java runtime is loading and display the name to the user

thx
0
Comment
Question by:bumpert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
  • 2
  • +1
16 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 10949124
That's the only way of doing it, unless you want to write your own classloader and sign your applet...

0
 
LVL 35

Expert Comment

by:TimYates
ID: 10949157
0
 

Author Comment

by:bumpert
ID: 10949298
my applet is already signed, and what do you mean when you said "write your own classloader"? Will i have to load EACH class manually with the code i post in my question???

cause if i'm not wrong, if i load my applet class the jre will automatically load all the class contain in this class... so all the class will load automatically without i have to load it by myself

i'll give a check to your url

thx
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:bumpert
ID: 10949827
humm i'm a little bit lost in all these links... i'll try continue reading on the subject but don't really know how and where to start to do what i want. I don't want people to make code for me, but just a little hint :)

thx
0
 

Author Comment

by:bumpert
ID: 10990142
nobody???
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10992951
What seems to be the problem now?
0
 

Author Comment

by:bumpert
ID: 10995419
i'm still not able to do something for my problem... someone posted me links but that didn't help me (maybe i'm not good enough to do this)
i'm still searching on google and java forums to find solution

thx for help
0
 
LVL 35

Expert Comment

by:TimYates
ID: 10995467
what you are trying to do is not an easy thing...

either you have to do it the way you said (with Class.forName) or you will need to write your own ClassLoader

To write your own ClassLoader, you will need to understand those links I gave you, and then you will need to digitally sign your applet, as applets are not normally allowed to define their own classloaders...

http://java.sun.com/developer/onlineTraining/Security/Fundamentals/magercises/ClassLoader/help.html

is another classloader tutorial
0
 

Author Comment

by:bumpert
ID: 10995559
ok i have something more urgent to do, and ill come back on this later... at least tomorrow and give you feedback

my applet is already sign so it would be more easy...

thx
0
 

Author Comment

by:bumpert
ID: 11164855
somoen answer me an another forum
sorry
0
 
LVL 35

Expert Comment

by:TimYates
ID: 11166122
> somoen answer me an another forum

what was the answer then?
0
 

Author Comment

by:bumpert
ID: 11168031
maybe not the best, but simple and working:
http://forum.java.sun.com/thread.jsp?forum=31&thread=518176
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11168139
If I'm not mistaken, I think that even that one is not solved, and the last comment there is from you:

>> i give 1 more duke for somebody that could give ma solution that will help me do what i want
>> thx

What was the answer, BTW?
0
 

Author Comment

by:bumpert
ID: 11172346
heu!?!?

i give the duke on reply 16 of 18
the solution is on reply 16 of 18 (answer here)
the answer you writed here is on reply 14 of 18
on the reply 17 of 18 and said that the answer looks good
and at the last reply, 18 of 18, i'm leaving the topic

you didn't read all the thread...
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11190377
Closed, 250 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question