Hello,

sorry, I'm a bit slow today. I try to create an instance of a Java
class I want to use, and am just confused.

The Java code is

import javax.sound.sampled.*;

...

Line.Info li = new Line.Info(Object.class);

My two (wrong) trials are:

(def li (new javax.sound.sampled.Line/Info (.getClass (Object.))))
; gives Unable to resolve classname: javax.sound.sampled.Line/Info
; [Thrown class java.lang.IllegalArgumentException]

(def li (new javax.sound.sampled.Line.Info (.getClass (Object.))))
; javax.sound.sampled.Line.Info
; [Thrown class java.lang.ClassNotFoundException]

Does anybody see what I'm doing wrong here?

Beside, ist there a way to access the Java class in a direct way, like
the Java literal Object.class ?

Thank you, alux

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to