clj-ns-browser icon indicating copy to clipboard operation
clj-ns-browser copied to clipboard

ClassNotFoundException java.awt.Window$Type java.net.URLClassLoader$1.run

Open aeberts opened this issue 11 years ago • 3 comments

My apologies if this is a newbie error but I'm not able to run clj-ns-browser from the repl as per the instructions. I'm running the stock Java 1.6 on Mac OS X 10.7.5.

Please let me know if you'd like more info. regards, Alex

Stack-track:

Johns-MacBook-Air:learningclojure zand$ lein deps
Retrieving lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.pom from clojars
Retrieving lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.jar from clojars
Retrieving slamhound/slamhound/1.3.1/slamhound-1.3.1.pom from clojars
Retrieving ns-tracker/ns-tracker/0.2.1/ns-tracker-0.2.1.pom from clojars
Retrieving org/clojure/java.classpath/0.2.0/java.classpath-0.2.0.pom from central
Retrieving org/clojure/pom.contrib/0.0.21/pom.contrib-0.0.21.pom from central
Retrieving org/clojure/clojure/1.3.0-alpha6/clojure-1.3.0-alpha6.pom from central
Retrieving org/clojure/java.classpath/0.2.0/java.classpath-0.2.0.jar from central
Retrieving slamhound/slamhound/1.3.1/slamhound-1.3.1.jar from clojars
Retrieving ns-tracker/ns-tracker/0.2.1/ns-tracker-0.2.1.jar from clojars
Johns-MacBook-Air:learningclojure zand$ lein repl
nREPL server started on port 53163
REPL-y 0.1.9
Clojure 1.5.0
    Exit: Control+D or (exit) or (quit)
