Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.shlink.de!news.iphh.net!iphh.net!news.osn.de!diablo2.news.osn.de!195.114.241.69.MISMATCH!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: CLI Java Glitch Date: Tue, 21 Jun 2011 21:52:14 -0400 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 22 Jun 2011 01:47:19 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="uZlcKoxCDvYxlcrl0EM5vQ"; logging-data="18873"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18naAWAcXpycheD/rpC21apHeUmQSKrTJ4=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:kcQRJdtsPQP1yEEqDixP5uaejLs= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5505 On 06/20/2011 05:24 PM, Gene Wirchenko wrote: > Dear Java'ers: > > Given > > class HelloWorld > { > public static void main(String[] args) > { > System.out.println("Hello, world!"); > } > } > > is there any way around the following? > > C:\cbs2dev\test>java helloworld > Exception in thread "main" java.lang.NoClassDefFoundError: helloworld > (wrong nam > e: HelloWorld) It seems so far the consensus for a "way around" is some variation on the theme of "wrapper script".