From owner-freebsd-questions Mon Jan 15 12: 7:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail4.sdc1.sfba.home.com (femail4.sdc1.sfba.home.com [24.0.95.84]) by hub.freebsd.org (Postfix) with ESMTP id 51F2B37B698 for ; Mon, 15 Jan 2001 12:07:07 -0800 (PST) Received: from home.com ([24.5.252.61]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010115200505.BMKG15755.femail4.sdc1.sfba.home.com@home.com> for ; Mon, 15 Jan 2001 12:05:05 -0800 Message-ID: <3A63586A.72E35D42@home.com> Date: Mon, 15 Jan 2001 12:07:06 -0800 From: "Raymundo M. Vega" X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.5.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Installing Java Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I need help to install the port for java 1.2, I have installed the Blackdown linux JDK 1.2.2, but it only runs programs that are not using swing, if i do a simple program to display a message in its own window (an applet for instance) the program hangs and display the message: Received signal: Quit Received signal: Quit Received signal: Quit Received signal: Quit I am using FreeBSD 3.5.1 Java JDK 1.2.2 (Blackdown), X11R6 3.3.6, and the applet program is one example of the Bruce Eckel book Thinking in Java: //: c13:Applet1c.java // From 'Thinking in Java, 2nd ed.' by Bruce Eckel // www.BruceEckel.com. See copyright notice in CopyRight.txt. // An application and an applet. // // import javax.swing.*; import java.awt.*; import com.bruceeckel.swing.*; public class Applet1c extends JApplet { public void init() { getContentPane().add(new JLabel("Applet!")); } // A main() for the application: public static void main(String[] args) { JApplet applet = new Applet1c(); JFrame frame = new JFrame("Applet1c"); // To close the application: Console.setupClosing(frame); frame.getContentPane().add(applet); frame.setSize(100,50); applet.init(); applet.start(); frame.setVisible(true); } } ///:~ thank'x raymundo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message