Bad class file error

Hi
I set my java home to JDK 1.4 and execute my build.It is ok.
Then i try the same by setting JDK 1.5 as java home. build is ok.
But now i need to use only JDK 1.4.So i set my java home as jdk 1.4 and try to execute the build.xml
Now i got the error of class file has wrong version 49.0, should be 48.0
I understand that the class files(49.0) which are created by JDK 1.5 and i try to execute those by JDK 1.4.
But i donot knwo how to solve this.
Will anybody please help me to solve?
Thank you

Hi
I didnot compile java files with JDK 1.4 and 1.5 both.
First time i use JDk 1.4. for all java files
Second time i use JDk 1.5 for all java files.
Finally i should use JDK 1.4. So i come to jdk 1.4 and set java home jdk 1.4 and exucute my build.xml. Then i got the bad class file error.
Can u help me at this point?
Thank you

Similar Messages

  • Javac probleme: bad class file error

    I'm new to java
    I have two classes myPoint.jav and TestPoint.java, when I compile them, I error:
    in the command line I type:
    C:\otman\java>javac -g geometry\src\myPoint.java TestPoint.java
    TestPoint.java:8: cannot access myPoint
    bad class file: c:\otman\java\geometry\src\myPoint.class
    class file contains wrong class: geometry.src.myPoint
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    myPoint p = new myPoint();
    ^
    1 error
    Can some one help me Thanks
    //Here is the class c:\otman\java\TestPoint.java
    import geometry.src.*;
         Testing my class Point
    public class TestPoint {
    public static void main(String[] args) {
              myPoint p = new myPoint();
              System.out.println("thank you very much");
              System.exit(0);
    // And here is the class c:\otman\java\geometry\src\myPoint.java
    package geometry.src;
         class myPoint members and methods of a 3D point
    public class myPoint {
         private double m_x,m_y,m_z;          // the coordinates
         public double getx() {return m_x;}
         public double gety() {return m_y;}
         public double getz() {return m_z;}
         public void setx(double x) {m_x=x;}
         public void sety(double y) {m_y=y;}
         public void setz(double z) {m_z=z;}
         public void translate(double dx,double dy, double dz) {
              m_x += dx;m_y += dy;m_z += dz;
         // Constructor ------------------------------------------------------------
         myPoint(double x,double y,double z) {
              m_x=x;m_y=y;m_z=z;
         myPoint() {
              m_x=0;m_y=0;m_z=0;
         myPoint(myPoint p) {
              m_x=p.getx();m_y=p.gety();m_z=p.getz();
    // ---------------------------------------------------------------------------------

    Thank you for the reply but still have problem.
    I created a directory classes and the directories look like:
    C:\otman\java\
    TestPoint.java
    classes\
    geometry\
    src\
    myPoint.java
    When I compile using the line command:
    C:\otman\java>javac -g -d classes geometry\src\myPoint.java TestPoint.java
    I get the error:
    TestPoint.java:8: cannot find symbol
    symbol : constructor myPoint()
    location: class geometry.src.myPoint
    myPoint p = new myPoint();
    ^
    1 error
    Now the directories look like:
    C:\otman\java\
    TestPoint.java
    classes\
    geometry\
    src\
    myPoint.class
    geometry\
    src\
    myPoint.java
    I think that myPoint was compiled without problem but TestPoint was not compiled and it gives 1 error.
    Can you help me? Thanks.<!--Session data-->

  • Bad Class File error - Win2k & J2SDK1.4.0_01

    Hi,
    I am trying to run a 'Hello World' program which came with the FreeTTS package from links from the java.sun.com website, and am not able to compile the program. I get the error:
    FreeTTSHelloWorld.java:4: cannot access file
    cl.com.sun.speech.freetts.audio.Voice
    bad class file: .\cl\com\sun\speech\freetts\audio\Voice.class
    class file contains wrong class: com.sun.speech.freetts.Voice
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import cl.com.sun.speech.freetts.audio.Voice;
    _______________________________________^
    The FreeTTSHelloWorld.java File is printed below [its embarassingly simple..]
    * Copyright 2001 Sun Microsystems, Inc.
    import cl.com.sun.speech.freetts.audio.Voice;
    import cl.com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    import cl.com.sun.speech.freetts.en.us.CMULexicon;
    public class FreeTTSHelloWorld {
    public static void main(String[] args) {
         try {
         String voiceClassName = (args.length > 0) ? args[0] :
              "com.sun.speech.freetts.en.us.CMUDiphoneVoice";
         Class voiceClass = Class.forName(voiceClassName);
         Voice helloVoice = (Voice) voiceClass.newInstance();
         helloVoice.setLexicon(new CMULexicon());
         helloVoice.setAudioPlayer(new JavaClipAudioPlayer());
         helloVoice.load();
         helloVoice.speak
              ("Thank you for giving me a voice. I'm so glad to say
    hello to this world.");
         System.exit(0);
    catch (Exception e) {
         e.printStackTrace();
    I've tried a billion things, including moving around the .class files [which, by the way, i extracted myself from the .jar files which came with the FreeTTS package - is that what i'm doing wrong? if so, please tell me - ] and still nothing happens - the same error results.
    I've tried reading other cases similar to mine in the forums, but most of the things i read didn't apply to my (quite simple) situation, such as the 'package' line needing to be removed or anything like that..
    I run Win2k and have j2sdk1.4.0_01 installed on my machine
    I beg for anyone's help. Thanks in advance
    -=-Miagi-=-

    Aha!
    Extracting from the jar file might be ok, as long as the directory it's extracted into reflects the class's package name. Open the jar file using WinZip and you'll see that the files it contains are in directories that exactly mirror (including case) the package names.
    The error you're getting tells you that java is looking in .\cl\com\sun\speech\freetts\audio\Voice.class (the '.\' means relative to your current working directory) and my bet would be that the file is not there!
    You shouldn't need to extract these files at all, actually: Try deleting the files you extracted from the jar then try running your program again.
    I hope this is helpful...
    Chris.

  • BAD CLASS FILE ERROR WHEN TRYING TO CALL JAVA CLASS IN WEB-INF DIRECTORY

    I AM NEW TO THIS FORUM. PLEASE HELP ME IDENTIFY/RESOLVE THIS ERROR - bad class file: /java/tomcat/webapps/ChoiceTel/WEB-INF/classes/XYZ/SMUA.class. OTHER JSP SCRIPTS THAT CALL JAVA CLASSES DO WORK WELL.
    THE FUNNY THING ABOUT COMPILIING THIS JAVA CLASS WAS - I HAD TO A jar xvf OF activation.jar and mail.jar IN THE XYZ DIRECTORY BEFORE SUCCESSFULLY COMPILING SMUA.
    THE CALL BEING MADE FROM THE JSP SCRIPT IS AS FOLLOWS:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <BODY>
    <%@ page import="XYZ.*" %>
    <%!
    %>
    <%
    SMUA sndmail = new SMUA();
    sndmail.postMail ("[email protected]","Test Subject","What Message","[email protected]");
    %>
    </BODY>
    </HTML>

    Dude. Please don't shout. If your keyboard is like mine, it can produce both upper and lower case letters. Please use them appropriately.
    Do you have the activation.jar/mail.jar available in the WEB-INF/lib directory for this application?

  • UDF error: bad class file

    Hi to all!
    i faced with following problem:
    i'm trying to use in message mapping exported Java function and get following error:
    <i>Source code has syntax error:  E:/usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb97a3fc699d611dcaf9d001b78d07a70/source/com/sap/xi/tf/_UserToRoleId_.java:3: cannot access kolpix.echo bad class file: E:\usr\sap\DXI\DVEBMGS00\j2ee\cluster\server0\.\temp\classpath_resolver\Mapb97a3fc699d611dcaf9d001b78d07a70\classpath\Echo_1(kolpix/echo.class) class file has wrong version 50.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import kolpix.echo; ^ 1 error</i>
    There is my Java function:
    package kolpix;
    public class echo {
        public echo() {
        public static String hello(String str) {
            return "Hello "+str+"!";
    in UDF into the <b>Imports</b> textField i just put <b>kolpix.echo;</b>
    and in body function i just put <b>return echo.hello("World");</b>
    Could any one explain what does it mean and what i must do to solve the problem?
    Thx in advance.

    <a href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183240">That info explain all</a>

  • Cannot access Graphics - bad class file

    Hey.
    When I try to compile my source I get an error saying...
    .\Man.java:146: cannot access Graphics
    bad class file: .\Graphics.java
    file does not contain class Graphics
    Please remove the files or make sure it appears in the correct subdirectory.
    It's on a different computer so that's not exactly it, but it's close enough. Compiler was working fine until the other day when i found out that all the source files were zipped up in src.zip, I had to extract Graphics.java so I could open it in emacs, and after I did that it started giving me that error message. There's nothhing wrong with my source, and I didn't move Graphics, it's still in the correct place exactly as it was, and i looked at it, all the right stuff is still inside. I'm quite confused.
    So do I have to reinstall? That would mean a massive download on my 56k and I kinda wanna carry on with my work.

    You should not need to unzip src.zip to use the Graphics class or any class that comes with j2sdk. The compiled classes are in jar files that are installed in certain directories when you install the j2sdk.
    You should only need to have a line "import java.awt.Graphics;" near the start of your source code.
    The error most likely occurred when the compiler found a Graphics.class file but inside the file is java.awt.Graphics class, not a plain Graphics class.

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Bad class file: WSRP_v2_Registration_PortType ...

    I've been trying to deploy a portlet to a 10.1.3.2 Portlet Container on OAS 10g without much luck. The portlet deploys correctly to the standalone OC4J within JDeveloper. Here is the error:
    ... \application-deployments\Portlet\Portlet\oasis\names\tc\wsrp\v2\bind\runtime\WSRP_v2_Registration_Binding_SOAP_Tie.java:930: cannot access oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer
    bad class file: ... \application-deployments\Portlet\Portlet\oracle\portlet\wsrp\v2\soap\runtime\WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer.java
    file does not contain class oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    new oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer(ENCODE_TYPE, NOT_NULLABLE, SOAPVersion.SOAP_11), SOAPVersion.SOAP_11);
    ^
    1 error
    The class it is complaining about is in wsrp-stubs.jar. I've included the jar in my deployment from JDeveloper and placed it in OAS as a shared lib and import it into the classpath at deployment time. The sample portlets distributed with the portlet container deploy without issue. I'm out of ideas. Any thoughts you have would be appreciated. Thanks!
    -Jason

    Boing.

  • Cannot access JScrollPane, bad class file !!!!

    Hi everybody. I have got a big big problem. I can not compile my code because this message alwayes is displayed:
    C:\Java\hosseindab\Dabb.java:8: cannot access JScrollPane
    bad class file: .\JScrollPane.class
    class file contains wrong class: javax.swing.JScrollPane
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    private JScrollPane skrollytan;
    I tried to uninstall and reinstall SDK och Textpad, but it didn't work. I even installed them on another computer, but it was the same problem. I do not know what has happened. I have tried j2SDK 1_3_1_15 and j2sdk 1_4_0_01. No use. I could compile the same files some hours ago, but now the Textpad says NO, NO, NO!!! and generates the above error. Just please help me, I don't have much time to deliver my java program.
    The code is:
    import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       public class Dabb extends JFrame implements ActionListener
           private JLabel lBild1,lBild2,lBild3;
           private JScrollPane skrollytan;
           private JPanel panelen;
           private JRadioButton knapp1, knapp2, knapp3;
       private JSplitPane delning;
       private ButtonGroup gruppen;
       public Dabb()
            lBild1 = new JLabel(new ImageIcon("Solnedg�ng.jpg"));
            lBild2 = new JLabel(new ImageIcon("Vinter.jpg"));
            lBild3 = new JLabel(new ImageIcon("Bl�a kullar.jpg"));
            skrollytan = new JScrollPane();
            panelen = new JPanel();
            gruppen = new ButtonGroup();
            knapp1 = new JRadioButton("Solnedg�ng",true);
            knapp2 = new JRadioButton("Vinter",false);
            knapp3 = new JRadioButton("Bl�a kullar",false);
            delning = new JSplitPane();
            delning.setLeftComponent(panelen);
            delning.setRightComponent(skrollytan);
            Container c =  getContentPane();
            c.add(delning);
            delning.setMinimumSize(new Dimension(300,300));
            panelen.setLayout(new BoxLayout(panelen,
                                   BoxLayout.Y_AXIS));
            gruppen.add(knapp1);
            gruppen.add(knapp2);
            gruppen.add(knapp3);
            panelen.add(knapp1);
            panelen.add(knapp2);
            panelen.add(knapp3);
            knapp1.addActionListener(this);
            knapp2.addActionListener(this);
            knapp3.addActionListener(this);
            setSize(600, 400);
            setVisible(true);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
       public void actionPerformed(ActionEvent e)
            Object o = e.getSource();
            if(o == knapp1)
                skrollytan.setViewportView(lBild1);
            else if(o == knapp2)
                 skrollytan.setViewportView(lBild2);
            else if(o == knapp3)
                 skrollytan.setViewportView(lBild3);
       public static void main(String [] argv)
            Dabb v = new Dabb();
        }

    Your post compiles for me, no errors.
    As a guess. you have a problem classpath or mislocated or duplicate files.
    This line is especially suspect: bad class file: .\JScrollPane.class
    What is that leading period? Do you have a file named ScrollPane?
    Something else in the computer is bad, not the program.
    Try compiling from the commandline.

  • Bad class file

    This is probably a very basic issue but here it goes: I've been developing a web application in tomcat. Originally we were using the JWSDP 1.3 bundle. I decided to download tomcat 4.1.3 and tried to run the application. I keep getting "bad class errors" and something about tag pool 13 of 10. Any clue as to what is causing the problem? I think it has something to do with the classpath environment variable in windows XP, unfortunately the IT people must have changed my user rights b/c I can no longer edit/change the System variables., I've tried adding a user variable CLASSPATH with the new path to the application, but it still doesnt seem to work.
    Thanks for any help

    Because this is the only post Google returns for "netbeans bad constant pool tag", I'd like to add this (even though the post is many years old):
    The original post mentions Windows XP and CVS - so my recent experience may be relevant.
    I moved a bunch of Netbeans projects via Windows onto a Linux server to add them to a CVS repository.
    When I reentered the Projects into Netbeans all hell broke loose : for example: projects compiled clean but the IDE red-flagged them; libraries showed up on the Project Property sheets but were absent in the Libraries tab under the Project in the Projects tree. Netbeans itself appeared to be "in distress".
    I had noticed that many java sources were now double-spaced (a blank line inserted after each original line). I suspected somewhere during the journey from Windows to Linux the old carriage-return + line-feed glitch had happened. But, hey-ho, this doesn't effect the java and could be filtered out later.
    Then the moment of revelation: most of the XML and .properties files had also been double-spaced.
    So code that originally read (for example):
    javac.classpath=\
    foo:\
    bar
    now read:
    javac.classpath=\
    foo:\
    bar
    This (subtle) introduction of the extra lines ruins everything ... but once you realise what's happened, it is easily fixed !

  • Custom Class file errors out on import javax.servlet.http.HttpSession

    I am trying to write a class file to handle events. This is a test class file copied from the UIX Docs. When I put this in JDeveloper 903 ,and build it the compiler gives the error:
    Error(2,27): cannot access class javax.servlet.http.HttpSession; file javax\servlet\http\HttpSession.class not found
    I am not sure what is the problem? Can anyone please help?
    Here is the code:--
    package mypackage1;
    import javax.servlet.http.HttpSession;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.event.EventResult;
    public class MyClass
    /** This is handleStoreNameEvent version 1 */
    public static EventResult handleStoreNameEvent(BajaContext context,
    Page page,
    PageEvent event)
    String userName = event.getParameter("txt1");
    HttpSession session = context.getServletRequest().getSession(true);
    session.putValue("User Name", userName);
    Page nextPage = new Page("NextPage");
    return new EventResult(nextPage);
    }

    Hi, you are missing the servlet.jar file from your classpath.
    In JDeveloper, you can add this by opening up your project -> libraries and adding the servlet runtime library.

  • Class File Error 1046

    Hi all, I am trying to write my first class file, been away
    from flash for so long now and im just starting with as3, I have a
    problem with this class file
    I keep get an error
    here is my class // it is in the same directory as my fla,swf

    Hi ActionScripter1,
    If I am not wrong you are not using feature of a document
    class in Flash file.
    I have modified the class given by you to set it as a
    document class
    to run this code you have to do following things:
    1. Update the class with the class pasted below.
    2. Remove all the code about preloadManager from the first
    frame.
    3. set your 'Document Class' property to preloadManager
    As per my opinion this should be the way to implement a
    preloader.
    In this class you will have access to each and every object
    placed on stage. and here 'this' refers to 'stage' only.
    //Updated Class
    package {
    import flash.text.TextField;
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    public class preloadManager extends MovieClip {
    public static var l:Loader = new Loader();
    //CONSTRUCTOR for preloadManager Class
    public function preloadManager()
    trace("This is the start point of your programme")
    startPreload('123.swf');
    public function startPreload(swfFile) {
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    preloadLoop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE,
    preloadComplete);
    l.load(new URLRequest(swfFile));
    }//end startPreload
    public function preloadLoop(e:ProgressEvent):void {
    var perc:Number=e.bytesLoaded/e.bytesTotal;
    //percent is on my stage as a dynamic textField
    //Error 1120: Access to undefined property percent
    //how would I access this or pass it as a display reference
    to my class?
    percent.text=Math.ceil(perc*100).toString();
    }//end preloadLoop
    public function preloadComplete(e:Event):void {
    removeChildAt(0);
    percent=null;
    addChild(l);
    }//end preloadComplete
    }//end class
    }//end package

  • Extra bytes at the end of class file error

    I have created an applet.
    it worked fine when i ran it with appletviewer.
    it ran fine when i opened it with a browser (when it still was on my computer and not on the net).
    now, when i uploaded all the files, when try to open the page where my applet should be, the applet doesn't start and the console writes:
    java.lang.ClassFormatError: Extra bytes at the end of class file ImageHolderNotifier
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         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 java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         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)
    i tried rebuilding the project and uploading all the .class files from scratch... still, no change :-/
    i have compiled it using eclipse 3.1.0, JDK1.5.0_02.
    my JRE is 1.5.0_02
    i've tried running it both with Internet Explorer and FireFox...

    Works locally but not after uploading.
    Must be uploaded wrong then (ftp ascii??) or it's the web server.

  • Problem for retriveing servlet class file (error in DD) I think so

    hi to all ,
    my deployment descriptor is here ....
    I tried to access servlet ... I got the response is like that
    The requested Resource is not available
    why its happening ?
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <welcome-file-list>
         <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <listener>
         <listener-class>CallMonitor.MyListener</listener-class>
    </listener>
    <servlet>
         <servlet-name>LoginAction</servlet-name>
         <servlet-class>LoginAction</servlet-class>
    </servlet>
    <servlet>
         <servlet-name>InsertData</servlet-name>
         <servlet-class>InsertData</servelt-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>LoginAction</servlet-name>
         <url-pattern>/LoginAction</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
         <servlet-name>InsertData</servlet-name>
         <url-pattern>/InsertData</url-pattern>
    </servlet-mapping>
    <context-param>
         <param-name>jdbcurl</param-name>
         <param-value>jdbc:mysql://localhost:3306/test</param-value>
    </context-param>
    </web-app>But i remove the code from it , i can access LoginAction Servlet..
    <servlet>
         <servlet-name>InsertData</servlet-name>
         <servlet-class>InsertData</servelt-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>InsertData</servlet-name>
         <url-pattern>/InsertData</url-pattern>
    </servlet-mapping>
    In Tomcat manager i found the applicaton is not running.
    i started the application using start command...
    But i got error message
    FAIL - Application at context path /25.7 could not be started
    Message was edited by:
    kannankalli

    <servlet-class>InsertData</servelt-class>Closing element for <servlet-class> is wrong.
    Before posting for any help check following stuff
    - Whether deployment descriptor is well-formed
    - Whether it is valid i.e. all elements are properly placed

  • AS class file - error defining dynamic component method

    In the constructor of my custom class, I have a loop set up
    that creates a number of CheckBox instances based on the results of
    a remoting query.
    This loop works fine, and I see the new component instances
    on the stage.
    However, when I try to define the "click" method for each of
    those checkboxes, I'm getting a compiler error:
    "There is no property with the name 'click'."
    I've included the CheckBox class using the import statement
    at the top of my AS file (import mx.controls.CheckBox;).
    Here is the block of code throwing the error:

    click isn't a property but an event. If you want to respond
    to that event, you have to setup a listener. Hit F1 and search for
    Checkbox.click

Maybe you are looking for

  • Satellite U400 (PSU44E) randomely rebooting

    Hi Everybody, I have a strange problem on my Satellite U400. For a couple of days it was starting sending blue screens and rebooting. I used the Vista memory check tool and identified one faulty RAM. I changed both with OCZ 2*2Go PC6400, and no more

  • HT3235 Will generic DVI to VGA adapter work with Macbook Pro (Early 2008 Model)??

    I have a 15" MacBook Pro (Early 2008 model).  I lost the Apple DVI to VGA adapter for use with my projector, and it appears this older model is no longer available.  Will a generic DVI/VGA adapter, from Best Buy for example, work?  I wasn't sure if t

  • FYI: iMovie and Panasonic HDC-SD5

    FYI, I just purchased the Panasonic HDC-SD5 which supports 1920x1080 or 1080P. I recorded clip with the HG1920 setting (1080P). I then imported the clip into iMovie and added it to a project. When I play the movie everything is oblong. (A circle appe

  • Nokia responds to reports about the N900 micro-usb...

    Hi all, we have just received the following statement from Nokia regarding the micro-USB port of the Nokia N900: We are aware of reports that under certain conditions, the micro-USB port of a very limited amount of Nokia N900 devices can be detached.

  • HTTP Connection KeepAlive doesn't work!

    Hello,<br> <br> why the KeepAlive-Feature (reusing of TCP-connections, described at http://java.sun.com/j2se/1.5.0/docs/guide/net/http-keepalive.html) doesn't work in the following example? I'm using J2SE 1.4... <br> <br> <br>import java.net.HttpURLC