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.20030414154201.02e67b90@mail.alphatech.com> X-Sender: alant AT mail DOT alphatech DOT com Date: Mon, 14 Apr 2003 15:46:10 -0700 To: From: Alan Thompson Subject: Re: compile java, but not run? In-Reply-To: <34385CBC5E8E664EB0007814636AB36A677C02@exchange1.dimension s.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi Scott - I run java on Cygwin all the time, no problems. In addition to the checkes suggested previously, you might try downloading and re-installing JDK 1.4.1 from Sun. Mine is sitting on C:/j2sdk1.4.1, rather in Program Files (that shouldn't make a difference, but you might have something else weird in your environment that this could overwrite). If I open a cygwin window, I can type: > > which java /cygdrive/c/j2sdk1.4.1/bin/java > > java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21) Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode) > Good luck, Alan Thompson At 03:59 PM 4/14/2003 -0500, Scott Purcell wrote: >Hello, > >I have been kind of getting familiar with cygwin, but I having trouble when it comes to running java files? > >I can compile them all day long, whether they exist in a package or just on C:/ > >But when I run them, it cannot find java. I know this because if I type in java in a cygwin window, it does not come up with the java -help page. > >But my $PATH looks good, and my $CLASSPATH looks good. > >Here is my PATH and you can see the jdk1.3.1/bin is there: > >See here >$ echo $PATH >/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Perl/bin/:/cygdrive/c/Perl/bin/:.:/cygd >rive/c/Program Files/jdk1.3.1_04/bin:/cygdrive/c/progra~1/oracle/ora81/bin:/cygd >rive/c/Program Files/Oracle/jre/1.1.7/bin:/cygdrive/c/WINNT/system32:/cygdrive/c >/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Common Files/Ad >aptec Shared/System:/usr/X11R6/bin > >spurcell AT DSGSTL-PC-1523 /cygdrive/c >$ java > >spurcell AT DSGSTL-PC-1523 /cygdrive/c >$ > > >Does anyone know how I can get this to work, as I find myself opening cmd windows and running the java files from there. > >Thanks very much >Scott K Purcell > >-- >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/