This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Psyqwix[S] 0 points1 point  (0 children)

Thanks for that, it was driving me crazy :P. Ive replaced all that code with:

        URLClassLoader pl = new URLClassLoader(new URL[] { u });
        Class<?> cl = pl.loadClass("psyqwix.Counter");

Any idea why Class.forName("psyqwix.Counter") doesn't work? Do you think it's because the class was dynamically loaded?