X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.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.post@talk.nabble.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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

