Brian,
Thanks for the quick reply. Yes, I have 3.0 installed, but still have
problems after adding
"'s to the paths.
I seemed to make progress on the second try, but the command parser seemed
to choke on the third.
History of cummulative changes to curn.bat so far:
--------- first ----------------
Tried putting "'s around the path on this line:
-classpath "C:\Program Files\clapper.org\curn\lib\curnboot.jar" ^
--- result ----
C:\Java>curn
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\clapper/org\curn
----------- second -------------------------------------
put "'s on the path on this line:
set JAVA_VM_ARGS=-Dcurn.home="C:\Program Files\clapper.org\curn"
-- result -- (progress!)
C:\Java>curn
Exception in thread "main" java.lang.ClassNotFoundException:
org.clapper.curn.Tool
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.clapper.curn.Bootstrap.loadAndRun(Bootstrap.java:265)
at org.clapper.curn.Bootstrap.main(Bootstrap.java:173)
--------- third -------------
tried putting "'s on paths on following lines:
org.clapper.curn.Bootstrap ^
"C:\Program Files\clapper.org\curn\lib" ^
"C:\Program Files\clapper.org\curn\plugins" ^
----- result (with echo on) ---------
C:\Java>curn
C:\Java>if "Windows_NT" == "Windows_NT" setlocal
C:\Java>rem ----------------------------------------------------------------
----
-------
C:\Java>rem Front end Windows script for the curn RSS reader
C:\Java>rem
C:\Java>rem $Id: curn.bat 6205 2006-07-05 22:13:51Z bmc $
C:\Java>rem ----------------------------------------------------------------
----
-------
C:\Java>set JAVA_VM_ARGS=-Dcurn.home="C:\Program Files\clapper.org\curn"
C:\Java>rem Make sure Java user.home property accurately reflects home
directory
C:\Java>if NOT "" == "" set JAVA_VM_ARGS=-Dcurn.home="C:\Program
Files\clapper.o
rg\curn" -Duser.home=
C:\Java>if NOT "" == "" set JAVA_VM_ARGS=-Dcurn.home="C:\Program
Files\clapper.o
rg\curn"
C:\Java>"C:\Program Files\Java\jre1.5.0_09\bin\java" -Dcurn.home="C:\Program
Fil
es\clapper.org\curn" -classpath "C:\Program
Files\clapper.org\curn\lib\curnboot.
jar" -ea -client org.clapper.curn.Bootstrap "C:\Program
Files\clapper.org\curn\l
ib" ^
Usage: java class org.clapper.curn.Bootstrap [jar|zip|directory] ... --
programC
lassName [args]
C:\Java>"C:\Program Files\clapper.org\curn\plugins" @user.home\curn\plugins
@use
r.home\.curn\plugins @user.home\curn\lib @user.home\.curn\lib --
org.clapper.cur
n.Tool
'"C:\Program Files\clapper.org\curn\plugins"' is not recognized as an
internal o
r external command,
operable program or batch file.
C:\Java>
-----Original Message-----
From: Brian Clapper [mailto:bmc@xxxxxxxxxxx]
Sent: Saturday, October 28, 2006 12:48 PM
To: Richard Pickings
Cc: curn-users@xxxxxxxxxxx
Subject: Re: [curn-users] Newbie question
On 10/28/06 15:01, Richard Pickings wrote:
> Hi,
> I'm an old C++ programmer, but new to Java and trying to get curn to run.
> When I run curn.bat, I get the following error:
>
> C:\Java>curn
> Exception in thread "main" java.lang.NoClassDefFoundError:
> Files\clapper/org\curn
>
> I apologize for such a simple question, but I've spent several hours
> Googling around and messing with my CLASSPATH to no avail. I've installed
> the Java 5.0 SE JDK and all of the demo programs seem to run just fine.
Here
> is my configuration:
>
> Windows 2000 SP4
> javac 1.5.0_09
> java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
> Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)
>
> curn downloaded and installed on 10/20/06
>
> CLASSPATH - environment variable not set.
> PATH - includes: C:\Program Files\Java\jdk1.5.0_09\bin
>
> Thanks for any help!
Richard,
The CLASSPATH is set in the curn.bat file. However, it looks to me like a
simple .bat file quoting issue--one I didn't hit because (a) I typically run
curn on Linux, and (b) when I install curn for testing on Windows, I don't
typically install it under C:\Program Files. I'm betting the space in the
"Program Files" folder name is screwing up the invocation of the Java
executable; it needs to be quoted in the .bat file. (That's my fault.)
Try that. If it fixes the problem, please let me know. (And, of course, if
it
doesn't fix the problem, please let me know, too.)
You didn't mention the version of curn that you're using; I'm assuming it's
3.0.
Regards,
--
-Brian
Brian Clapper, http://www.clapper.org/bmc/
That's the thing about people who think they hate computers. What they
really hate is lousy programmers.
-- Larry Niven and Jerry Pournelle in "Oath of Fealty"
---
*** Posted to the curn-users mailing list (curn-users@xxxxxxxxxxx).
Back to curn-users archive.