Re: setting classpaths in cygwin to use with java - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: setting classpaths in cygwin to use with java
Date
Msg-id 20011010080458.A2080@dothill.com
Whole thread Raw
In response to Re: setting classpaths in cygwin to use with java  (Konrad Hernblad <konrad@pobox.com>)
List pgsql-cygwin
Konrad,

On Tue, Oct 09, 2001 at 05:57:48PM +0900, Konrad Hernblad wrote:
> At 07:02 01/10/09 -0400, Jason Tishler wrote:
> > > mount -s -b c:/ /0
> >
> >The above is a very strange mount command.  Do you know how it got into
> >your /etc/profile?
>
> i put it there.  probably should have gone in .bashprofile instead?

No.  The mount command only needs to be executed once since it is
persisted in the Windows registry.

> >Assuming that you are using Sun's Java (or some other Win32 JVM), then
> >you must use Win32 and *not* Posix path:
> >
> >     CLASSPATH=$(cygpath -w /0/java/dev/myPrj)
>
> this works (if i add the -p option also) at the cygwin prompt.  for example,

Oops, I forgot the "-p" option.

> java -cp $(cygpath -p -w $CLASSPATH) JavaClass
>
> * where JavaClass is the name of a .class file.
> * also /0/java/dev/myPrj is defined in $CLASSPATH
>
> this works, but it is very inconvenient to type this long command at the
> prompt everytime one wants to run a java program.

There is no need.  Just define (and export) CLASSPATH appropriately (i.e.,
using Win32 style paths) in your .bash_profile and you will be all set.

> >BTW, cygwin@cygwin.com is probably a more appropriate mailing list for
> >these types of issues.
>
> how can one subscribe to this mailing list?

    http://www.cygwin.com/lists.html

Jason

pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: NT install - ps
Next
From: Jason Tishler
Date:
Subject: Re: shiping pgsql with application