X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: path separator Date: Fri, 06 Jun 2008 21:01:33 -0500 Lines: 40 Message-ID: References: <17704083 DOT post AT talk DOT nabble DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <17704083.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com samitj wrote: > what is the path separator in Cygwin for paths, classpaths etc.. >=20 > this works... > $ java -cp lib/matrix/matrix.jar > com.test.matrix.simulation.SimulationApplication >=20 > this fails.. > $ java -cp lib/matrix/matrix.jar:bin/ > com.test.matrix.simulation.SimulationApplication > Exception in thread "main" java.lang.NoClassDefFoundError: > com/test/matrix/simulation/SimulationApplication=20 >=20 > Can you please advise on this? java is not a Cygwin program, it's a Windows program so it uses Windows=20 notation (or their own if they choose to change it). In Windows the classpath separator is ';' $ java -h Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the "client" VM -server to select the "server" VM -hotspot is a synonym for the "client" VM [deprecated] The default VM is client. -cp -classpath *-------------> A ; separated list of directories, JAR archives, and ZIP archives to search for class files. ... --=20 Ren=E9 Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/