Import org.apache.avalon cannot be resolved

Hi, I am new to Eclipse and J2EE in general and I have tried to import a project in Eclipse 3.0.1. However, I am getting several compile errors having to do with the following imports:
import org.apache.avalon.framework.activity.Initializable;
import org.apache.avalon.framework.activity.Startable;
import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
import dragon.common.services.cache.janitor.ICacheJanitorService;
import dragon.common.services.cache.store.IExpiringStoreComponent;
import dragon.common.services.cache.store.IStoreComponent;
stating that
"The import..." [import package name] "...cannot be resolved"
Can anyone help with what I should do? Thanx

I am trying to compile code but keep getting an error stating that the import of a class is not working? I wondered if I am having the same problem. I am running eclipse 3.0. The applet is called joole and it is importing CBoolFkt but it is evidently not working. Appreciate any ideas.
The applet is not initiating and the error messages is as follows:
java.lang.Error: Unresolved compilation problems:
     The import CBoolFkt cannot be resolved
     The import ShowCopyright cannot be resolved
     at Joole.<init>(Joole.java:8)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at java.lang.Class.newInstance0(Unknown Source)
     at java.lang.Class.newInstance(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)

Similar Messages

  • Getting error in POI like ""The import org.apache.poi cannot be resolved""

    Hi
    i am getting error like this."""The import org.apache.poi cannot be resolved"" so what i need do here. i think i have to get the jars for it .any one who worked with the concept of poi can help me here. i have been using eclipse ide here.i have down loded pio.3.0-final ,then i have added jar files to eclipse. still i am getting this error here

    HI
    i have checked that in build path it is saying it is there os it can't add them,here i have taken as a class proj not as web proj.
    i have started this topic today only.so idon't know much abt this.i have got this code from poi downloads.here is the code for
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFRow;
    import org.apache.poi.hssf.usermodel.HSSFCell;
    import java.io.FileInputStream;
    * This is a sample to Read an Excel Sheet using
    * Jakarta POI API
    * @author Elango Sundaram
    * @version 1.0
    public class ReadXl {
    /** Location where the Excel has to be read from. Note the forward Slash */
    public static String fileToBeRead="D:/JTest/JPOI/Read.xls";
    public static void main(String argv[]){      
    try{
                        // Create a work book reference
                        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(fileToBeRead));
                        // Refer to the sheet. Put the Name of the sheet to be referred from
                        // Alternative you can also refer the sheet by index using getSheetAt(int index)
                        HSSFSheet sheet = workbook.getSheet("Sheet1");
                        //Reading the TOP LEFT CELL
                        HSSFRow row = sheet.getRow(0);
                        // Create a cell ate index zero ( Top Left)
                        HSSFCell cell = row.getCell((short)0);
                        // Type the content
                        System.out.println("THE TOP LEFT CELL--> " + cell.getStringCellValue());
    }catch(Exception e) {
    System.out.println("!! Bang !! xlRead() : " + e );
    }

  • Getting error like thisThe import org.apache.poi cannot be resolved

    Hi
    i am new to this poi concept,i have downloded the pio 3.0 final from it.i have adde those plugind to eclipse then i have wrote a sample class form poi then ia m getting error like this .what might be the problem here.
    can any one help me here
    vijay

    Hi guys,
    u are right,
    at last this problem is rectified here,what happend was i have copied jars from src not from poi 3.0.1-final-bin,here i have copied these jars here,
    poi-3.0.1-FINAL-20070705,poi-contrib-3.0.1-FINAL-20070705,poi-scratchpad-3.0.1-FINAL-20070705.
    now it is working here.i got the out put for the above code also.
    so here my question is i have to pass this result to another class where it it reads only text ,for this i have used this concpet coz i have lot files other than text,how can i pass this to my class.
    vijay

  • The import org.fin.app cannot be resolved

    Hii..
    i have added a new project to the exixting fine working project and added new java files. But i cant access some packages of old projects from within these new java files as i get the error "The import org.fin.app cannot be resolved". I have set class path correctly..
    Please tell me the possible causes of this problem.
    Waiting for your reply..

    Are the libraries included in the compile path?
    The error it sounds, is that the compiler cannot locate the JAR/class files for classes within the org.fin.app namespace.

  • The import org.apache cannot be resolved

    Hi All,
    I am a Java\Eclipse newbie. I am trying to import the org.apache.xerces package, and the import is failing with this error:The import org.apache cannot be resolved
    I am not using Maven\Ant for building the project. I know I need to download some class files\jar files to get this to work, but I am not sure where to download these packages from. Could someone please help me out here?
    import org.w3c.dom.Node;
    import org.apache.xerces.parsers.DOMParser;
    import org.apache.xerces.dom.traversal.TreeWalkerImpl;
    import org.apache.xerces.domx.traversal.NodeFilter;
    import org.apache.xerces.dom.DocumentImpl;
    THanks a lot!

    Well, if you are in fact looking to download the JARs for the Apache Xerces project, you should be able to find them at the Apache Xerces project page.
    If you already have the JARs downloaded, you need to make sure that they appear on your CLASSPATH, otherwise your application will never find them. Since you are using an IDE, this should be as easy as adding the JARs to your project.

  • The import org.apache.struts.action.ActionError cannot be resolved

    Hai anyone,. I' a newbie to struts and want to learn more. I download the example code, and run it. Hey, it work. But when I try to create it by myself by following the tutorial, I got stuck with my all java file when i want to try to compile it with eclipse.It say:
    The import org.apache.struts.action.ActionError cannot be resolved
    What' wrong?
    this is one of the example code, i bolded the error line:
    package dummies.struts.music;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.validator.DynaValidatorForm;
    * @author Mike Robinson
    public class LoginAction extends Action
         * Handles request from user
         * @param mapping
         * @param form
         * @param request
         * @param response
         * @throws Exception
         public ActionForward execute(      ActionMapping mapping,
                                                 ActionForm form,
                                                 HttpServletRequest request,
                                                 HttpServletResponse response)
                                                 throws Exception
              // did the user click the Join button?
              Boolean bCancel = (Boolean)request.getAttribute("org.apache.struts.action.CANCEL");
              if(bCancel != null)
                   if(bCancel.booleanValue())
                        return (mapping.findForward("join"));
              // create a new LoginBean passing the datasource
              LoginBean lb = new LoginBean(getDataSource(request, "musiccollection"));
              // check to see if this user/password combination are valid
              // will return a non-null UserDTO if valid
              UserDTO user = lb.validateUser((String)((DynaValidatorForm)form).get("email"),
                                                 (String)((DynaValidatorForm)form).get("password"));
              if(user != null)
                   // save UserDTO in session
                   request.getSession().setAttribute("user",user);
                   return (mapping.findForward("success"));
              else     // username/password not validated
                   // create ActionError and save in the request
                   ActionErrors errors = new ActionErrors();
                   ActionError error = new ActionError("error.login.invalid");
                   errors.add("login",error);
                   saveErrors(request,errors);
                   return (mapping.findForward("failure"));
    }

    Hi i try to build a dynamic web project in eclipse europa version.so i have opned my eclipse editor then right click selected the dynamic web project.onceit is done i wated to add the servelt so i have selcted the sevlet pressed ok then given name for it,next create servlet here iam getting the error lke this
    "An error occured when create servlet is finished" and in deatils it displyainf like thi
    "java.lang.Error: Unresolved compilation problems:
         The import org.eclipse.jst.j2ee.internal cannot be resolved
         CreateServletTemplateModel cannot be resolved to a type
         CreateServletTemplateModel cannot be resolved to a type
         at org.eclipse.jst.j2ee.web.ServletTemplate.<init>(ServletTemplate.java:3)"
    can any one help me here i have been stuck from morning doing nothing try to solve this problem
    thank u in advance
    vijay

  • The import org.apache cannot be resolved and I am not sure why?

    Alright, so I decided to build myself the simplest of simplest ftp client so that I could understand how this works:
    Ok, I have parts built but I am trying to include the following things:
    import org.apache.commons.net.ftp.FTPClient;
    import org.apache.commons.net.ftp.FTPFile;The error I am getting from eclipse (which is the editor that I am using) is:
    The import org.apache cannot be resolvedThe same thing happens when I try to do:
    import com.jscape.inet.ftp.*;I have an idea what is going on with this but I am not entirely sure. I think I need a package that I must download from apache or somewhere that might give me access to libraries?
    I would be grateful to any help...
    Thanks,
    Adam Scott

    Yes you need to have the classes that you want to import. If you have them then you need to add them to your project's classpath.

  • Import org.apache.log4j.Level;

    Cannot Resolve Symbol
    symbol : class Level
    location: package log4j
    import org.apache.log4j.Level;
    Can anyone suggest something.
    Thanks Tiboy.

    Hi there,
    I have another doubt. Im trying to deploy a web application/J2EE. I use JBOSS. Now, after compiling and placing my jar files in the required directory and as i start the JBOSS server I get the following error in the console............
    10:11:06,551 WARN [jbossweb] java.lang.IllegalStateException: Servlet class
    com
    .ncit.user.server.servlet.MainPageRequestHandler is not a
    javax.servlet.Servlet
    java.lang.IllegalStateException: Servlet class
    com.ncit.user.server.servlet.Main
    PageRequestHandler is not a javax.servlet.Servlet
    at
    org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:203)
    I just can't seem to figure out whats the problem.
    My RequestHandler extends an Abstract Req.Handler which imports javax.* etc etc.
    Please suggest a solution.
    Thanks,
    Tiboy.

  • Import org.apache.xml.serialize.*;

    .java:66: package org.apache.xml.serialize does not exist
    import org.apache.xml.serialize.*;
    ^
    i am getting this error while running a java program, which i downloaded from a open source.
    i am using J Creator.
    i suppose i need to add a class path or package.
    can anybody tell me how to do this.
    and where can i find that package.
    if i can't find that in my system, where can i get it on net.

    .java:66: package org.apache.xml.serialize does notThe org.apache.xml.serialize.* package is part of Xerces:
    http://xml.apache.org/xerces-j/
    http://xml.apache.org/xerces2-j/index.html

  • The import com.sapportals.htmlb cannot be resolved

    Hi,
    I am working on EP7 and trying to create a sample application for DynPage Portal Component.
    After I create a new DynPage in NWDS, i get the following error:
    The import com.sapportals.htmlb cannot be resolved
    I found a link similar to this problem but not clear abt how to solve it:
    Re: I cant import com.sapportals.htmlb.*
    How do I resolve this error? Are there some set of files that need to be import before I can develop this application.
    Thanks in advance,
    CD

    Hi CD,
    1. Regarding the availability of the KIT, checkout the link:
    Link: [Role for a Java developer;
    2. Regarding the Path for the mentioned libraries:
            **Program FilesSAPJDTeclipseplugins
    **must be in your C:
    If you do not find the specified jar file there, you can use the JAR File Locator. Checkout the link:
    Link: [Re: EP7 PDK;
    Regards,
    Chander Kararia
    #If problem solved, close the thread after rewarding points.

  • Error in importing org.apache.poi

    hi.....i am getting only one error as "package org.apache.poi.hssf.usermodel does not exist" when i write the code as
    import java.io.*;
    import jxl.*;
    import java.util.*;
    import jxl.Workbook;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    import jxl.write.DateFormat;
    import jxl.write.Number;
    import jxl.write.*;
    import java.text.SimpleDateFormat; "
    and also i added the jxl.jar file into my class path.......
    Can anybody plz tell me how can i eliminate that error.............Thanks in advance.
    Edited by: sumanthchowdary on Jun 2, 2008 11:34 PM

    What is there inside your jxl.jar.
    Apache POI library name is poi-3.0.2-FINAL-20080204.jar in the last release available on [http://www.apache.org/dyn/closer.cgi/poi/]. Check your classpath, IMHO it doesn't contain any POI class.
    Edited by: jswim on 3 juin 2008 09:39

  • Import from javax.mail cannot be resolved

    Hi,
    After migration from Netweaver 7.0 to 7.1 CE, the import of the package  import javax.mail.*
    The error is javax.mail cannot be resolved.
    Do I have to add special Dependencies to my DC?
    Best regards,
    Peter

    Hi
    Please refer following thread.
    [external jar in CE|import a external jar in web dynpro project;
    [external library insight webdynpro |Problem in Reading Excel File from Webdynpro;
    Best Regards
    Satish Kumar

  • Import of Private View cannot be resolved

    I have a web dynpro component I wrote a while ago.  I just pulled it down from NWDI.  Created the project.  Build works great.  Even made changes and checked in and activiated.  All things work.
    Here's the trouble.  When I look at the Implementation tab on my DetailView my private view's import cannot be resolved.
    import spiritaero.com.cats.emp.wdp.IPrivateDetailView;
    Message says "The import spiritaero.com.cats.emp.wdp cannot be resolved"
    How do I fix this?
    Diane

    Diane,
    Some times, all the class files may not ge generated when you import the project into your NWDS. Reload + Rebuild the project. If still errors are there, close the project and open again. Hopefully it will generate all the classes and your problem will be solved.
    Regards,
    Sridhar

  • The import java.sql.Savepoint cannot be resolved

    i am unable how to resolve this problem please anyone can help me about this

    Which version of Java are you using? Class java.sql.Savepoint was introduced in version 1.4. If you're using an older version, it won't work.

  • The import javax.xml.soap cannot be resolved

    Need help. I havd the saaj, saxm etc package in the classpath, don't know why still complaint about this.
    Thanks

    I am using websphere studio. first, add a new class path, that did not work. and then I added the jar directory to the path, such as : /sun/.../saaj-api.jar, still not working.

Maybe you are looking for

  • Photoshop CC 2014.1 not Showing Update for 2014.2

    My Photoshop cc 2014.1 is not showing the update for 2014.2.  I have 2 computers and one updated and the other isn't showing the .2 update.  They both are using Windows 8.1.  I was online with customer service earlier and they weren't able to provide

  • Migrating a Eclipse Project to JDeveloper and use it as a web service

    Hi Guys, I have a problem with migrating a Eclipse Project (EP) to JDeveloper. I know there are several threads about the problem out there but none of these fit my needs. So, here is the problem: I didn't had any problems migrating EPs to JDev in th

  • Office 365 downgrade for Office 2010 Product Key

    Hi, I just would like to inquire if it is possible to downgrade the Office 365 that was purchased from a vendor.  The vendor specifically assured us that there would be product keys that would be given and we would be able to use it in on our existin

  • LiveCycle Designer ES 8.2  Numerisches Feld

    Hallo, ich habe ein Problem mit einem Numerischen Feld. Dieses akzeptiert z. B. keine fogende Nummer: 1.91.03.001.02.01 Welches Muster muss ich eintragen, damit nach dem Eintrag diese Nummern akzeptiert werden und nicht nach Eingabe nur die 1 erschei

  • Wpa2-psk vs. WebAuth w/ key

    Which security method is better, wpa2 aes psk or webAuth with a key/passphrase? Sent from Cisco Technical Support Android App