🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17650

Help me please I'm a novice programer's in java

#17650
From: leopold rouhart
Date: Wed, 14 Oct 1998 00:00
120 lines
3477 bytes
Help me please.

 I construct a simple applet under Jbuilder 2.0 C/S of which here is the
text source.
If I execute this applet in appletviewer of the JDK 1.1.6 all is OK.
If I want to execute this applet from the browser IE 4.0 on my server WEB I
get the following
message.

NoClassDefFoundError: borland/jbcl/layout/XYLayout

 My question is.  What are the class files that I must install on the
machine client,
on the server, and in what directories and how to define the CLASSPATH,
knowing that the
structure of the server WEB IIS 3.0 is D:\inetpub\wwwroot and that my applet
and my htm
file is in directory java [D:\inetpub\wwwroot\java]

He it would be possible to explain me in detail please.



Source text for java file

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Container;
import java.lang.Object;
import borland.jbcl.layout.*;
import borland.jbcl.control.*;

//import com.sun.java.swing.UIManager;
public class testdb extends Applet {
  XYLayout xYLayout1 = new XYLayout();
  boolean isStandalone = false;
  ButtonControl buttonControl1 = new ButtonControl();
  Frame m_Frame = new Frame();

//Get a parameter value

  public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
      (getParameter(key) != null ? getParameter(key) : def);
  }

  //Construct the applet

  public testdb() {
  }
//Initialize the applet

  public void init() {
    try {
    jbInit();
    }
    catch (Exception e) {
    e.printStackTrace();
    }
  }
  //static {
  //  try {
  //    //UIManager.setLookAndFeel(new
com.sun.java.swing.plaf.metal.MetalLookAndFeel());
  //    //UIManager.setLookAndFeel(new
com.sun.java.swing.plaf.motif.MotifLookAndFeel());
  //    UIManager.setLookAndFeel(new
com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
  //  }
  //  catch (Exception e) {}
  //}
//Component initialization

  private void jbInit() throws Exception {
    xYLayout1.setWidth(400);
    xYLayout1.setHeight(300);
    buttonControl1.setLabel("buttonControl1");
    this.setLayout(xYLayout1);

    this.add(buttonControl1, new XYConstraints(65, 199, -1, -1));
  }
//Get Applet information

  public String getAppletInfo() {
    return "Applet Information";
  }
//Get parameter info

  public String[][] getParameterInfo() {
    return null;
  }

  public void paint(Graphics g) {
    m_Frame.setVisible(true);
  }


}


Source text for applet1.htm file

<HTML>
<HEAD>
    <TITLE>Demo applet</TITLE>
</HEAD>
<BODY>
    <APPLET  CODE="testdb.class"  WIDTH=200  HEIGHT=200
    CODEBASE="/Java">
    </APPLET>
</BODY>

Thank you to help me

Leopold Rouhart
leopold.rouhart@skynet.be
Belgium
Technical Details
Message-ID: <702t56$3hr$1@news1.skynet.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9268ca05adb949d,start
X-Google-Attributes: gidf74b3,public
From: "leopold rouhart" <leopold.rouhart@skynet.be>
Subject: Help me please   I'm a novice programer's in java
Date: 1998/10/14
Message-ID: <702t56$3hr$1@news1.skynet.be>
X-Deja-AN: 401079191
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
X-Complaints-To: abuse@skynet.be
X-Trace: news1.skynet.be 908392422 3643 195.238.4.242 (14 Oct 1998 19:13:42 GMT)
Organization: Belgacom Skynet SA/NV
NNTP-Posting-Date: 14 Oct 1998 19:13:42 GMT
Newsgroups: borland.public.jbuilder.java.language