Applet in Tomcat-Urgent

hai to everybody,
i am using tomcat-4.1.27 and j2sdk-1.4.0_01 and i have
been trying to load simple applet in HTML page by running tomcat server
but it is displaying at the status bar as class not found, but it is
showing the message Loading applet in my HTML page but the content in applet is not getting displayed.Please help me.
reg,
arvind

hi,
i have attached code below
i am having a frame divided into two columns one is for html
one is for JSP
/*Frame.html */
<html>
<frameset cols="25% ,75%">
<frame src="App.html">
<frame src="Design.jsp">
</frameset>
</html>
In Design.jsp i am trying to display simple applet with a string message
the code is below
/*Design.jsp*/
<html>
<body>
Below it shows a simple applet
<h1>
<p align="center">
<center>
<jsp:plugin type="applet" code="SimpleBanner.class" width="300" height="150" codebase="arv/" jreversion="1.4">
</jsp:plugin>
</center>
</body>
</html>
In the above code the applet class file SimpleBanner is under the directory c:/arv/SimpleBanner and i am using tomcat 4.1.27 and j2sdk 1.4.0_01
/*SimpleBanner.java"*/
import java.applet.*;
import java.awt.*;
public class SimpleBanner extends Applet
public void init()
setBackground(Color.cyan);
setForeground(Color.red);
public void paint(Graphics g)
g.drawString("Henkel Spic",50,30);
when i try to run by giving url-http://localhost:8080/Frame.html
the page displays with applet size but not the string displaying inside
i don't know where the prob is.In the status bar it is showing
SimpleBanner.class not found.
help me.
reg arvind

