This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cygwin and Java
- From: "M.K. Choy" <mkc27 at cam dot ac dot uk>
- To: cygwin at cygwin dot com
- Date: 13 Jul 2009 23:21:32 +0100
- Subject: Cygwin and Java
- Reply-to: mkc27 at cam dot ac dot uk
Hi,
I wrote a class file ComeAgain.java with Emacs in Cygwin:
public class ComeAgain
{ private static int n;
public static void main(String[] args)
{ n = 57;
System.out.printf("Come in number %d please%n", n);
}
}
I compiled the script successfully with "javac ComeAgain.java" in Cygwin.
But when I try to invoke with "java ComeAgain", I got an error message:
Exception in thread "main" java.lang.NoClassDefFoundError
Do you have any idea why?
Best wishes,
Munkit
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple