This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Multiple java processes on Linux, why? I don't make threads myself.
Posted by Wensheng Deng on December 24, 2000 at 11:10 AM
Hi Java Guru,
For testing purpose, I wrote a small GUI program which builds a
JButton object and a JTextArea object. When you press the button,
a "Aha!" string will be appended in the textArea. Please see the
program in the end of this message.
My question is: when I ran it on Redhat6.2 with java1.3, I found
that I got 12~13 java processes by running command 'ps'. But on
Solaris, there is only one java process when running the same
program. What makes the difference?
Thanks a million for any hints. -Wensheng
The program is attached below =========
public class MyFrame extends JFrame
JButton jButton = new JButton();
JTextArea jTextArea = new JTextArea();
} catch(Exception e)
public static void main(String args)
MyFrame frame = new MyFrame();
private void init() throws Exception
public void actionPerformed(ActionEvent e)
protected void processWindowEvent(WindowEvent e)
if( e.getID() == WindowEvent.WINDOW_CLOSING)