X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=BAYES_20 X-Spam-Check-By: sourceware.org Date: 13 Jul 2009 23:21:32 +0100 From: "M.K. Choy" To: cygwin AT cygwin DOT com Reply-To: mkc27 AT cam DOT ac DOT uk Subject: Cygwin and Java Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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