Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   Re: CLI Java Glitch (http://www.velocityreviews.com/forums/t750215-re-cli-java-glitch.html)

Stefan Ram 06-20-2011 09:38 PM

Re: CLI Java Glitch
 
Gene Wirchenko <genew@ocis.net> writes:
>class HelloWorld
>>java helloworld


Can't you see?


Gene Wirchenko 06-21-2011 02:29 AM

Re: CLI Java Glitch
 
On 20 Jun 2011 21:38:36 GMT, ram@zedat.fu-berlin.de (Stefan Ram)
wrote:

>Gene Wirchenko <genew@ocis.net> writes:
>>class HelloWorld
>>>java helloworld

>
> Can't you see?


Yes, I can. How about you? Did you miss this line near the end?
C:\cbs2dev\test>java HelloWorld
After all, it was the whole point of my post.

I made the case error precisely once. It is easy to do. I
mainly run my program from within the IDE where I need not type the
classname.

Sincerely,

Gene Wirchenko

Stefan Ram 06-21-2011 07:43 AM

Re: CLI Java Glitch
 
Gene Wirchenko <genew@ocis.net> writes:
>On 20 Jun 2011 21:38:36 GMT, ram@zedat.fu-berlin.de (Stefan Ram)
>wrote:
>>Gene Wirchenko <genew@ocis.net> writes:
>>>class HelloWorld
>>>>java helloworld

>>Can't you see?

>Yes, I can. How about you? Did you miss this line near the end?
>C:\cbs2dev\test>java HelloWorld
>After all, it was the whole point of my post.


Sorry, I should have read your post more carefully!

You can write a class »x« (usually, class names should be
uppercase), so that

java x helloword

will search for a file »helloworld.class« /ignoring case/,
get the correct letter cases from this file name and then
execute that class using the case correct spelling.

(BTW, »class A{}class a{}« is a legal Java translation unit
that might make more problems under Windows than under Linux.)



All times are GMT. The time now is 12:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57