Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2001 12:07:06 -0800
From:      "Raymundo M. Vega" <RaymundoVega@home.com>
To:        freebsd-questions@freebsd.org
Subject:   Installing Java
Message-ID:  <3A63586A.72E35D42@home.com>

next in thread | raw e-mail | index | archive | help
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.
// <applet code=Applet1c width=100 height=50>
// </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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A63586A.72E35D42>