From: Peter Duniho on
Lew wrote:
> On 06/05/2010 08:29 AM, Stefan Ram wrote:
>> public class Main
>> { public static void main( final java.lang.String[] args )
>> { java.lang.System.out.println( "hello world" ); }}
>
> I'm curious, Stefan, why you flout the code conventions and why you
> bother specifying "java.lang." packages.

Maybe for the same reasons that you insist on flogging the code
conventions and package declarations?

Seriously, get over it. Not everyone is writing code the way you think
it has to be written. If it really mattered that much, the compiler
would require the code to be formatted in a specific way.

Pete
From: Lew on
Stefan Ram wrote:
>>> public class Main
>>> { public static void main( final java.lang.String[] args )
>>> { java.lang.System.out.println( "hello world" ); }}

Lew wrote:
>> I'm curious, Stefan, why you flout the code conventions and why you
>> bother specifying "java.lang." packages.

Peter Duniho wrote:
> Maybe for the same reasons that you insist on flogging the code
> conventions and package declarations?
>
> Seriously, get over it. Not everyone is writing code the way you think
> it has to be written. If it really mattered that much, the compiler
> would require the code to be formatted in a specific way.

Hey, I was just wondering. Reasons interest me. So sue me.

Sheesh.

Stefan, regardless of what some people might think, I'm not criticizing your
usage, I truly am just asking after the reasoning behind it.

--
Lew
From: Roedy Green on
On Sat, 05 Jun 2010 10:23:58 +0200, thanat0s <thanspam(a)trollprod.org>
wrote, quoted or indirectly quoted someone who said :

>java.lang.NoClassDefFoundErro

this is one of the toughest errors to track down since it has so many
possible causes. You have added the complication of Android. You
might start learning desktop Java first then once you have that under
your belt, add the Android complication.

See http://mindprod.com/jgloss/helloworld.html
http://mindprod.com/jgloss/gettingstarted.html
http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR
--
Roedy Green Canadian Mind Products
http://mindprod.com

Have you ever noticed that any computer search in the movies, is always linear, with, for example, candidate fingerprints flashing up on the screen one after another? The public is still under the delusion that electronic files are microscopic filing cabinets made out of tiny wires or magnetic patches inside the computer. Most lay people are surprised that it is easy for a computer to file things simultaneously by a dozen different schemes, and that they can have any report printed in any number of different sorted orders. With physical files, they are limited to one ordering/access.
From: Arne Vajhøj on
On 05-06-2010 12:12, Tom Anderson wrote:
> On Sat, 5 Jun 2010, thanat0s wrote:
>> To be clear, i'm a brand new newbies in java programming, i just try
>> to follow android coding tutorials. and i got already a problem !
>>
>> I follow this tuto :
>> http://developer.android.com/guide/tutorials/hello-world.html
>>
>> And everything run fine, but since i try to use the XML layout
>> problems begins. I can't run the application, i c'ant event edit
>> graphicaly the layout\main.xml i got
>>
>> It seem i miss a library but how, where ? hope someone could help me.
>
> Try an android developer forum. This group mostly deals with programming
> on 'real' computers.

Java on a 1 GHz CPU with 512 MB RAM was a real computer just a few
years ago.

> That said, this problem looks like something is trying to use
> unix-specific AWT operations; are you using a unix platform? Why would
> there be AWT going on inside Eclipse, which uses SWT? This looks like a
> configuration problem. Are you using a supported platform for whatever
> this editor is?

Android is a Linux kernel.

Arne
From: Tom Anderson on
On Sat, 5 Jun 2010, Arne Vajh?j wrote:

> On 05-06-2010 12:12, Tom Anderson wrote:
>> On Sat, 5 Jun 2010, thanat0s wrote:
>>> To be clear, i'm a brand new newbies in java programming, i just try
>>> to follow android coding tutorials. and i got already a problem !
>>>
>>> I follow this tuto :
>>> http://developer.android.com/guide/tutorials/hello-world.html
>>>
>>> And everything run fine, but since i try to use the XML layout
>>> problems begins. I can't run the application, i c'ant event edit
>>> graphicaly the layout\main.xml i got
>>>
>>> It seem i miss a library but how, where ? hope someone could help me.
>>
>> Try an android developer forum. This group mostly deals with programming
>> on 'real' computers.
>
> Java on a 1 GHz CPU with 512 MB RAM was a real computer just a few
> years ago.
>
>> That said, this problem looks like something is trying to use
>> unix-specific AWT operations; are you using a unix platform? Why would
>> there be AWT going on inside Eclipse, which uses SWT? This looks like a
>> configuration problem. Are you using a supported platform for whatever
>> this editor is?
>
> Android is a Linux kernel.

The APIs and deployment model are different. Your observations are
interesting but irrelevant.

tom

--
pikachu in front if a tv shouting at the monkey jumping around the
screen-within-a-screen