I'm having the same issue on OSX with leiningen. Unfortunately, it appears the cake project has been taken down so I cannot use it to resolve the tools.jar problem.
http://releases.clojure-cake.org/cake gives a 404 The error I'm getting when I do (use 'swank.cdt) can be seen here http://pastebin.com/Qr1usmDa On Saturday, April 30, 2011 4:59:55 AM UTC-5, Christian Schuhegger wrote: > > I am using maven directly to work with clojure and I had the problem > with the tools.jar, too. I resolved it by adding the following block > to my pom.xml: > > <profiles> > <profile> > <id>default-tools.jar</id> > <activation> > <property> > <name>java.vendor</name> > <value>Sun Microsystems Inc.</value> > </property> > </activation> > <dependencies> > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > </dependencies> > </profile> > </profiles> > > After that it is still complaining: "warning: unabled to add tools.jar > to classpath. This may cause CDT initialization to fail." > But this does not seem to cause a problem. > > Just wanted to share this bit of information with you, > Christian On Saturday, April 30, 2011 4:59:55 AM UTC-5, Christian Schuhegger wrote: > > I am using maven directly to work with clojure and I had the problem > with the tools.jar, too. I resolved it by adding the following block > to my pom.xml: > > <profiles> > <profile> > <id>default-tools.jar</id> > <activation> > <property> > <name>java.vendor</name> > <value>Sun Microsystems Inc.</value> > </property> > </activation> > <dependencies> > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > </dependencies> > </profile> > </profiles> > > After that it is still complaining: "warning: unabled to add tools.jar > to classpath. This may cause CDT initialization to fail." > But this does not seem to cause a problem. > > Just wanted to share this bit of information with you, > Christian On Saturday, April 30, 2011 4:59:55 AM UTC-5, Christian Schuhegger wrote: > > I am using maven directly to work with clojure and I had the problem > with the tools.jar, too. I resolved it by adding the following block > to my pom.xml: > > <profiles> > <profile> > <id>default-tools.jar</id> > <activation> > <property> > <name>java.vendor</name> > <value>Sun Microsystems Inc.</value> > </property> > </activation> > <dependencies> > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > </dependencies> > </profile> > </profiles> > > After that it is still complaining: "warning: unabled to add tools.jar > to classpath. This may cause CDT initialization to fail." > But this does not seem to cause a problem. > > Just wanted to share this bit of information with you, > Christian On Saturday, April 30, 2011 4:59:55 AM UTC-5, Christian Schuhegger wrote: > > I am using maven directly to work with clojure and I had the problem > with the tools.jar, too. I resolved it by adding the following block > to my pom.xml: > > <profiles> > <profile> > <id>default-tools.jar</id> > <activation> > <property> > <name>java.vendor</name> > <value>Sun Microsystems Inc.</value> > </property> > </activation> > <dependencies> > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > </dependencies> > </profile> > </profiles> > > After that it is still complaining: "warning: unabled to add tools.jar > to classpath. This may cause CDT initialization to fail." > But this does not seem to cause a problem. > > Just wanted to share this bit of information with you, > Christian On Saturday, April 30, 2011 4:59:55 AM UTC-5, Christian Schuhegger wrote: > > I am using maven directly to work with clojure and I had the problem > with the tools.jar, too. I resolved it by adding the following block > to my pom.xml: > > <profiles> > <profile> > <id>default-tools.jar</id> > <activation> > <property> > <name>java.vendor</name> > <value>Sun Microsystems Inc.</value> > </property> > </activation> > <dependencies> > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > </dependencies> > </profile> > </profiles> > > After that it is still complaining: "warning: unabled to add tools.jar > to classpath. This may cause CDT initialization to fail." > But this does not seem to cause a problem. > > Just wanted to share this bit of information with you, > Christian On Saturday, April 30, 2011 4:59:55 AM UTC-5, Christian Schuhegger wrote: > > I am using maven directly to work with clojure and I had the problem > with the tools.jar, too. I resolved it by adding the following block > to my pom.xml: > > <profiles> > <profile> > <id>default-tools.jar</id> > <activation> > <property> > <name>java.vendor</name> > <value>Sun Microsystems Inc.</value> > </property> > </activation> > <dependencies> > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > </dependencies> > </profile> > </profiles> > > After that it is still complaining: "warning: unabled to add tools.jar > to classpath. This may cause CDT initialization to fail." > But this does not seem to cause a problem. > > Just wanted to share this bit of information with you, > Christian -- 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