Commands: (user/help)
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
          (user/sourcery function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
Examples from clojuredocs.org: [clojuredocs or cdoc]
          (user/clojuredocs name-here)
          (user/clojuredocs "ns-here" "name-here")
user=> (use 'clj-ns-browser.sdoc)
nil
user=> (sdoc)
ClassNotFoundException java.awt.Window$Type  java.net.URLClassLoader$1.run (URLClassLoader.java:202)

aeberts avatar Apr 03 '13 03:04 aeberts

Hi Alex,

No need to apologize (ever ;-) )

It seems you're running into an incompatibility issue between java 6 and 7, and I used java 7 to compile, while you're using java 6 to run…

Please take a look at the associated discussion-thread in the seesaw-clj google-group:

https://groups.google.com/forum/?fromgroups=#!topic/seesaw-clj/WlXFIxGpaAs

I'm afraid there is no quick easy answer…

What you could do is either upgrade to java 7 if you can.

Or build the clj-ns-browser from source yourself, and keep it in your local maven-cache ("lein compile, jar, install"), because the source itself is explicitly dependent on java 7 and is know to compile&run well on java 6.

Or wait till I figure out how to compile, build and maintain a version for java 6, as I only have a version 7 right now.

Sorry for the inconvenience and thanks for pointing out the incompatibility.

Regards, Frank.

On Apr 2, 2013, at 8:09 PM, Alexander Eberts [email protected] wrote:

My apologies if this is a newbie error but I'm not able to run clj-ns-browser from the repl as per the instructions. I'm running the stock Java 1.6 on Mac OS X 10.7.5.

Please let me know if you'd like more info. regards, Alex

Stack-track:

Johns-MacBook-Air:learningclojure zand$ lein deps Retrieving lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.pom from clojars Retrieving lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.jar from clojars Retrieving slamhound/slamhound/1.3.1/slamhound-1.3.1.pom from clojars Retrieving ns-tracker/ns-tracker/0.2.1/ns-tracker-0.2.1.pom from clojars Retrieving org/clojure/java.classpath/0.2.0/java.classpath-0.2.0.pom from central Retrieving org/clojure/pom.contrib/0.0.21/pom.contrib-0.0.21.pom from central Retrieving org/clojure/clojure/1.3.0-alpha6/clojure-1.3.0-alpha6.pom from central Retrieving org/clojure/java.classpath/0.2.0/java.classpath-0.2.0.jar from central Retrieving slamhound/slamhound/1.3.1/slamhound-1.3.1.jar from clojars Retrieving ns-tracker/ns-tracker/0.2.1/ns-tracker-0.2.1.jar from clojars Johns-MacBook-Air:learningclojure zand$ lein repl nREPL server started on port 53163 REPL-y 0.1.9 Clojure 1.5.0

Exit: Control+D or (exit) or (quit) Commands: (user/help)

Docs: (doc function-name-here)

(find-doc "part-of-name-here")

Source: (source function-name-here)

(user/sourcery function-name-here)

Javadoc: (javadoc java-object-or-class-here) Examples from clojuredocs.org: [clojuredocs or cdoc]

(user/clojuredocs name-here)

(user/clojuredocs "ns-here" "name-here") user=> (use 'clj-ns-browser.sdoc) nil user=> (sdoc) ClassNotFoundException java.awt.Window$Type java.net.URLClassLoader$1.run (URLClassLoader.java:202) — Reply to this email directly or view it on GitHub.

franks42 avatar Apr 03 '13 04:04 franks42

Just noticed a confusing typo:

I wrote: … because the source itself is explicitly dependent on java 7 …

but I meant: … because the source itself is NOT explicitly dependent on java 7 …

-FS.

On Apr 2, 2013, at 9:49 PM, Frank Siebenlist [email protected] wrote:

Hi Alex,

No need to apologize (ever ;-) )

It seems you're running into an incompatibility issue between java 6 and 7, and I used java 7 to compile, while you're using java 6 to run…

Please take a look at the associated discussion-thread in the seesaw-clj google-group:

https://groups.google.com/forum/?fromgroups=#!topic/seesaw-clj/WlXFIxGpaAs

I'm afraid there is no quick easy answer…

What you could do is either upgrade to java 7 if you can.

Or build the clj-ns-browser from source yourself, and keep it in your local maven-cache ("lein compile, jar, install"), because the source itself is explicitly dependent on java 7 and is know to compile&run well on java 6.

Or wait till I figure out how to compile, build and maintain a version for java 6, as I only have a version 7 right now.

Sorry for the inconvenience and thanks for pointing out the incompatibility.

Regards, Frank.

On Apr 2, 2013, at 8:09 PM, Alexander Eberts [email protected] wrote:

My apologies if this is a newbie error but I'm not able to run clj-ns-browser from the repl as per the instructions. I'm running the stock Java 1.6 on Mac OS X 10.7.5.

Please let me know if you'd like more info. regards, Alex

Stack-track:

Johns-MacBook-Air:learningclojure zand$ lein deps Retrieving lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.pom from clojars Retrieving lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.jar from clojars Retrieving slamhound/slamhound/1.3.1/slamhound-1.3.1.pom from clojars Retrieving ns-tracker/ns-tracker/0.2.1/ns-tracker-0.2.1.pom from clojars Retrieving org/clojure/java.classpath/0.2.0/java.classpath-0.2.0.pom from central Retrieving org/clojure/pom.contrib/0.0.21/pom.contrib-0.0.21.pom from central Retrieving org/clojure/clojure/1.3.0-alpha6/clojure-1.3.0-alpha6.pom from central Retrieving org/clojure/java.classpath/0.2.0/java.classpath-0.2.0.jar from central Retrieving slamhound/slamhound/1.3.1/slamhound-1.3.1.jar from clojars Retrieving ns-tracker/ns-tracker/0.2.1/ns-tracker-0.2.1.jar from clojars Johns-MacBook-Air:learningclojure zand$ lein repl nREPL server started on port 53163 REPL-y 0.1.9 Clojure 1.5.0

Exit: Control+D or (exit) or (quit) Commands: (user/help)

Docs: (doc function-name-here)

(find-doc "part-of-name-here")

Source: (source function-name-here)

(user/sourcery function-name-here)

Javadoc: (javadoc java-object-or-class-here) Examples from clojuredocs.org: [clojuredocs or cdoc]

(user/clojuredocs name-here)

(user/clojuredocs "ns-here" "name-here") user=> (use 'clj-ns-browser.sdoc) nil user=> (sdoc) ClassNotFoundException java.awt.Window$Type java.net.URLClassLoader$1.run (URLClassLoader.java:202) — Reply to this email directly or view it on GitHub.

franks42 avatar Apr 03 '13 04:04 franks42

Would it not be possible to catch the exception, and dump a nicer error message? Or run a "on Java 6, it's going to crash" check?

I updated to Java 7 (hadn't realised my machine was on 6). But lots of people will just give up!

phillord avatar Jun 14 '13 21:06 phillord