aspose file tools
The moose likes Threads and Synchronization and the fly likes terminated exit value:0 error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "terminated exit value:0 error" Watch "terminated exit value:0 error" New topic
Author

terminated exit value:0 error

anand ta
Greenhorn

Joined: Feb 22, 2009
Posts: 3
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
Marshal

Joined: Jul 08, 2003
Posts: 24041
    
  13

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."


[Jess in Action][AskingGoodQuestions]
anand ta
Greenhorn

Joined: Feb 22, 2009
Posts: 3
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: terminated exit value:0 error
 
Similar Threads
How are threads implemented in Java
Thread's Priority
Thread behavior
Simple Thread Doubt -from Jane's Notes
Confusion in threads