This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / Jabber, when I read ThinkingInjava, I run a programme named AllOps.java. First, I compiled it successfully, afterwards, I run it, but error "Exception in thread 'main'...". Why?
-mshen1(Cora);
2000-11-1
(#12841@0)
-
Post your complet error message here, please.
-jabber(jabber);
2000-11-2
(#12917@0)
-
Exception in thread "main" java.lang.NoSuchMethodError: main.
-mshen1(Cora);
2000-11-2
(#12985@0)
-
Not all Java classes can be run as an application
-jabber(jabber);
2000-11-3
{526}
(#13050@0)
-
I guess that. Thanks. I feel a bit difficult in reading ThinkingInJAVA. Jabber, you're a good teacher and warm-hearted person. The beginners as me need your help. Don't care about the impolite words.
-mshen1(Cora);
2000-11-5
(#13261@0)
-
That book is a great one.Also I admit that it's challenge to read it. For people without coding experience in other language like C, it takes some more time to read it.
You don't have to finish every section and every line, but for some basic ones you'd better study it thoroughly, and compile the examples by yourself. Try to do some modification to those examples and see what happens.
-sailor(Sailor);
2000-11-5
{370}
(#13264@0)
-
Thanks,Sailor. Do want you say.I read 4 chapters in one week. Now, I feel so conflicting about all concepts. I try to compile the examples. After doing 10 programs, I find I have less impression about them. Changing method may be my solution. As I have been not coded for 5 yrs, it's a great challenge for me.
-mshen1(Cora);
2000-11-5
{279}
(#13272@0)
-
Cora, thanks for flattering...If you get stuck with some parts of the book., you may jump to other parts. The most important thing is to write small programms to test the principles you have learnt.
Since you were a programmer, it is not too difficult for you to pick up Java.
-jabber(jabber);
2000-11-6
{251}
(#13355@0)