ClassNotFoundException

Roberto Nunnari roberto.nunnari at supsi.ch
Mon Nov 17 09:10:00 PST 2003


David Bullock wrote:

> On Mon, 17 Nov 2003, Roberto Nunnari wrote:
> 
> 
>>Hi there.
>>
>>could any kind soul help please? Can't understand what's wrong here..
> 
> 
> When you use "java -jar", any "-classpath" or $CLASSPATH is ignored.
> 
> Either set the value of the 'Class-Path:' manifest entry
> when you build the jar, or use simply:
> 
>  java -cp my.jar driver.jar org.example.Main
> 
> cheers,
> David.

Yes! That works! :D Thanks.

Just one doubt.. why does it work on Windows, then?

Ciao.
-- 
               Roberto Nunnari -software engineer-
                mailto:roberto.nunnari at supsi.ch
  Scuola Universitaria Professionale della Svizzera Italiana
              Dipartimento Tecnologie Innovative
                   http://www.dti.supsi.ch
  SUPSI-DTI
  Via Cantonale                        tel: +41-91-6108561
  6928 Manno                 """       fax: +41-91-6108570
  Switzerland               (o o)
=======================oOO==(_)==OOo========================



More information about the freebsd-java mailing list