Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Spam-Filter: check_local AT alphatech DOT com 4.4(020923:1754) http://digitalanswers.org/ Message-Id: <4.3.2.7.2.20030401093515.00b83668@mail.alphatech.com> X-Sender: alant AT mail DOT alphatech DOT com Date: Tue, 01 Apr 2003 09:39:57 -0800 To: cygwin AT cygwin DOT com From: Alan Thompson Subject: Re: (Aucun objet) In-Reply-To: <5.2.0.9.2.20030331225416.02acc970@pop3.cris.com> References: <3E893752 DOT 2010408 AT hds DOT utc DOT fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi Jean-Luis, I also do a lot of java work on Cygwin. In addition to the answer Randall gave you, I would also encourage you to use the -classpath argument to the javac and java commands, rather than using the CLASSPATH environment variable. This provides a more solid control the classpath used for any given application and will help to avoid clashes between different java applications (which may expect different classpath's). I typically type the entire "java -classpath XXX MyMainClass" command into a short C-shell script so I don't need to re-type the command for repeated runs. Good luck! Alan Thompson At 10:58 PM 3/31/2003 -0800, Randall R Schulz wrote: >Jean-Luis, > >Even though you're using CYGWIN, which provides a very Unix-like environment and inside of which the PATH has a Unix-like syntax, the Sun Java compiler is a Windows application and it expects CLASSPATH to be formatted according to the Windows convention. The path components are separated with a semicolon. The path elements themselves, if they're absolute paths, must begin with a driver letter, followed by a colon, followed by an absolute path name. If you construct your CLASSPATH this way, things should work. > > >Randall Schulz > > >At 22:53 2003-03-31, you wrote: >>Hello >> >> I installed java (j2sdk1.4.0) in Windows. >> In general I work in LInux and I developped an application in JAVA and >>ANTLR. >> >> I installed CYGWIN and I want to complie my JAVA application in >>WINDOWS, i uses make for manage compilation. >> >> I set my PATH variable for JAVA access and this work fine. >> >> But when I want set my CLASSPATH variable, I am in trouble. >> >> The setting in CYGWIN environnement don't work, JAVA in out CYGWIN. >> The setting in CYGWIN script (set CLASSPATH="one dir") work but I want >>manage many dirs : >> A. If I set many dir in CYGWIN script this don't work >> B. If I set many dir in CYGWIN envi this don' work >> >>Some people have a the same pb ? >>Can you help me ? >> >>Boulanger JL > > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Bug reporting: http://cygwin.com/bugs.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/