Multivalent
Ric Moore
wayward4now at gmail.com
Fri Sep 12 01:40:55 UTC 2008
On Thu, 2008-09-11 at 20:51 +0100, Ignazio Palmisano wrote:
> Nigel Ridley wrote:
> > I'm trying to run multivalent from the command line but get this error:
> > nigel at laptop:~/Downloads/Multivalent$ java tool.pdf.Compress -noalt Sept-08-print-EN.pdf
> > Exception in thread "main" java.lang.NoClassDefFoundError: tool/pdf/Compress
> > Caused by: java.lang.ClassNotFoundException: tool.pdf.Compress
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
> > Could not find the main class: tool.pdf.Compress. Program will exit.
> >
> > I tried the following (according the the Multivalent website):
> > Tools all live in the file Multivalent.jar, and that file is made visible to Java by adding its
> > path to your CLASSPATH environment variable. For example, for UNIX (including Mac OS X and
> > Linux), depending on your shell, setenv CLASSPATH $CLASSPATH:/path/to/Multivalent.jar or export
> > CLASSPATH=$CLASSPATH:/path/to/Multivalent.jar.
> >
> > But I get error messages trying to run the above:
> > nigel at laptop:~$ sudo setenv CLASSPATH $CLASSPATH:/home/nigel/Downloads/Multivalent/Multivalent.jar
> > sudo: setenv: command not found
> > nigel at laptop:~$ sudo export CLASSPATH=$CLASSPATH:/home/nigel/Downloads/Multivalent/Multivalent.jar
> > sudo: export: command not found
> >
> > They also suggest:
> > Alternatively, you can set the classpath explicitly as an option, as in
> > java -classpath /path/to/Multivalent.jar tool.XXX [options] files
> > but I don't understand the '[options] files' part.
>
> [options] are the options for the java program. In your case, -noalt
> Sept-08-print-EN.pdf, as in your original command line
>
> >
> > How can I set the classpath so as to get multivalent to run?
>
> I have used export in script files, e.g. .bashrc
If you want it to be changed/added immediately, then type
'source .bashrc' or where ever you decide to declare the path statement.
Ric
--
----------------------------------------------------
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256 Sign up at: http://counter.li.org/
https://nuoar.dev.java.net/
Verizon Cell # 336-254-1339
More information about the kubuntu-users
mailing list