Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2003 03:30:15 +1030 (CST)
From:      David Bullock <db@dawnbreaks.net>
To:        Roberto Nunnari <roberto.nunnari@supsi.ch>
Cc:        java@freebsd.org
Subject:   Re: ClassNotFoundException
Message-ID:  <20031118032756.S72868-100000@arwen.lorien.dawnbreaks.net>
In-Reply-To: <3FB8FCBA.4020109@supsi.ch>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031118032756.S72868-100000>