[armedbear-devel] Connection to database via JDBC and classpath

Francisco Vides Fernández fvides at dedaloingenieros.com
Fri May 18 12:25:03 UTC 2012


El 18/05/12 13:28, Alex Mizrahi escribió:
>
>> As a workaround, you could try to force initialization of the class by
>> accessing some static field or method or ask for some metadata
>> (jclass-methods, jclass-name, ...). But I don't know if that's
>> guaranteed to work.
>
> I've got it working once using something like java:jclass in SLIME
> REPL, but not it doesn't seem to work (in a slightly different
> environment).
>
> Note that if jar is added to classpath via java commandline
> Class.forName will work fine. That's probably the easiest way to get
> it working.
> Only loading jar dynamically via classloader is a problem.
I've also tried that. Started ABCL with 'java -cp $JDBC_JAR abcl.jar'
and Class.forName still didn't work. Am I missing some parameter?

>
>> Or you can revert to Class.forName, but ensuring to use the overload
>> that takes an explicit classloader, and feeding it the one used by
>> ABCL (look in java.lisp to see how to retrieve it).
>
> Just tried it, doesn't seem to work either.
>
> _______________________________________________
> armedbear-devel mailing list
> armedbear-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel


-- 
+-----------------
| Francisco Vides Fernández <fvides at igaleno.com>
| Gerente
| Teléfono fijo:   952 60 29 59
| Fax:             952 60 29 59
| igaleno http://www.igaleno.com/
+------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20120518/b229ab13/attachment.html>


More information about the armedbear-devel mailing list