permaculture playing cards*
The moose likes Java in General and the fly likes javac running slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "javac running slow" Watch "javac running slow" New topic
Author

javac running slow

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

hi all,
I am not sure whether this is right place to post my problem.
I need ur help to solve the problem of slow javac.
The javac compiler in m/c is running very slow. It takes about 5 minutes to compile a file. This problem started only recently but before it was working fine. Strangely the java comand executes quickly.
Reinstalling JDK did not help.
My machine has 256 MB RAM , P III processor and runs on windows 2000.


Groovy
Roger Thornhill
Author
Greenhorn

Joined: May 15, 2002
Posts: 25
You might want to post the version of Java you're running and your CLASSPATH. Five minutes to compile a file is a bit long!
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
And does it take this long to compile any Java file, or is there a particular file that it's got problems with? If the latter - is there anything else unusual about this file?
You might also want to look at the Windows Task Manager to see what your CPU and memory usage are during compilation. This can help provide clues...


"I'm not back." - Bill Harding, Twister
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

The javac is slow for any file, how ever small it is.I am using JDk 1.3.1.I switched now to 1.4 but with no difference.
The memory usage for javac fluctuates between 600k to 2000k.(captured from Task manager).
Some one please help me.
[ May 20, 2002: Message edited by: Pradeep Manjeshwar ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What is your classpath setting?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Ashok Mash
Ranch Hand

Joined: Oct 13, 2000
Posts: 1936
I know this is NOT the right solution for your problem, still let me add it here.
Using Jikes instead of javac is much faster, especially when you have dozens of packages to be compiled in a go.
Again, coming back to the strange behaviour of javac in your machine, you should try de-installing (complete wipe-out of all traces of jdk/jre etc) and then a fresh install. A complete de-install is more important that you imagine.
Good Luck!


[ flickr ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javac running slow