From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23271 invoked by alias); 29 Aug 2014 08:07:23 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 23260 invoked by uid 89); 29 Aug 2014 08:07:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 29 Aug 2014 08:07:21 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7T87Gq1017181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 29 Aug 2014 04:07:16 -0400 Received: from zebedee.pink (ovpn-113-62.phx2.redhat.com [10.3.113.62]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7T87C5r025927; Fri, 29 Aug 2014 04:07:13 -0400 Message-ID: <540034B0.4010701@redhat.com> Date: Fri, 29 Aug 2014 08:07:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: "classpath@gnu.org" , kgy , "java@gcc.gnu.org" Subject: Fwd: Re: GCJ ------ file type not supported by system References: In-Reply-To: X-Forwarded-Message-Id: Content-Type: multipart/mixed; boundary="------------050108060600040005070708" X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00016.txt.bz2 This is a multi-part message in MIME format. --------------050108060600040005070708 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Content-length: 268 I don't have an answer for you. Maybe someone on the Classpath list does. But I have to tell you that Classpath is not being actively developed, so your problem is unlikely to be fixed. You'll have to debug it yourself or find someone to debug it. Sorry. Andrew. --------------050108060600040005070708 Content-Type: message/rfc822; name="Re: GCJ ------ file type not supported by system.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="Re: GCJ ------ file type not supported by system.eml" Content-length: 6652 Return-Path: java-return-27356-aph=redhat.com@gcc.gnu.org Received: from zmta01.collab.prod.int.phx2.redhat.com (LHLO zmta01.collab.prod.int.phx2.redhat.com) (10.5.81.8) by zmail15.collab.prod.int.phx2.redhat.com with LMTP; Fri, 29 Aug 2014 04:01:12 -0400 (EDT) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by zmta01.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 23524181F64 for ; Fri, 29 Aug 2014 04:01:12 -0400 (EDT) Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7T81BDr010811 for ; Fri, 29 Aug 2014 04:01:11 -0400 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7T81756014756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 29 Aug 2014 04:01:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-id:list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=nD8 c5LOqt9HbfNj6qjbBrKjd6Y340w8KPVpTR4AAW7TqP049z0Y39JuWLXvqDa0hnsq d+JTbb4p49VLrlBkWEbpjHqzGfDnZPxCVlizWFZL8SQdiDYb1ndcFgQkbaLnchbp f8IL7aWE5em2I9U+2CV3uIQYsalg19+J7uXfjtmQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-id:list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding; s=default; bh=ixnvcZSCR o7MEzcoOYhur+FunCo=; b=cXJHoXVDW9IytizCKXf1eUq1NQFjb5EEkwOTMtCqK YKshBsS3MKmBTeZ25pME80ysbXDmoiuDKSBoopfYhlijH2wEyVYJl7bt4/Z76tiR 7KwSCc/WIamOtONxAFGdJdeaT1JqGZ31nAEHwXHcCVv9iPXGm6fQK1tcyNdwcF/2 78= Received: (qmail 19282 invoked by alias); 29 Aug 2014 08:00:59 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Delivered-To: mailing list java@gcc.gnu.org Received: (qmail 19266 invoked by uid 89); 29 Aug 2014 08:00:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_50,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-HELO: mail-outd.mail.t-online.hu Received: from mail-outd.mail.t-online.hu (HELO mail-outd.mail.t-online.hu) (195.228.240.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Aug 2014 08:00:53 +0000 Received: from P5LD2Deluxe (dsl54011D33.fixip.t-online.hu [84.1.29.51]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail02d.mail.t-online.hu (Postfix) with ESMTPSA id 3hktXg16ywzNd for ; Fri, 29 Aug 2014 10:00:51 +0200 (CEST) Message-ID: From: "kgy" To: "GCJ" Subject: Re: GCJ ------ file type not supported by system Date: Fri, 29 Aug 2014 10:00:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original Content-Transfer-Encoding: 7bit X-DCC--Metrics: mail02d.mail.t-online.hu 1308; Body=1 Fuz1=1 Fuz2=1 X-Spam-Probability: 1.41492761951e-10 X-IsSubscribed: yes X-RedHat-Spam-Score: -4.202 (BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Scanned-By: MIMEDefang 2.68 on 10.5.110.17 Content-length: 2736 >> I create a native exe [...] And at this point crashes the program [...] >http://sscce.org/ >Regards, Bodo I apologise for my trifling. I think too much on this problematic error message, and I forgot to take notice of correct form of requiring a support. I create a native exe for windows by Cygvin.gcj v4.8.3. This ended perfectally. And when I like to run, than exe start and run to the point where I like to write to output a sound stream with the "Audio stream with the javax.sound.sampled.AudioSystem.write(...)" method. 2nd parameter of this method is "AudioFileFormat.Type.WAVE". Exactly the Java source is: private long genSliceFeat(int featStart, int featEnd) throws Exception { WaveReader reader = new WaveFileReader(audioFile); AudioFormat format = reader.getFormat(); int framStart = ((int) (featStart * freqRatio)); int framEnd = ((int) (featEnd * freqRatio)); int frameSize = format.getFrameSize(); long pos = framStart * frameSize; byte[] wbytes = new byte[(framEnd - framStart) * frameSize]; int read = reader.read(pos, wbytes); ByteArrayInputStream bais = new ByteArrayInputStream(wbytes); AudioInputStream ais = new AudioInputStream(bais, format, read / frameSize); AudioSystem.write(ais, AudioFileFormat.Type.WAVE, sliceWavFile); bais.close(); ais.close(); bais = null; ais = null; System.gc(); return extractWave(sliceWavFile, featureFile, FRONTEND_NAME_FOR_WAVE); } And the error message concerns to the "AudioFileFormat.Type.WAVE" parameter which gives the type of output sound file. And at this point crashes the program with the next error message: java.lang.IllegalArgumentException: file type not supported by system at javax.sound.sampled.AudioSystem.write(Unknown Source) at com.all.smws.speech.SpeechFilter.genSliceFeat(Unknown Source) at com.all.smws.speech.SpeechFilter.getAnnotations(Unknown Source) at com.all.sndsep.segmentation.Segmentor.getNewAnnotations(Unknown Source) at com.all.sndsep.segmentation.Segmentor.getNewAnnotations(Unknown Source) at com.all.sndsep.segmentation.Segmentor.getNewAnnotations(Unknown Source) at com.all.sndsep.segmentation.Segmentor.getAllAnnotations(Unknown Source) at com.all.smws.speech.SpeechFilter.getSmwsAnnotations(Unknown Source) at com.all.smws.speech.SMWS.getSpeech(Unknown Source) at com.all.onins.oi.stream.OnlineInputStream.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Please, help me someone with any words about why. The command line, which generates the exe in Cygwin gcj -fjni -mwindows --main=com.all.onins.oi.OnlineInputStub ./Jars/sndsep.jar ./Jars/sns.jar ./Jars/smws.jar ./Jars/onins.jar -o onins_noopt.exe Best regards Gyozo Karsai from Hungary --------------050108060600040005070708--