Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  3DzzD - Applet Boot V2 updated  (Read 20337 times)
0 Members and 1 Guest are viewing this topic.
Offline CommanderKeith
« Reply #30 - Posted 2010-05-03 05:35:28 »

It seems like it loads some more things after the start of the applet:
LineOfSightApplet: contructor begin
network: Cache entry not found [url:$1.class, version: null]
network: Connecting$1.class with proxy=DIRECT
network: Connecting with proxy=DIRECT

Uh huh! Thanks  Smiley I never knew about setting the trace level on the console. Well that explains the 5 second gap - the URLClassLoader is downloading the classes it needs to do the run method. Pity there's no way to load them all before hand without manually doing 'loadClass(classNameString)' for each class. Hm, the time taken for the URLClassLoader to download each little class separately must be pretty inefficient.

I have not been able to use v2 of the boot, because I can't access resources as I used to.

dosen't find the stuff from "BOOTJARS". The console just freezes, but I think that is the problem. I guess they are only available from another thread/classloader. Not sure if I made some mistake somewhere along the line. Suggestions are welcome. I guess it might be time for me to learn about classloaders...
Maybe try accessing them directly from the URLClassLoader which loads the rest of your app?
It's declared in this line:
ucl = ((URLClassLoader) Thread.currentThread().getContextClassLoader()).newInstance(urlJars);

Then call

Offline DzzD
« Reply #31 - Posted 2010-05-03 08:15:21 »

I have only got problem on ressource when I run Applet locally (AccesControlException because the protocole is file) in other case (when online) it strangely works well...

Plz if you make significant change/improvment post it somewhere, maybe as this code is pretty short & simple we could use Jojoh Wiki and make modification on it, Wiki is nice as it enable history & discussion. Also I propose to put the BootClassLoader as an inner class so the whole code will be only one file (usually not very clean to do that but in this case it make sens).

A target I think good to keep in minds for the loader are : be generic & compatible with the lowest java version possible, inded it is also important that it become robust & stable (must never crash) as an applet crashing is not that bad if the user is well informed.

finally the ultimate goal would be to have a very generic "shell/container" for applet enabling better user experience on applet start aswell as applet crash

Offline CommanderKeith
« Reply #32 - Posted 2010-05-03 12:26:47 »

For sure. I haven't changed much, just the invalidate/validate thing I mentioned already.
There are 3 problems which I'd like to look into.
How to load all the classes before the main application starts - currently they're only downloaded on-the-fly as needed.
How to avoid having to re-download the jars every time the applet is reloaded.
Getting rid of the coffee cup animation at the very start

Thanks for the help Smiley

Pages: 1 [2]
  ignore  |  Print  

EgonOlsen (42 views)
2018-06-10 19:43:48

EgonOlsen (22 views)
2018-06-10 19:43:44

EgonOlsen (43 views)
2018-06-10 19:43:20

DesertCoockie (197 views)
2018-05-13 18:23:11

nelsongames (124 views)
2018-04-24 18:15:36

nelsongames (123 views)
2018-04-24 18:14:32

ivj94 (863 views)
2018-03-24 14:47:39

ivj94 (125 views)
2018-03-24 14:46:31

ivj94 (768 views)
2018-03-24 14:43:53

Solater (140 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!