I am ignorant of the JVM, and of Java, so I am sure this is a dumb question.
I need to post to the Omniture API. They offer some sample code here:
https://developer.omniture.com/en_US/blog/calling-rest-api-in-java
That code depends on a Base64Coder class which they offer in a zip file. I
When I just do something obvious, like in mpdv.core:
(ns mpdv.core
(:gen-class)
(:import
(Base64Coder))
and then call its static methods I get:
Exception in thread main java.lang.NoClassDefFoundError: Base64Coder
(wrong name: com/omniture/security/Base64Coder),
Ah, I see. This is a polygot project, which Leiningen describes here:
https://github.com/technomancy/leiningen/blob/stable/doc/MIXED_PROJECTS.md
That worked for me. Leiningen saves the day again.
On Friday, February 22, 2013 4:25:04 PM UTC-5, larry google groups wrote:
When I just do
Maybe I spoke too soon. I have now stepped into the Twilight Zone. Changes
I make to files do not get built when a try to run lein.
Just to get some kind of reaction from Leinengen I just put random garbage
in the ns clause of my core.clj:
(ns lkjlkljlkjlkj mpdv.core
(:gen-class)
I see this sentence:
Having one source root contain another (e.g. src and src/java) can cause
obscure problems.
but I have:
src/
java/
mpdv/
Which I assume is what Leinengen is asking for.
On Friday, February 22, 2013 5:23:28 PM UTC-5, larry google groups wrote:
Maybe I spoke
At least if I put random junk in the project.clj, Leinengen dies with an
error:
(defproject mpdv 0.1.0
:dependencies [[org.clojure/clojure 1.4.0]
[ring 1.1.5]
[ring/ring-jetty-adapter 1.1.5]
[org.clojure/data.json 0.2.0]
No, src is root for all Clojure. That means that your java root is under
the Clojure root. Move java to top-level.
On Friday, February 22, 2013 11:28:17 PM UTC+1, larry google groups wrote:
I see this sentence:
Having one source root contain another (e.g. src and src/java) can cause
Hmm, okay. Seems to be working with:
:source-paths [src]
:java-source-paths [src_java]
The example on the Leiningen site might be clear to those who know the JVM,
but it was not clear to me.
But now I have the earlier problem:
Caused by: java.lang.RuntimeException: No such
use fully qualified name for that class, I think?
On Fri, Feb 22, 2013 at 11:50 PM, larry google groups
lawrencecloj...@gmail.com wrote:
Hmm, okay. Seems to be working with:
:source-paths [src]
:java-source-paths [src_java]
The example on the Leiningen site might be clear to
I don't get it. Whats the fully qualified name of a standalone file that i
have locally?
On Friday, February 22, 2013 6:03:13 PM UTC-5, AtKaaZ wrote:
use fully qualified name for that class, I think?
On Fri, Feb 22, 2013 at 11:50 PM, larry google groups
lawrenc...@gmail.com javascript:
this:
(:import
(Base64Coder))
gets me:
Caused by: java.lang.RuntimeException: No such namespace: Base64Coder
this:
(:import
(src_java Base64Coder))
gets me:
Exception in thread main java.lang.ClassNotFoundException:
src_java.Base64Coder, compiling:(core.clj:1)
On Friday,
You must know the package name of your class. Is it really in the default
package? That would be almost impossible since you can't even refer to such
a class from another class in a normal package.
On Saturday, February 23, 2013 12:20:15 AM UTC+1, larry google groups wrote:
this:
(:import
Oh, I see, the file declared a package. This worked:
(com.omniture.security Base64Coder))
The Java stuff still confuses me.
Thanks for all the help.
On Friday, February 22, 2013 6:20:15 PM UTC-5, larry google groups wrote:
this:
(:import
(Base64Coder))
gets me:
Caused by:
13 matches
Mail list logo