how to get use clojure.contrib.import-static

2013-07-31 Thread jayvandal
I am trying to run the snake program . I don't know how to fin this "use clojure.contrib.import-static" ? Any help will be appreciated! Thanks, jvandal -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

error (init-db)

2013-07-14 Thread jayvandal
error , but don't know how to solve error it goes as follows CompilerException java.lang.RuntimeException: Unable to resolve symbol: init-db in this context, compiling:(NO_SOURCE_PATH:1) This is the db.clg file === (ns jimsweb.models.db (:require [clojure.ja

what execurtes what in clojure

2013-06-22 Thread jayvandal
in a project file the :main my-website.server) Is this like a go to statement or a do like statement it seems that the leiningen has default to the welcome clj file.If it doesn't find the welcome file what does leiningen do? In the my-website.server clj file , the main function ends with a :ns

Re: what directs the program in my-website progream to execute the various files, welcome, users?

2013-06-11 Thread jayvandal
nd we can > easily help you trace the flow of execution. > > On Tuesday, June 11, 2013 5:32:46 AM UTC-7, jayvandal wrote: >> >> what statements makes the program execute. >> The main statement tells the program to execute server file >> what statements in the serve

Re: what directs the program in my-website progream to execute the various files, welcome, users?

2013-06-11 Thread jayvandal
) (password-field "pass") [:br] (submit-button "create account" (defpage [:post "/signup"] user (try (db/add-user (update-in user [:pass] crypt/encrypt)) (resp/redirect "/") (catch Exception ex (render "/signup" (assoc user :error (.ge

what directs the program in my-website progream to execute the various files, welcome, users?

2013-06-11 Thread jayvandal
what statements makes the program execute. The main statement tells the program to execute server file what statements in the server file tell the program to run the welcome file ? the user file -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: No-source-path ? how to run init-db?

2013-06-03 Thread jayvandal
On Monday, June 3, 2013 12:20:34 AM UTC-6, jayvandal wrote: > > I am trying to run the my-website. > My structure is > my-website top level > src >my-website >

No-source-path ??

2013-06-02 Thread jayvandal
I am trying to run the my-website. My structure is my-website top level src my-website model db.clj sould I use this command lein repl (load-fil

clojure dependencies

2013-04-26 Thread jayvandal
I have this code. (defproject jsql "1.0.0-SNAPSHOT" :description "FIXME: write" :dependencies [[org.clojure/clojure "1.4.0"]])(use 'clojure.java.jdbc) My question is where do the dependencies locate? I would put the files in the c:\clojure-1.4.0 How does clojure know where they are? Are the

how to create dependncies for mysql in clojure

2013-04-07 Thread jayvandal . js
I want to access mysql. it is in c:\program files as mysql what is the rule to create a dependicy statement " [mysql/mysql-connector-java "5.1.23"]]". I have two books "Practical Clojure" "Programming Clojure" No answer in the books that I find -- -- You received this message because you ar

What is wrong with code

2012-03-18 Thread jayvandal
This is the code (ns example.core (:gen-class)) (defn -main [& args] (println "Hello, World")) ;java -cp classes:clojure.jar com.example I can't get this to run ??? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: seesaw texteditor.clj classpath error

2012-01-22 Thread jayvandal
How do you point to the clojure file , seeeditor.clj?? On Jan 22, 11:56 pm, "Meikel Brandmeyer (kotarak)" wrote: > Hi, > > Am Montag, 23. Januar 2012 05:24:29 UTC+1 schrieb jayvandal: > > > I run this and line > > java -jar c:/opt/jars/clojure.jar c:/aproject/

seesaw texteditor.clj classpath error

2012-01-22 Thread jayvandal
I get this error with classpath. I This is not leiningen but should be simple c:/opt/jars contains seesaw-1.2.2.jar Classpath = c:/opt/jars/*; Program is by Daveray. I copied it and changed name(line 1) to seeeditor.core (ns seeeditor.core (:use seesaw.core [clojure.java.io :only [fil

clooj ot seeing output

2012-01-20 Thread jayvandal
I aam trying "hello-seesaw" tutorial in clooj. I don't see output or screens as in running Leiningen. I trie adding all the commands and didn't see any output, so I went back line by line and can't see any screens. What commands should I be using to see progres? I am still trying to write Cloju

clojure-clr loadpath points to D: harddrive

2012-01-19 Thread jayvandal
Why does the clr point to d: work? user=> (use :reload 'ui) FileNotFoundException Could not locate db.mysql.clj.dll or db/ mysql.clj on load path. clojure.lang.RT.load (d:\work\clojure-clr\Clojure\Clojure\Lib \RT.cs:3065) user=> -- You received this message because you are subscribed to the Goog

clojure clr db error

2012-01-14 Thread jayvandal
I am running ui.clj , this is my commands and error mgs. I can access the mysql data for these datasets but when I try to load ui and am confused ??? Thanks for any help (def conn-str "SERVER=localhost;DATABASE=clr_demo_4;UID=root;PASSWORD=pass;") == Clo

clojure clr files ?????

2012-01-13 Thread jayvandal
I have installed clr in a folder called "clr" and have net installed. I can click on main exe and get the clr to give me a repl . When I get ready to create the ui. file in the example where am i storing files In leiningen i create a folder for the project all the files are stored in the project

mysql record field formats

2012-01-11 Thread jayvandal
I 'm having trouble with adding to this table I cand drop the table, create table but can't add this data What is the format error? Thanks for help! (defn create-fruit [] (sql/with-connection db (sql/create-table :fruit [:name "varchar(25)"] [:appearance "varchar(25)"] [:cost "integer

mysql record field formats

2012-01-10 Thread jayvandal
I 'm having trouble with adding to this table I cand drop the table, create table but can't add this data What is the format error? Thanks for help! (defn create-fruit [] (sql/with-connection db (sql/create-table :fruit [:name "varchar(25)"] [:appearance "varchar(25)"] [:cost "integer

mysql and fruit tables

2012-01-08 Thread jayvandal
I have been able to access tables in mysql, but not able to add records. I look at the examples fo "fruit so I created a lein named fruitI made th project file as the mysql project file. I copied the database instructions as in mysql. I added all of the statements for the "fruit" example but I can

mysql and fruit tables

2012-01-08 Thread jayvandal
I have been able to access tables in mysql, but not able to add records. I look at the examples fo "fruit so I created a lein named fruitI made th project file as the mysql project file. I copied the database instructions as in mysql. I added all of the statements for the "fruit" example but I can

add records in mysql????

2012-01-06 Thread jayvandal
i am using leinningen and mysql example. I can select records as: (defn list-ausers [] (sql/with-connection db (sql/with-query-results rows ["SELECT * FROM books WHERE BOOK_ID = '1'"] (println rows but I can't insert records,i doesn't like the query as: (defn add-ausers [

Re: add records in mysql????

2012-01-06 Thread jayvandal
ql/with-connection db >     (sql/insert-record :books user))) > > http://clojure.github.com/java.jdbc > > Allen > > > > > > > > On Fri, Jan 6, 2012 at 3:13 PM, jayvandal wrote: > > i am using leinningen  and mysql example. I can select records as: >

add records in mysql????

2012-01-06 Thread jayvandal
i am using leinningen and mysql example. I can select records as: (defn list-ausers [] (sql/with-connection db (sql/with-query-results rows ["SELECT * FROM books WHERE BOOK_ID = '1'"] (println rows but I can't insert records,i doesn't like the query as: (defn add-ausers [

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-28 Thread jayvandal
lack of understanding, but I feel I must be able to access databases or I can't use clojure On Dec 28, 12:58 am, Sean Corfield wrote: > Sorry, I have no idea what you mean... > > > > > > > > On Tue, Dec 27, 2011 at 9:56 PM, jayvandal wrote: > > I have tried the exampl

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-27 Thread jayvandal
I have tried the example you provided and it works except I don't see any file printout of the records when I run not as test but without test. Is test going to show any data? Can I ask for a record count? why doesn't the sql jar show for every example that is in the internet? Thanks On Dec 24,

(:require [clojure.contrib.sql :as sql]))

2011-12-23 Thread jayvandal
Where is this file to be found?? (:require [clojure.contrib.sql :as sql])) I see it listed in the jar but?? I have the clojure.contrib-11.2.0.jar located in my classpath c:\opt\jars, as well as the clojure.jar Am I the only one who has trouble with these files?? -- You received this message

why would this statement "java -server" ???

2011-12-15 Thread jayvandal
I was looking at the installation in "Learning clojure" and the batch file had this statement: java -server -cp .;%CLOJURE_JAR% clojure.main why is the "server" in the line and what is it referencing??? Thanks for any help -- You received this message because you are subscribed to the Go

why would this statement "java -server" ???

2011-12-15 Thread jayvandal
I was looking at the installation in "Learning clojure" and the batch file had this statement: java -server -cp .;%CLOJURE_JAR% clojure.main why is the "server" in the line and what is it referencing??? Thanks for any help -- You received this message because you are subscribed to the Go

namespace what?

2011-12-13 Thread jayvandal
I think I understand namespace and then I don't! I try to run this example (ns examples.core (use [clarity.component :as c])) (make :button "The Button") I have programs stored in c:\projects\klarity.clj I have clojure stored in c:\clojure-1.2.1\clojure-1.21. I am running c:\cljr\clj-installer

casting spels in clojure problem

2011-12-11 Thread jayvandal
I am trying castin spels in clojure and I get this error. What does it mean?? user=> (spel-print describe-paths 'living-room game-map) java.lang.IllegalArgumentException: Wrong number of args (3) passed to: user$spel-print (NO_SOURCE_FILE:0) == code is

no :main namespace specified in project.clj

2011-12-06 Thread jayvandal
I tried to run sqlitetest project in lein.I get this error no :main namespace specified in project.clj Why would i get an error in an example? I first run lein deps. Then i run lein run then comes error?? -- You received this message because you are subscribed to the Google Groups "Clojure" gro

running foo.clj no main?? install clojure

2011-12-02 Thread jayvandal
i coded the foo.clj program = (ns foo) (defn hello [x] (println "Hello," x)) (if *command-line-args* (hello "command line") (hello "REPL")) = I run this line java -cp c:/opt/jars/clojure.jar:. clojure.main foo.clj I get it can't find clojure.mai

classpath on seesaw????

2011-11-11 Thread jayvandal
I am trying to run the examples in seesaw.I must not have seeesaw installed correctly. any help please Microsoft Windows [Version 6.0.6000] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\>cd cljr C:\cljr>java -jar c:/clojure-1.3.0.jar c:/cljr/kitchensink.clj Error: Unable to

gaidica command??

2011-11-10 Thread jayvandal
I tried this command but can't find how to execute it. $ lein run -m gaidica.core What folder do I execute this ? (Vista windows ) Probably simple but it's difficult for me Thanks # gaidica Example Seesaw application. Display weather data from weatherunderground.com ## Usage $ lein deps

where to find clojure swing definitons

2011-11-07 Thread jayvandal
I wonder where I can find swing definitions such as text field locations on a panel or frame? How do I put 2 panels side by side to show two different records? How do I put text fields across the screen or down the screen?? Any help I would appreciate. Thanks -- You received this message because

cljr install makes .cjr directory

2011-11-06 Thread jayvandal
Whay does cljr-installer.jar make directories with .(period) in front of the dir name as .cljr and .lein and m2. -- 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 me

where do you put clojure.java.jdbc?????

2011-10-24 Thread jayvandal
I am running Vista. I installed Clojure as c:\clojure. Where and how do you put the file [org.clojure/java.jdbc "0.0.3-SNAPSHOT"]] -- 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

Exception in thread "main" java.lang.Exception: Unable to resolve symbol: PK♥♦¶

2011-10-13 Thread jayvandal
I am trying to run "CRUD in clojure" 2010 and I get this problem lein uberjar Some problem ? Any help thanks Exception in thread "main" java.lang.Exception: Unable to resolve symbol: PK♥♦¶ t↕N? in this context (core.clj:1) Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Micr

error after install java IO file not found

2011-09-28 Thread jayvandal
I installed clojure from Programming Clojure page 12. I try to run snake.clj. This is what I get What causes this?? Thanks == C:\clojure-1.3.0>java -jar c:/clojure-1.3.0/clojure-1.3.0.jar c:/clojure-1.2.1/e xamples/snake.clj Exception in thr

how to get the correct library????

2011-09-23 Thread jayvandal
I downloaded the contrib file that was indicated as the file containing (:use clojure.contrib.duck-streams)) but I get an error when trying to run code. I get errors but don't know what clojure is seeking?? Any advice will be appreciated -- You received this message because you are subscribed t

good example of clojure swing db program

2011-09-16 Thread jayvandal
I would like to see a listing of a swing type CRD database program to see how the items go together. Thanks, still trying to relate to Clojre type programming -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

run clj file get user/counter-app error?

2011-09-13 Thread jayvandal
I am running a swing tutorial clojure program file and when I run the result is ++ user=> (load-file "c:/clojure-1.2.1/counter-app.clj") #'user/counter-app user=> ++ What does this line mean? #'user/counter-app The name of my fi

Readd error???

2011-09-08 Thread jayvandal
I have installed cake accoring to the instructions. I then attempt ot run the sql and I get this information. I don't know where to look. Could anyone explain what the problem is??? Thanks in advance ===Microsoft Windows [Version 6.0.6002] Copyright (c) 2006

lein gets error java 1.6.0_26 ???

2011-08-17 Thread jayvandal
I some how got this error. I have deleted clojure, lein, java, changed paths and I get this error What is the problem??? Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\jim>lein Exception in

lein deps gets error

2011-08-12 Thread jayvandal
I do a lein new hello_world and I get a directory called hello_world. I then try "lein deps". I get several lines of errors starting with "#!" What am I doing wrong? = Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation.