File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes JApplet and ResourceBundle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "JApplet and ResourceBundle" Watch "JApplet and ResourceBundle" New topic
Author

JApplet and ResourceBundle

Stephan Bardubitzki
Greenhorn

Joined: Dec 26, 2005
Posts: 29
Hi all,

I experienced performance problems with one of my applets. Turning on tracing from the Java console reveals that, if I read the trace right, the ResourceBundle caused the classloader to check the network, but why?

Has anyone an answer?

Here is the trace ( is the same when I run the applet from the Internet ):


Any help is highly appreciated.

Stephan
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
That does look strange. What does your applet tag look like? Is everything (especially the JFree libraries) inside of a jar file?


Android appsImageJ pluginsJava web charts
Stephan Bardubitzki
Greenhorn

Joined: Dec 26, 2005
Posts: 29
I by my self use ResourceBundle in my applet and it is also causing network connections as you can see in the trace. JFreeChart is about 1.0 MB what is quit big for use in applets. From the source I extracted just the classes I need and included them in my root jar.

This is the html, I used the HtmlConverter:
Stephan Bardubitzki
Greenhorn

Joined: Dec 26, 2005
Posts: 29
It is a known bug and is solved in Mustang.

Sun Bug Database
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JApplet and ResourceBundle
 
Similar Threads
Axis - Applet performance issue
Applets not loading after updating to Java 1.5
java plugin properties
Graphical report from Java Servlet
Problem with timer and imagefecter threads