Compound Theory

v2.0

Categories

  1. Transfer
  2. ColdFusion
  3. JRuby
  4. Java
  5. ColdSpring
  6. Squabble
  7. JavaLoader
  8. ColdDoc
  9. 2ddu
  10. AsyncHTTP
  11. OO Analysis and Design
  12. Flex
  13. Railo
  14. XML / XSL
  15. Hibernate
  16. ColdFusion Builder
  17. Fall
  18. Ubuntu
  19. XHTML / CSS
  20. Eclipse
  21. Git
  22. Oracle Database
  23. Usability / UI Design
  24. webDU
  25. cf.Objective()
  26. LWJGL
  27. cf.Objective(ANZ)
  28. Captcha
  29. MAX
  30. Melbourne CFUG
  31. Martial Arts
  32. Random Things
  33. Conduit

Recent Posts

Projects

Recent Comments

22 June 2006 10:59 AM

JavaLoader 0.2 Released

Huge changes! Massive Changes! The whole thing has been rewritten!

Okay, I'm lying.  The only thing I changed is that if you pass in a path to a JAR or a directory when you init() the JavaLoader, it will throw an Exception if the path doesn't exist.

This is simply a useful addition for debugging purposes, especially if you are wondering why you can't load a particular class, or you are getting the wrong version of a class, if you are trying to overload a class that is loaded into ColdFusion.

Oh yeah, I added a 'getVersion()' method too.

If you have any questions, comments or bugs, please send me an email or respond to this blog post.

Comments

Posted by PaulH on 22 June 2006 11:20 AM

slick. uh what did it do before? get it from the classpath?

Posted by Mark on 22 June 2006 11:32 AM

Well, the underload Java classloader doesn't throw an error if you load in a path that does't exist - it just doesn't search it.

The JavaLoader classLoader takes the ColdFusion base classLoader as a parent - so if you were trying to load, say, the new version of log4j, but you passed in the wrong path to your new log4j.jar file, the classLoader would look in the path you gave, realise it didn't exist, and the look in the CF classpath, and you would end up with the CF version.

That can be pain to debug if you don't know what you are looking for - hence the new change :D

Posted by Thomas Woestman on 30 June 2006 07:42 AM

Thanks

Add Comment