NNTP-Posting-Date: Sat, 03 Aug 2013 14:05:39 -0500 Date: Sat, 03 Aug 2013 20:05:36 +0100 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Java compilers References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 23 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-7RLd56TSUYKcDkqR6TmYnGKdsy6BPSFQjm2xXUyZsxJ+Kclm6cDscFSdFKiXIEjiyZLLA1QkarNcqf3!MHHz7xV0183jg/SsMLZI+1l8V4yc0gF36LkSi0Y/rrFc0aaH/eOLt4qM1PJGNguONkuGwIAy+vk= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1920 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: csiph.com comp.lang.java.programmer:24896 On 03/08/13 18:29, Olurotimi Ajayi-Dopemu wrote: > Are there Java compilers that allow the compiled code to be run from an existing operating system. IE compile source on linux run only on linux after compilation. This is mostly a speed question but if anyone can add pros or cons of this that would be great. Thanks a bunch. > Well there's gcj (Gnu Compiler for Java) For a class Test.java on my Linux box $ gcj --main=Test -o Test Test.java gives me a 64 bit ELF binary executable and $ Test executes the code, no interpreter required. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun