From owner-freebsd-questions Mon Jan 15 13: 9: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailout2.nyroc.rr.com (mailout2-1.nyroc.rr.com [24.92.226.165]) by hub.freebsd.org (Postfix) with ESMTP id 3325E37B401 for ; Mon, 15 Jan 2001 13:08:47 -0800 (PST) Received: from rochester.rr.com (roc-66-24-71-185.rochester.rr.com [66.24.71.185]) by mailout2.nyroc.rr.com (8.9.3/8.9.3) with ESMTP id QAA06586; Mon, 15 Jan 2001 16:04:38 -0500 (EST) Message-ID: <3A6366C3.F7CED075@rochester.rr.com> Date: Mon, 15 Jan 2001 16:08:19 -0500 From: "David M. Heller" X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Raymundo M. Vega" , freebsd-questions@FreeBSD.org Subject: Re: Installing Java References: <3A63586A.72E35D42@home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Raymundo M. Vega" wrote: > > 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 You need to look at the following web resource regarding getting Java 1.2 or 1.3 working on FreeBSD: http://www.freebsd.org/java this info applies to all versions of Java greater then 1.1** Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message