Similar Messages

  • Problem loading applet from tomcat

    I am facing a problem loading the batik applet from tomcat. I have placed all the jar files of batik in ROOT directory in tomcat. Along with the folder containing the batik applet. Still i receive the following exception when trying to load the html page containing batik applet.
    Applet tag in html page is:
    <applet codebase = "." code="batik_applet.BatikApplet.class" name="myApplet" width="1600" height="1200" hspace="0" vspace="0" align="middle" archive="batik-swing.jar,batik-gvt.jar,batik-bridge.jar,xml-apis-ext.jar,batik-css.jar,batik-util.jar,batik-dom.jar,batik-svg-dom.jar,batik-anim.jar,batik-awt-util.jar,batik-codec.jar,batik-ext.jar,batik-extension.jar,batik-gui-util.jar,batik-parser.jar,batik-script.jar,batik-svggen.jar,batik-transcoder.jar,batik-xml.jar,js.jar,pdf-transcoder.jar,xalan-2.6.0.jar,xerces_2_5_0.jar,xml-apis.jar">
    </applet>
    I already have a folder named batik_applet containing BatikApplet.class in the ROOT directory.
    ========Exception===========
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet.class with proxy=DIRECT
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet.class with cookie "JSESSIONID=1A75299B77372108560B4DF8DC65A3A6"
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet/class.class with proxy=DIRECT
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet/class.class with cookie "JSESSIONID=1A75299B77372108560B4DF8DC65A3A6"
    load: class batik_applet.BatikApplet.class not found.
    java.lang.ClassNotFoundException: batik_applet.BatikApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: batik_applet.BatikApplet.class
    Any help would be appreciated.

    Assuming that your applet is not in a jar file (don't see a value for archive)
    you have a file callsed ProcessStatus.class in a folder WEB-INF\classes relative to
    the location of the jsp file.
    So if the jsp file is in
    myJSPFileFolder
    the class should be in:
    myJSPFileFolder\WEB-INF\classes
    If you want to see when the jre is trying to load and where it it trying to load it from you
    can inspect a full trace, to turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    for 1.5:
    deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    The trace should show something like :
    Caused by: java.io.FileNotFoundException: http://server/location/filename.class (The system cannot find the path specified)

  • Loading an applet in tomcat 4.x

    Hi,
    I have been reading the forums for a while trying to find an explanation to the problem I am having with no success.
    The problem is that I have an applet that has a dynamic number of parameters. The number of parameters is determined by the contents of an application bean which is part of the environment.
    The problem is that I can't get the applet to work using the <applet> tag. It seems that no matter what I set the codebase parameter to, I always get the dreaded "ClassDefNotFound Exception: FacilityApplet" in IE 6.0 or "ClassFormatError: Bad Major Version Number" exception in Netscape 4.79.
    I am using JDK 1.4_0_01 and Tomcat 4.1.12 and my application (oam), context is organized as follows:
    webapps/
    oam
    WEB-INF
    classes
    lib
    applets
    facility
    jsp
    html
    index.html
    I have jarred the applet into a file called FacilityApplet.jar and stored it into the oam/applets/facility directory. The contents of the jar file follows:
    META-INF/
    META-INF/MANIFEST.MF
    FacilityApplet.class
    common/DataEvent.class
    common/Facility.class
    common/Link.class
    DialogBox/
    DialogBox/DialogBox$CloseDialog.class
    DialogBox/DialogBox$CloseWindow.class
    DialogBox/DialogBox.class
    The following is the contents of my jsp page that attempts to load the applet.
    <html>
    <head>
    <!-- Ensure the HTTP Server Does Not Save this Page in Cache -->
    <meta HTTP-EQUIV=Pragma CONTENT=no-cache >
    <title> Status Page </title>
    </head>
    <%@ page import="javaBeans.SettingsBean" %>
    <jsp:useBean id="settings" class="SettingsBean" scope="application" />
    <body BGCOLOR="honeydew" LINK="Blue" TEXT="black" VLINK="Red">
    <h1>
    Application Status
    </h1>
    <%
    // Make sure we have a good bean to work with
    if (settings.getTotalFacilities() != 0) {
    %>
    <applet
    archive="FacilityApplet.jar"
    codebase="http://localhost:8080/oam/applets/facility"
    code="FacilityApplet.class"
    width="300" height="150" >
    <param name="PORT" value="8939" >
    <%
    for (int i = 0;i < settings.getTotalFacilities();i++) {
    %>
    <param name="FAC_<%= i %>" value="<%= settings.getFacilityName(i) %>">
    <param name="STATE_<%= i %>"
    value="<%= settings.getFacility(i).getState() %>">
    <% } %>
    </applet>
    <% }
    else {
    %>
    <h2 align="center"> No Facilities to Display </h2>
    <% } %>
    </body>
    </html>
    Here are the values for codebase that I have tried so far:
    codebase="<%= request.getContextPath() %>/applets/facility"
    codebase="http:localhost:8080/oam/applets/facility"
    codebase="../applets/facility"
    I also expanded the jar file under the applets/facility directory with the same results. I also copied all the class files in the same directory as my jsp file, codebase="facility", with the same results.
    Now, if I use the <jsp:plugin> tag the applet loads with no problems using codebase="<%= request.getContextPath() %>/applets/facility", but that does not allow me to set my applet parameters dynamically. It works fine if I hardcode my parameters inside the <jsp:param> tag. However, I can explain this since it will require the JSP compiler to do multiple passes over the source code, and I don't think it does that.
    My PC has the latest version of the JRE plugin 1.4.X.
    Any help will be greatly appreciated.
    Maizo

    Folks,
    I hate to follow up my own posting but I figured out the problem. My browser was using its own JVM, which of course was an old one.
    Sorry to waste these resources
    Maizo

  • Applet in Tomcat

    I'm trying to use an applet in a JSP page running on a tomcat server. My problem is that while the page loads fine, none of the applets (there are 3) can find their code, which I have put into WEB-INF/classes and WEB-INF/lib as .class and .jar files respectively. What do I need to do to make these classes visible?

    Yes, i use this code
    <jsp:plugin type="applet" code="applets.loadbsk.LoadBasket.class"
    archive="/myDirectory/applets.jar"
    width="380" height="280"
    jreversion="1.3" name="LoadBasket">
    <jsp:params>
    <jsp:param name="MyParamId" value="<%= sParamId %>" />
    </jsp:params>
    </jsp:plugin>

  • Applets on Tomcat

    Hello Javaranchers
    I have made a simple applet which actually works fine on my ie6. But when I deploy all source to my Tomcat 4.1 I cannot get it to work.
    I have places my applet source in a package called dk.chatrmi. My class file is called ChatImpl.class. I have placed the applet in the classes dir of my Tomcat. The following is my html file, which I have placed in the root of my Tomcat "examples". This is the content of the file:
    <html>
    <applet code="dk.chatrmi.ChatImpl.class" codebase="http://localhost:8080/examples/servlet" width=800 height=400></applet>
    </html>
    I have added the full path to the codebase attr. but still I cannot get it to work.
    I have sdk 1.4 installed on my computer.
    I get the following error in my Java console:
    PLEASE HELP!!!
    load: class dk.chatrmi.ChatImpl.class not found.
    java.lang.ClassNotFoundException: dk.chatrmi.ChatImpl.class
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:153)
    at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:506)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1775)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
    at sun.applet.AppletPanel.run(AppletPanel.java:292)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:252)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
    ... 10 more
    Regards Ralph

    Your codebase doesn't look right -- probably should read (with an s at the end):
    codebase="http://localhost:8080/examples/servlets"
    If that doesn't correct the problem, make sure that the following is a valid path:
    examples/servlet/dk/chatrmi
    to a file named ChatImpl.class
    ;o)
    V.V.

  • New to applet on tomcat

    hi
    i m new to applets and i m confused whr to put my class files for appley either in jsp folder or webinf/classes folder.
    My applets is going to use sevral class do i have to put all in the same folder from whr my applet is starting.
    plz help
    i read the documentation of tomcat but it doesn't say whr to keep class files for applets.

    I've just started with applets as well. I found that you have to put your .jar or .class files in the same directory as your html page.

  • How to deploy jfxpanel with applet to Tomcat.....

    I want to deploy jfxpanel with in a panel in applet. But a message appear that jfxpanel class not found. when i include the jar file jfxrt.jar, tomcat isn't loaded this file. After that i use the environment varibale and set the class path in javafx runtime lib. but still unable the same exception appeared. I want your help to solve this issue..

    Thank you igor. Your reply resolve most of the issues.. of my application. when i installed javafx runtime alone . the application link http://javafx.com/about-javafx/ that you have given me works fine but it changes the jre or something else... that my own developed application not able to make connection with the tomcat server. when i reinstalled jdk6u29 my application works fine and the link above is not working.
    After that without installing the runtime of javafx 2.0 i install the javafx sdk 2.0.1 the runtime installed by itself. but the same link throws the same exception the exception as after launching my own client application.
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         ... 20 more
    Exception: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
    After installing the runtime of javafx again the link worked successfully and my client application application didn't able to make connection with tomcat.
    is there any way to merge jre with javafx runtime. and with loading of jre , javafx runtime loaded by itself.????

  • How can i add applet in application urgent

    Sir
    i design some buttons in cofeecup applet button factory
    it gives me an applet code.i design all drop down menus
    now i want to and it in my application.
    thanks in advance

    A few pointers for using these forums:
    * Once you post a question, don't create a new thread on the same subject--when you do that, you are spamming the forum and people don't like that.
    * Remember that there are a lot of people asking for help and a much smaller number giving it. Note for example that in the last 24 hours alone, there were over 200 active threads in the general Java Programming forum.
    * If you have to follow up on something you posted earlier, just reply to your own post.
    * People in this forum are generally happy to answer specific questions about Swing components but you have essentially asked someone to write your application for you. You probably need to work through some of the Java tutorials:
    http://java.sun.com/docs/books/tutorial/uiswing/

  • TextFields / labels in Applet...Urgent help needed please!!

    I have been trying for days to add labels and textFields to my applet and can only manage to display one.
    My assignment instructions suggest I use makeTextField method and call the setEditable method from the makeTextField method to avoid repetition of code.
    The following is my code...I must have this done in the next couple of days so if someone could please please give me some assistance it would be really appreciated....also, thoughts on my layout would be great as well...i cant seem to set up my buttons in the correct order.
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class Registry4b extends Applet implements ActionListener {
    public void init() {
    backgroundColor = new Color(200,255,255);
    this.setLayout(new FlowLayout(FlowLayout.CENTER,4,1));
    makeButtons();
    row1 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row1.add(clearB);
    row1.add(studFindB);
    row1.add(studForB);
    row1.add(courB);
    row2 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row2.add(studBackB);
    row2.add(courFindB);
    row2.add(courForB);
    row2.add(studB);
    row3 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row3.add(courBackB);
    add(row1);
    add(row2);
    add(row3);
    Panel p = new Panel(new BorderLayout());
    Label studID = new Label("STUDENT ID");
    TextField entry = new TextField(" ");
    p.add(studID,BorderLayout.WEST);
    p.add(entry,BorderLayout.CENTER);
    Label firstTF = new Label("FIRST NAME");
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("West",courBackB);
    add("East",studB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("North",p);
    add("South",courForB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("North",courFindB);
    add("South",studBackB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("West",p);
    add("East",studForB);
    setBackground(backgroundColor);
    clearB.addActionListener(this);
    courBackB.addActionListener(this);
    studB.addActionListener(this);
    courForB.addActionListener(this);
    courFindB.addActionListener(this);
    studBackB.addActionListener(this);
    courB.addActionListener(this);
    studForB.addActionListener(this);
    studFindB.addActionListener(this);
    private Label makeLabel(String label) {
    Label label1 = new Label(label,Label.RIGHT);
    label1.setFont(new Font("Courier",Font.BOLD,10));
    return label1;
    public void start() {
    appletWidth = 8*4+row1.getSize().width;
    appletHeight = 8*(2+courBackB.getSize().height);
    public void paint(Graphics g) {
    setSize(appletWidth,appletHeight);
    validate();
    public void actionPerformed(ActionEvent e) {
    String s = (String)e.getActionCommand();
    private Button makeButton(String label, Color color, Font font) {
    Button b = new Button(label);
    b.setBackground(color);
    b.setFont(font);
    return b;
    private Panel makePanel(LayoutManager lm, Color c) {
    Panel p = new Panel();
    p.setLayout(lm);
    p.setBackground(c);
    return p;
    private void makeButtons() {
    Font f = new Font("Courier", Font.BOLD, 10);
    Color grey = new Color(255,100,100);
    clearB = makeButton("CLEAR",grey,f);
    studB = makeButton(" STUDENTS ",grey,f);
    studForB = makeButton("->",grey,f);
    studFindB = makeButton("FIND",grey,f);
    courFindB = makeButton("FIND",grey,f);
    studBackB = makeButton("<-",grey,f);
    courB = makeButton(" COURSES ",grey,f);
    courBackB = makeButton("<-",grey,f);
    courForB = makeButton("->",grey,f);
    TextField addressTF = new TextField("ADDRESS", 10);
    static final String initialString = " ";
    String Filler = " ";
    Panel row1, row2, row3, p1;
    int appletWidth, appletHeight;
    Button clearB, studForB, studFindB, courFindB,
    studBackB,courB, courBackB, studB, courForB;
    Color backgroundColor;
    the buttons currently dont do anything. this is stage 1 of 3 for my 3 part assignment. for now i am just supposed to get the format right and show sample text in the textfields.
    the format is supposed to look something like the following (cant copy existing as it is protected)
    <- STUDENTS -> CLEAR <- COURSES ->
    student id FIND course id FIND
    last name_________first name______course name_____
    address________________________________________
    city______province___________p.code______________
    phone__________e-mail_______coordinator___________
    #of courses completed_____ #of students passed______
    student's average grade___ students grade ave grade___
    messages______________________________________
    the ones in caps are buttons and the rest are labels with text fields beside most of the labels.
    i apologize for the extremely long question but i hope this is what you were looking for to give me some help...anything would be greatly appreciated!!
    thanks in advance for anything someone can do for me

    hi,
    may this helps to solve your problem
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class Registry4b extends Applet implements ActionListener {
    TextField sid;
    TextField cid;
    public void init() {
    backgroundColor = new Color(200,255,255);
    setLayout(new GridLayout(2,1)); // 2 rows, one column, first row for search, the second for output
    Panel up=new Panel(new GridLayout(3,1)); // search panel
    Panel down=new Panel(new GridLayout(1,1)); //output panel
    down.add(new Label("Just for the output"));
    Panel p1=makePanel(new GridLayout(1,7),backgroundColor);
    makeButtons();
    p1.add(studBackB);
    p1.add(studB);
    p1.add(studForB);
    p1.add(clearB);
    p1.add(courBackB);
    p1.add(courB);
    p1.add(courForB);
    up.add(p1);
    Panel p2=makePanel(new GridLayout(1,3),backgroundColor);
    p2.add(makeLabel("Student ID"));
    sid=new TextField("");
    p2.add(sid);
    p2.add(studFindB);
    up.add(p2);
    Panel p3=makePanel(new GridLayout(1,3),backgroundColor);
    cid=new TextField("");
    p3.add(makeLabel("Course ID"));
    p3.add(cid);
    p3.add(courFindB);
    up.add(p3);
    add(up);
    add(down);
    private Label makeLabel(String label) {
    Label label1 = new Label(label,Label.RIGHT);
    label1.setFont(new Font("Courier",Font.BOLD,10));
    return label1;
    public void start() {
    //appletWidth = 8*4+120;//row1.getSize().width;
    //appletHeight = 8*(2+courBackB.getSize().height);
    appletWidth=200;
    appletHeight=90;
    public void paint(Graphics g) {
    setSize(appletWidth,appletHeight);
    validate();
    public void actionPerformed(ActionEvent e) {
    String s = (String)e.getActionCommand();
    private Button makeButton(String label, Color color, Font font) {
    Button b = new Button(label);
    b.setBackground(color);
    b.setFont(font);
    return b;
    private Panel makePanel(LayoutManager lm, Color c) {
    Panel p = new Panel();
    p.setLayout(lm);
    p.setBackground(c);
    return p;
    private void makeButtons() {
    Font f = new Font("Courier", Font.BOLD, 10);
    Color grey = new Color(255,100,100);
    clearB = makeButton("CLEAR",grey,f);
    studB = makeButton(" STUDENTS ",grey,f);
    studForB = makeButton("->",grey,f);
    studFindB = makeButton("FIND",grey,f);
    courFindB = makeButton("FIND",grey,f);
    studBackB = makeButton("<-",grey,f);
    courB = makeButton(" COURSES ",grey,f);
    courBackB = makeButton("<-",grey,f);
    courForB = makeButton("->",grey,f);
    TextField addressTF = new TextField("ADDRESS", 10);
    static final String initialString = " ";
    String Filler = " ";
    Panel row1, row2, row3, p1;
    int appletWidth, appletHeight;
    Button clearB, studForB, studFindB, courFindB, studBackB,courB, courBackB, studB, courForB;
    Color backgroundColor;
    }interesting for you is only the init()
    regards

  • Applet Servlet communication (urgent)

    Hi,
    I m using Netscape Enterrpise server 4.0 as my web server. I am passing data from applet to servlet using BufferedInputStream(). But it takes about 30 seconds to send the data. If i don't use it, the data is not being read by the servlet. Is there any alternative to this ? Please help.
    Thanks

    It's only the primary key field that i am passing to the servlet from applet .. For this particular process, it takes 30 seconds + other things like loading the applet, etc. so in all, it takes about 1 minute just to fetch the data from servlet which is not reasonable. We have monitored the whole process. We found that other things like query, etc. does not take much time, but BufferedInputStream() itself takes 30 seconds. Regarding communication line, it is quite fast. We are a corporate sector, so no doubt about the speed of the communication line ...
    Thanks for help.

  • How deploy javafx Applet in Tomcat

    Hi all!
    Please help me. How i can deploy JavaFX Applet in Tomcat

    Are you using Netbeans or SDK?

  • Refresh applet sqlj NullPointerException URGENT!

    I have the following sqlj code in an applet to retrive data from an oracle database. After this the code goes onto draw the data in the applet using AWT (that code isn't shown here). My trouble is that when I get to the following line Connection con = Oracle.connect("jdbc:oracle:thin:@ebalpha:1525:ORCL", "flowmanager", "xxxxx").getConnection(); I get a Null Pointer exception only after refreshing the page using F5.
    So to overcap I get a NullPointerException only when I refresh the applet. It runs perfectly the first time. The applet need to be refreshed because the data in the table get updated and the applet need to be refreshed to show the data changes.
    public void getFlowSpaceData() throws SQLException {
    // MyIter iter;
    String strUserName = getParameter("paramUserName");
    String strFlowName = new String();
    Connection con = Oracle.connect("jdbc:oracle:thin:@ebalpha:1525:ORCL", "flowmanager", "xxxxx").getConnection();
    strQuery = "select FLOWNAME FROM FLOWMANAGER.TMP_FLOWNAMES WHERE USERNAME ='" + strUserName +"'";
    PreparedStatement pstmt0 = con.prepareStatement(strQuery);
    ResultSet rs0 = pstmt0.executeQuery();
    while (rs0.next()) {
    strFlowName = rs0.getString(1);
    rs0.close();
    pstmt0.close();
    strQuery = "select FLOWNAME, USERNAME, PANELROW, PANELCOL, RELATEROW, RELATECOL, OBJTYPE, BASECODE, INDUSTRYID, PANELNUM, BUSINESSPROCESSID FROM flows WHERE flowname ='" + strFlowName + "' AND username ='" + strUserName +"' ORDER BY PANELNUM";
    PreparedStatement pstmt1 = con.prepareStatement(strQuery);
    ResultSet rs1 = pstmt1.executeQuery();
    int r = 0;
    int c = 0;
    while (rs1.next()) {
    intObjType[r][c]= rs1.getInt(7);
    strID[r][c] = rs1.getString(11);
    //strIDQuery = strIDQuery + 'or ID =' + strinID
    intRowRelation[r][c] = rs1.getInt(5);
    intColRelation[r][c] = rs1.getInt(6);
    c++;
    if(c > 4) {
    r++;
    c = 0;
    rs1.close();
    pstmt1.close();
    PreparedStatement pstmt2 = con.prepareStatement(strQuery);
    ResultSet rs2 = pstmt2.executeQuery();
    r = 0;
    c = 0;
    int i = 0;
    int intSTRLENGTH = 0;
    while(i < 24){
    strQuery = "select name, descr, role from BUSINESSPROCESS WHERE ID = '" + strID[r][c] + "'";
    pstmt2 = con.prepareStatement(strQuery);
    rs2 = pstmt2.executeQuery();
    rs2.next();
    intSTRLENGTH = rs2.getString(1).length();
    if (intSTRLENGTH > 17){
    strLabel1[r][c] = rs2.getString(1).substring(0,17);
    strLabel2[r][c] = rs2.getString(1).substring(18,intSTRLENGTH);
    }else {
    strLabel1[r][c] = rs2.getString(1).substring(0,intSTRLENGTH);
    strLabel2[r][c] = " ";
    intSTRLENGTH = rs2.getString(2).length();
    if (intSTRLENGTH > 17){
    strDescr1[r][c] = rs2.getString(2).substring(0, 17);
    strDescr2[r][c] = rs2.getString(2).substring(18,intSTRLENGTH);
    }else{
    strDescr1[r][c] = rs2.getString(1).substring(0,intSTRLENGTH);
    strDescr2[r][c] = " ";
    c++;
    i++;
    if(c > 4) {
    r++;
    c = 0;
    rs2.close();
    pstmt2.close();
    con.close();
    con = null;
    Thanks for you Assistance! It's greatly appreciated!
    Chris Wallace

    After further research I notice that if I Clear classload cache after every load before I refresh the applet it works fine. I can't have the user brining up the the consule windows and pressing x to clear classloader. Just thought I would give this futher information to help limit what the problem could be.

  • Deploying Applets on OAS (urgent help needed)

    I have installed and Configured OAS 4.0.7.1 on Win Nt Server ( SP5)
    I have created a very simple Java Applet using JDeveloper 1.1 and followed the deployment method as specified in the Work book (Student Work book).
    I have modified the source to add the ARCHIVE line.Using the Deployment Wizard I have created the archive file (.jar).
    I have the Java class files and the archive file in the same directory.
    I have added a HTTP Listener with port 90 and set the Directory for Virtual path corresponding to the directory where the java class files and archive files are available.
    Now when I enter the URL for the invoking HTML file from the Browser the Applet seems to be loading but it doesn't. The error message at the bottom of the Applet(looks like the Applet Window):
    load: <packagename>.<classname> cannot be instaniated.
    Please help me to resolve the problem at the earliest.
    Thanks
    Thiru

    Marcosk2,
    I am still having problems.
    kindly tell me the steps in detail.
    what i have done is:
    1.i have a simple applet (with frame) with a button.
    2. I have edited the html file and included the following:
    CODEBASE="imtac" -the virtual directory name
    ARCHIVE = "carclas.zip"
    3.with Deployment Wizard I have created the zip file (carclass.zip);
    Whe I run the Applet (in JD1.1) it is not running as it is looking for the path (imtac) but if i remove the virtual path (imtac) then the applet runs. You asked me to include the virtual path name in the CODEBASE parameter.
    Please do let me know in steps so that i too can deploy the applets in the WEB.
    It will be of great help even if u give me your telephone no with country code and area code so that I could talk to u and make things workable here. ( i am in Oman).
    I have to give a demo tomorrow.
    Thanks

  • Deployment in tomcat-URGENT

    I AM USING TOMCAT 5.5 WHICH IS IN THE DIRECTORY D:\Program Files\Apache Software Foundation. But I Can't understand how to & where to deploy .jsp file.
    ppl. help me in this regard.

    You can't understand??? It's not higher mathematics or anything, all you need to do is find a simple tutorial (which the net is loaded with) and try it out :s If all else fails the manual is a good bet.
    http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html

  • Applet Loading Time - Urgent

    I am facing a problem on one of our production sites. The APPLET(deployed on weblogic server) is taking a huge time to load, of the order of 15 minutes. Even after it is cached on first time loading, the subsequent access to APPLET still takes same time.
    Whileas in our testing we didn't encounter such problem. Of course, at customer site i see that the machine using IE(client) is on a different LAN than the weblogic server whileas most of our in house tests were done on same LAN
    what could be the possible reasons for this?

    Some suggestions could be:
    1. Bundle all classes and resource files in a jar file.
    2. Try to preload the heavier files (e.g. sound files) in a background thread, instead of init() method. See an example for this in Sun's Java tutorial, under the trail 'Sound'.

Maybe you are looking for