Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe05.iad.POSTED!8ad76e89!not-for-mail From: Arved Sandstrom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: CLI Java Glitch References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lines: 35 Message-ID: X-Complaints-To: abuse@newsgroups-download.com NNTP-Posting-Date: Wed, 22 Jun 2011 10:56:42 UTC Organization: Public Usenet Newsgroup Access Date: Wed, 22 Jun 2011 07:56:42 -0300 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5519 On 11-06-21 10:52 PM, Jeff Higgins wrote: > 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". > That may be so, but it's not unanimous. Another camp, and I'm in it, is happy to leave things as is. Joe Average Computer User doesn't normally open up a terminal or a command prompt and run Java commands. So this is really a discussion about making a simple thing easier for _techie_ types. I don't think it warrants the effort, and in some ways it introduces problems where none existed before. Simplify the issue for some programmers on some systems; complicate it for other programmers on other systems. I don't agree. AHS