Skip to content

Instantly share code, notes, and snippets.

@tbatchelli
Created April 23, 2013 21:08
Show Gist options
  • Save tbatchelli/5447417 to your computer and use it in GitHub Desktop.
Save tbatchelli/5447417 to your computer and use it in GitHub Desktop.
(ns classlojure-test.core
(:use [classlojure.core]))
(def url-classloader #'classlojure.core/url-classloader)
(def vmfest-jar "file:lib/vboxjws-4.2.6.jar")
(def vmfest-cl (url-classloader [vmfest-jar] base-classloader))
(get-classpath vmfest-cl)
;; ("/Users/tbatchelli/dev/pallet/classlojure-test/lib/vboxjws-4.2.6.jar")
#_(with-classloader vmfest-cl
(import 'org.Virtualbox_4_2.IVirtualBox))
#_(eval-in vmfest-cl '(import 'org.Virtualbox_4_2.IVirtualBox))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment