From owner-freebsd-java@FreeBSD.ORG Mon Nov 17 09:10:00 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E94116A4CE for ; Mon, 17 Nov 2003 09:10:00 -0800 (PST) Received: from mail.dti.supsi.ch (mail.die.supsi.ch [193.5.153.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 680B543FF7 for ; Mon, 17 Nov 2003 09:09:58 -0800 (PST) (envelope-from roberto.nunnari@supsi.ch) Received: from supsi.ch (pcm2027.dti.supsi.ch [193.5.152.27]) by mail.dti.supsi.ch (8.11.6/8.11.6) with ESMTP id hAHH9rR23418; Mon, 17 Nov 2003 18:09:53 +0100 Message-ID: <3FB900E1.5010100@supsi.ch> Date: Mon, 17 Nov 2003 18:09:53 +0100 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Bullock References: <20031118032756.S72868-100000@arwen.lorien.dawnbreaks.net> In-Reply-To: <20031118032756.S72868-100000@arwen.lorien.dawnbreaks.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: java@freebsd.org Subject: Re: ClassNotFoundException X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2003 17:10:00 -0000 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========================