www.delorie.com/archives/browse.cgi | search |
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?= <r DOT berber AT computer DOT org> |
Subject: | Re: path separator |
Date: | Fri, 06 Jun 2008 21:01:33 -0500 |
Lines: | 40 |
Message-ID: | <g2cq5s$ema$1@ger.gmane.org> |
References: | <17704083 DOT post AT talk DOT nabble DOT com> |
Mime-Version: | 1.0 |
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 |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> *-------------> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |