Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

terminated exit value:0 error  RSS feed

 
anand ta
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am a newbie here , learning java!

I had to write an exercise on threads and i got halt on running my first thread itself!
I am running this on ubuntu 8.1 on ecplise ID!

The code tat i wrote is





When i ran i got this error!
<terminated, exit value: 0>/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/bin/java (22-Feb-09 2:55:50 PM)

Can any1 help wat this error means and where i am messing things?

Thanks in advance,
-Anand

[Nitesh: Added code tags. Please UseCodeTags]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This program wouldn't have any output -- you didn't call "start()" on any of the threads. "Terminated" means the program finished, and exit code 0 means "normal completion." So basically Eclipse says "your program is done."
 
anand ta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot Ernest! it works now!! I was not confident and hence pressed the run before i finish calling the start() ! thanks much!

Cheers,
-Anand
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!