compile java, but not run?

Scott Purcell spurcell@vertisinc.com
Mon Apr 14 22:38:00 GMT 2003


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@DSGSTL-PC-1523 /cygdrive/c
$ java

spurcell@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/



More information about the Cygwin mailing list