delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/12/10:25:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <BLU0-SMTP1097BA4F701D5EEEBF880EACED00@phx.gbl>
Date: Thu, 12 Jul 2012 16:24:33 +0200
From: Aaron Schneider <notstop AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: CTRL+C is not working with java on latest cygwin 1.7.15
References: <34147441 DOT post AT talk DOT nabble DOT com> <CAMK_jUXuu9Bmwurx733P3kV4EevCpens5ESnsP6EcRAWbxiBFQ AT mail DOT gmail DOT com>
In-Reply-To: <CAMK_jUXuu9Bmwurx733P3kV4EevCpens5ESnsP6EcRAWbxiBFQ@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 11/07/2012 21:17, K Stahl wrote:
> Just tested with this against the latest release version (1.7.15) and
> everything works as expected.
>
> Example:
> public final class Test {
>      public static void main(String[] args) {
>          System.out.println("This shall hang until CTRL-C is pressed...");
>          for (;;);
>      }
> }
>
> javac -cp . Test.java
> java -cp . Test
>
> Press CTRL-C and you are returned to the terminal.
>
> --
> 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
>
>
>

Tested here and working correctly.

$ uname -a
CYGWIN_NT-6.1-WOW64 LAPTOP 1.7.15(0.260/5/3) 2012-05-09 10:25 i686 Cygwin

$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)

$ javac -version
javac 1.6.0_25

On 11/07/2012 22:26, saltnlight5 wrote:>
 > Hi,
 >
 > I did compile and ran your Test.java program, and it's not working. I 
have
 > java 6
 >
 > $ java -version
 > java version "1.6.0_26"
 > Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
 > Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)
 >
 >
 > K Stahl wrote:
 >>
 >> Hmm, what version of Java are you using?  Mine example was tested on 
Java
 >> 1.6.
 >>
 >> --
 >> 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
 >>
 >>
 >>
 >
 >
 > -----
 > ----
 > Zemian Deng
 >

saltnlight5, could you try a fresh install of cygwin just to test?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019