File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes PC gets hanged for a second Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PC gets hanged for a second" Watch "PC gets hanged for a second" New topic
Author

PC gets hanged for a second

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1050

hello guys wwhen i try to compile a simple program my whole PC gets hanged any idea why is it happening


http://www.lifesbizzare.blogspot.com || OCJP:81%
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Vishal Hegde wrote:hello guys wwhen i try to compile a simple program my whole PC gets hanged any idea why is it happening

That statement itself is not that explanatory. Can give more details on what you did (any commands etc..).


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1050

only a simle java code of try catch and when i compiled it it hanged for a minute
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

It's impossible to answer this question. We don't know what kind of computer you have (slow? fast? how much memory?), which operating system you are using, what version of Java you are using, etc. Maybe you have a virus or spyware on your computer that's doing nasty things? There can be a thousand reasons for this...


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

please provide the code.

Once again, you have said nothing about your problem,
we cant help you if we dont know any thing.

its like going to a doctor and saying i am not well and then just standing there quietly saying nothing


Possible problems with hanging:

1. infinite loops
2. recursive programs (they do throw out of stack, but sometimes the pc hangs up)
3. slow IO (may be program is waiting for something to happen)


if your pc is hanging during compilation,
1. is your pc config good enough to support the program (i think javac may take quite a while in a 128 mb ram)
2. Are you using a memory hungry IDE (Eclipse /netbeans may almost hang in 128 or 64 mb ram during compilation)
3. Are you compiling just your file or all files : or ?

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Raghu Devatha
Ranch Hand

Joined: Feb 10, 2009
Posts: 39
Problem seems to be with your machine. You need to fix it. People can only help when you provide sufficient information.


dR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PC gets hanged for a second
 
Similar Threads
hello guys java beans 6 is really irritating me
Recovering corrupted .mdl files
suggest a server for jsp
suggest a server for jsp
Need urgent Help - Browser is hanging