Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 18:09:53 +0100
From:      Roberto Nunnari <roberto.nunnari@supsi.ch>
To:        David Bullock <db@dawnbreaks.net>
Cc:        java@freebsd.org
Subject:   Re: ClassNotFoundException
Message-ID:  <3FB900E1.5010100@supsi.ch>
In-Reply-To: <20031118032756.S72868-100000@arwen.lorien.dawnbreaks.net>
References:  <20031118032756.S72868-100000@arwen.lorien.dawnbreaks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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========================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FB900E1.5010100>