Accessing Java Classes in Same Project

0 views
Skip to first unread message

Gorsal

unread,
Oct 15, 2009, 7:02:41 PM10/15/09
to enclojure
Hello all!
So, i have some java classes in the package com.yourcompany; I
similary have a clojure file under the same package with the following
ns declaration
(ns com.yourcompany.defpackage
(:use clojure.contrib.pprint com.yourcompany.utils)
(:import
(java.lang ProcessBuilder Process)
(com.yourcompany SwankStartFilter)))

However, whenever i compile the java classes with F9 and then attempt
to load the ns in an already running clojure project repl prompt, it
says it cant find SwankStartFilter. I'm not mistyping anything. How do
i get clojure to recognize where this class is? Thanks!

Slartibartfast

unread,
Oct 16, 2009, 2:03:25 AM10/16/09
to enclojure
Restart the REPL. REPLs don't see changes to the classes on disk so
the stale one has to go whenever you change Java code.

> Thanks!

You're welcome.

Gorsal

unread,
Oct 16, 2009, 12:25:21 PM10/16/09
to enclojure
That worked! Thanks again.
Reply all
Reply to author
Forward
0 new messages