Org.eclipse.jdt.core.JDTCompilerAdapter class Notfound error In eclipse ant

hi this is my ant build.xml file
my eclipse ver : 3.3.0
when i try to run this build file i am getting the error repeatedly
please some one solve my problem i am unable find solution on eclipse
forum site please help me
thank you
<?xml version = "1.0" encoding = "UTF-8" ?>
<project name = "AntPractice" default = "Main Build" basedir=".">
     <property name="bin" location="bin"/>
     <property name="src" location="src"/>
     <property name="jardir" location="${bin}/lib"/>
     <property name="jarfile" location="${jardir}/AntPractice.jar"/>
     <property name="build.compiler"      value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
    <target name="Main Build" depends="Initialize, compile, jar">
          <echo message = "Ant At Work!" />
    </target>
    <target name="Initialize">
         <delete dir = "${bin}" />
         <delete dir = "${jardir}" />
         <mkdir dir="${bin}"/>
         <mkdir dir="${jardir}"/>           
    </target>         
    <target name="compile" depends="Initialize">
         <javac srcdir="${src}" destdir="${bin}">
         </javac>
    </target>   
    <target name="jar" depends="Initialize, compile" >
          <jar destfile="${jarfile}" basedir="${bin}" />
    </target>
</project>
my run output is:
Buildfile: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\build.xml
Initialize:
[delete] Deleting directory G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
[mkdir] Created dir: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
[mkdir] Created dir: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin\lib
compile:
[javac] Compiling 1 source file to G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
BUILD FAILED
G:\eclipse installation dir\shiva eclipse workspace\AntPractice\build.xml:25: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter
Total time: 922 milliseconds
please don't tell see in eclipse or other site
i am unable to find solution there
if needed i ll mail my small first AntProject ZIP file its just 2KB
thanx in advance
shiva_forums
@ yahoo
.co
.uk

hi Mr.Anderson
Thank you very much for reply
it's working if i remove that line from build.xml Ant build file
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>but in eclipse documentation, books & forums also specified to write that line
what are the consequences for writing or removing that line.
any how once again Thank you very much for ur Answer
with regards
Shiva

Similar Messages

  • The selected wizard could not be started  Reason:org/eclipse/jdt/core/IJava

    Hi
    i am a newbie to Eclipse plugin , i have used org.eclipse.jdt.core package classes(IJavaElement,ICompliationUnit)
    for my developement . In Standalone ( as a Eclipse application ) My code is working its generating required java files
    I export my plugin project and created a plugin folder. And copied the folder into eclipse/plugins folder
    Now if i open the Wizard. wizard opens with a alert saying
    " The selected wizard could not be started Reason:org/eclipse/jdt/core/IJavaElement "
    what will be problem
    i am using eclipse3.1 and JDK 5.0
    plugin.xml i have used the follwing requires tag
    <requires>
    <import plugin="org.eclipse.ui"/>
    <import plugin="org.eclipse.core.runtime"/>
    <import plugin="org.eclipse.core.resources"/>
    <import plugin="org.eclipse.ui.ide"/>
         <import plugin = "org.eclipse.jdt.ui"/>
         <import plugin = "org.eclipse.jdt.core"/>
         <import plugin = "org.eclipse.jdt.launching"/>
         <import plugin = "org.eclipse.jdt.debug"/>     
    </requires>
    Regards
    Ganesan S

    Please disregard. Reinstalling seems to have solved this
    issue.

  • Org.eclipse.jdt.launching.localJavaApplication Error

    I was developing nicely on Web Sphere Studio Developer Version=5.1.0
    (with eclipse Release 2.1.1) but I just started getting the error "No
    Tab group defined for launch application type/n
    org.eclipse.jdt.launching.localJavaApplication" when trying to run or
    debug. I was trying to parse&validate an XML file and getting a log of
    the Parsing errors.This might have done something. However, it was
    working before..Any ideas before deleting and reloading Eclipse?
    Cigdem Savaseri-Brackmann

    Hi Stephan,
    thank you for your fast answer, I have started with --debug and noticed the following message:
    Resolving dependencies of MavenProject: de.openknowledge.migrationtool:de.openknowledge.migrationtool:1.0.0-SNAPSHOT @ /Users/OleyMa/vcs/sourcemigration/de.openknowledge.migrationtool/pom.xml
    [DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from de.openknowledge.migrationtool 1.0.0.qualifier to bundle org.eclipse.jdt.launching.macosx 0.0.0.; Unable to satisfy dependency from org.eclipse.jdt.core 3.11.0.v_OTDT_r240_201506091717 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; No solution found because the problem is unsatisfiable.]
    [INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
    [ERROR] Cannot resolve project dependencies:
    Is the dependency to org.eclipse.objectteams.otdt.core.path.feature.group
    the problem? This is a feature which I do not know at all.
    Can you please give me a hint?
    Thanks in advance
    Markus

  • Container org.apache.catalina.core.ContainerBase has not been started

    Hi I'm integrated Tomcat 5 with Apache 2.0 using mod_jk on Fedora core 7 server. My problem is
    i cannot deploy my web application residing on /var/www/webapps/scienceph folder
    which has my index.jsp file.
    here is my code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="" %>
    <html>
    <head>
    <title>science.ph</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%java.util.Date today = new java.util.Date();
    out.println("Today's date is: "+today);
    %>
    scienceph ..
    </body>
    </html>when i started tomcat i got the following exceptions in my log file..
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error in resourceStart()
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/conf] startup failed due to previous errors
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Integration].[www.science.ph].[/conf] has not been started
    Apr 23, 2008 5:28:03 PM org.apache.commons.modeler.Registry registerComponent
    SEVERE: Error registering Integration:type=Cache,host=www.science.ph,path=/server
    sun.misc.InvalidJarIndexException: Invalid index
            at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:854)
            at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:762)
            at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:732)
            at sun.misc.URLClassPath.findResource(URLClassPath.java:145)
            at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
            at java.lang.ClassLoader.getResource(ClassLoader.java:977)
            at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:867)
            at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:960)
            at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:665)
            at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1014)
            at org.apache.commons.modeler.Registry.registerComponent(Registry.java:831)
            at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3869)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
            at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:448)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)here is my server.xml
    <Server port="8005" shutdown="" debug="0">
      <Listener className="org.apache.jk.config.ApacheConfig" modJk="/etc/httpd/modules/mod_jk.so"/>
       <Service name="Tomcat-Apache">
         <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
            address="www.science.ph" port="8009" minProcessors="5" maxProcessors="75"
            enableLookups="false" protocol="AJP/1.3" acceptCount="10" debug="0" maxPostSize="4097152"/>
         <Engine name="Integration" debug="0" defaultHost="www.science.ph">
    <!--        <Logger className="org.apache.catalina.logger.FileLogger"
                    prefix="catalina_log." suffix=".txt"
                    timestamp="true"/> -->
            <Host name="www.science.ph" debug="0" unpackWARS="true" appBase="" autodeploy="true"
                    xmlValidation="false" xmlNameSpaceAware="false">
         <Listener className="org.apache.jk.config.ApacheConfig" append="true" forwardAll="false" modJk="/etc/httpd/modules/mod_jk.so"/>
                <Context path="" docBase="/var/www/webapps/scienceph"  debug="0" reloadable="true">
    <!--              <Logger className="org.apache.catalina.logger.FileLogger"
                    prefix="localhost_DBTest_log." suffix=".txt"
                    timestamp="true"/> -->
                   </Context>
            </Host>
        </Engine>
      </Service>
    </Server>how can i solve this problem.. I'm not seeing my application in the browser.. please help me.. thanks in advance for your help..

    I already solved this problem.. for others who might also encounter this problem..
    just uninstall tomcat from FC7 and install a fresh copy from tomcat website
    tomcat version 5.0.26 works for me. hope this help..
    God bless..
    <img class="emoticon" src="images/emoticons/wink.gif" border="0" alt="" />

  • Source locator does not exist: org.eclipse.jdt.debug.ui.javaSourcelocator

    Hi
    I got a above the error  When start the debugging in my NWDS.
    Source locator does not exist: org.eclipse.jdt.debug.ui.javaSourcelocator
    Solutions is Reinstalling the NWDS , that option is not a good solution(choose any another options)
    Please any advices... How to fix ?
    Thanks
    Srini

    Hello,
    I've solved it by deleting the .metadata/.registry file (https://bugs.eclipse.org/bugs/show_bug.cgi?id=40947)
    Regards,
    Ilya

  • Org.apache.jasper.JasperException Ambigous Class Error

    I included two classes:
    <% @page import = "com.myco.ejb.ThisBean" %>
    <% @page import = "com.myco.ejb.session.ThisBean" %>
    and received an org.apache.jasper.JasperException Ambigous Class Error on the second import. One is a cmp bean, the other is a session bean. I thought Sun wanted us to name our packages like this to aid in the prevention of duplicate class names (i.e., Windoz DLLitus). Shouldn't these classes be unique by the package name?

    No, that's not redundancy. Are you using the fully qualified class name in your jsp:usebean tags?
    like:
    classname="com.mypackage.mybeans.MyBean"
    And are you using the package statement properly in your source?
    In the case that you are using two classes of the same name in one file the compiler has to have a means of distinguishing between the two. The only way for it to do so is to use the fully qualified name of the class in each case in which it is referenced. This means either in the jsp:usebean tag as shown above, or in such a case as:
    com.mypackage.myclasses.MyClass theOb=new com.mypackage.myclasses.MyClass();
    Awkward yes, but ambiguous No.
    In the case where you are using only one class of a given name the import statement will be sufficient for the compiler to know that it is that which you fully qualify in the import statement.
    Remember, all that the import statement does is provide the convenience of pre-clarifying exactly which class you'll be referring to when using the abbreviated class name only. Importing two classes of the same name defeats the purpose.
    Good luck,
    Brad

  • Error when Eclipse activates nitrox bundle

    Hi
    I am having big problems using NitroX after the 15 days trial expired. I am currently awaiting that my company purchases a license, but until that actually happens I really need - at least - the free JSP editor working. When eclipse (3.0.1 on Win2K) starts up it logs errors about not being able to activate the Nitrox bundle.
    I HAVE received an activation license for the free JSP editor which I have activated.
    At the moment the license is still activated and I am not able to de-activate it because neither the "Windows>Preferences>Nitrox" tab nor the "Help>Nitrox licen..." is working. The first responds with a "Unable to load the selected preference page. Reason: plug-in com.m7.nitrox was unable to load class com.m7.wide.eclipse.jstudio.WidePreferencePage." and the latter responds with a: "The choosen operation is currently unavailable".
    I have tried to re-install nitrox without success. I have not uninstalled it, since I can't de-activate my license. Can I get a new trial license? Something is also messed up with my M7 account - I can't log into the forum site and if I try to get a new activation license I get the message: "A subscriber with the same email already exits". Any help is appreciated!
    Best regards
    Esge
    Below is an excerpt from the Eclipse error-log (only the top of the stack-traces). Let me know if you need the entire trace.
    [size=9]!SESSION Mar 17, 2005 07:20:21.114 ---------------------------------------------
    eclipse.buildId=M200409161125
    java.version=1.4.2_07
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -feature com.m7.nitrox -application org.eclipse.ui.ide.workbench
    !ENTRY org.eclipse.osgi Mar 17, 2005 07:20:21.124
    !MESSAGE An error occured while automatically activating bundle com.m7.nitrox (286).
    !STACK 0
    org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle com.m7.nitrox.
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:975)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
         at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
    Caused by: java.lang.NullPointerException
         at com.m7.wide.eclipse.jstudio.Plugin.shutdown(Unknown Source)
         at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
         ... 113 more
    Root exception:
    java.lang.NullPointerException
         at com.m7.wide.eclipse.jstudio.Plugin.shutdown(Unknown Source)
         at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
    !ENTRY org.eclipse.core.runtime 4 1 Mar 17, 2005 07:20:21.144
    !MESSAGE Plug-in com.m7.nitrox was unable to load class com.m7.wide.eclipse.jstudio.WebDecorator.
    !STACK 0
    java.lang.ClassNotFoundException: com.m7.wide.eclipse.jstudio.WebDecorator
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
         at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
    !ENTRY org.eclipse.core.runtime 4 1 Mar 17, 2005 07:20:21.164
    !MESSAGE Plug-in com.m7.nitrox was unable to load class com.m7.wide.eclipse.jstudio.WebDecorator.
    !STACK 0
    java.lang.ClassNotFoundException: com.m7.wide.eclipse.jstudio.WebDecorator
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
         at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
         at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:131)[/size]
    [/code:1:979f7fdd67]

    Could I know which version of Workbench you are using? Was it installed as a
    standalone or an Eclipse plugin? Any other plugins you have installed?
    Regards,
    Long Liu
    2011/3/26 Janis Wolf-Pittel <[email protected]>
    >
    We're getting an error when closing workbench -- below is information from
    the log:
    >
    !MESSAGE Bundle update@plugins/org.eclipse.emf.compare.diff_0.8.0.v200806180301.jar
    was not resolved.
    !MESSAGE Missing required bundle org.eclipse.emf.compare.match_0.0.0.
    >
    Does anyone know why we would be getting this error?
    >
    Thanks,
    Janis
    >

  • Error with Eclipse - please help me

    Hi
    I know that maybe that's not the best place to ask about DisplayTag, but You are my last chance !!! So please help me!
    I am using DisplayTag in my web application. Could You tell me please why a got such error in my class?
    The type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly referenced from
    required .class filesThe code of class :
    package bus;
    import org.displaytag.decorator.TableDecorator;
    public class Wrapper extends TableDecorator
         static public int i=0;
         public Wrapper()
              super();
    }I read that is not the problem with my class but with my project and I have to build path in my project. But how can I do this???
    Thnx for help
    Martin

    You need to add the javax.servlet classes to your classpath.
    Easiest way is to extend the JRE in eclipse with those classes so that it would automatically be applied to every new project. Go to Window - Preferences - Java - Installed JREs - Select the JRE used - Edit - Add External JARs - add the JAR with javax.servlet classes to the JRE system libraries.
    You can use the javaee.jar of the Java EE 5.0 SDK [1] or the Glassfish /lib directory [2], or the servlet-api.jar of Tomcat's /lib directory [3].
    [1] http://java.sun.com/javaee
    [2] https://glassfish.dev.java.net
    [3] http://tomcat.apache.org

  • Eclipse jdt compiler/tomcat

    Hi all,
    this question is for those familiar with the eclipse jdt compiler.
    Im my web application i'm trying to dynamically compile a java file that i'm saving in a dir under my webapps folder say "mydir"
    for the comipaltion i'm using the eclipse jdt compiler but to get it work i need to specify the classpath argument for the Main.compile() method to work.
    now what is the default classpath of tomcat server ?
    or saying it in other way what should be the classpath i should use as arguments in Main.compile() method of jdt ?
    thanking you.

    well let me explain this more :
    i'm using the following code for dynamic compilation :
    ByteArrayOutputStream baosMessages = new ByteArrayOutputStream();
              ByteArrayOutputStream baosWarnings = new ByteArrayOutputStream();
    StringBuffer warnings = new StringBuffer();
    String classpath ="";
    //           Start compilation using jdtcore
              boolean compilationStatus = org.eclipse.jdt.internal.compiler.batch.Main
                    .compile("-1.5 -source 1.5 -warn:" + warningSetting + " "
                 + classpath + file ,
                 new PrintWriter(baosMessages), new PrintWriter(
              baosWarnings));
    StringBuffer compilerMessages=new StringBuffer();
              long time1 = System.currentTimeMillis();
              public  void compile() throws Exception {
              BufferedReader br = new BufferedReader(new InputStreamReader(
                    new ByteArrayInputStream(baosMessages.toByteArray())));
              while (true) {
                 String str = br.readLine();
                 if (str == null) {
                    break;
                // this._logger.info("/javac/ " + str);
                 compilerMessages.append(str+"\n");
              BufferedReader brWarnings = new BufferedReader(
                    new InputStreamReader(new ByteArrayInputStream(baosWarnings
                 .toByteArray())));
              while (true) {
                 String str = brWarnings.readLine();
                 if (str == null) {
                    break;
                 //this._logger.warning("/javac/ " + str);
                 compilerMessages.append(str+"\n");
                 warnings.append(str+"\n");
              System.out.println(compilerMessages.toString()+"\n\n"+warnings.toString());
              System.out.println((time1 - time0) + " milliseconds, "
                    + (compilationStatus ? "success" : "failure"));
         }Now when i run the servlet containing above code the result of compilation tells me :
    No such directory : null
    i'm suspecting i'm missing the class path . is that true ?
    can u help ?

  • Error building project using kXML2 - "Class loading error: Wrong name"

    Hi,
    I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
    import org.kxml2.io.*;
    import org.xmlpull.v1.*;
    When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
    Error preverifying class kxml2.io.KXmlParser
    Class loading error: Wrong name
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
    Build failed
    I also tried the full package "kxml2.zip" but the same error occurs.
    How can I get rid of this? Thanks in advance!

    Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
    Then I packed them again to a jar-file:
    %J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
    That was all!

  • Error with eclipse

    hi,
    i know this is not a web app forum,but as my question is with eclipse i am posting my question here
    i am trying to debug my application through eclipse. i have added source and jars to eclipse debug environment. when i dubug i am getting follwoing error,where its working with tomcat deployment . any suggestion?
    SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.log4j.Logger
    java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.log4j.Logger

    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5228948&tstart=0
    You've been told before also. Is it difficult to comprehend?

  • Tried to add JUnit Test in Eclipse -- "Test type does not exist" error

    Hi guys,
    I'm developing an assignment whose details I won't bother going into -- it's enough to say that we were introduced to JUnit testing a couple of weeks ago in university tutorials, and I've stupidly tried to add one to my project without fully understanding it all. This is in eclipse 3.1.1.
    Basically, I followed eclipse's built-in tutorial called "Writing and running JUnit tests ".
    1) Created class "TestFailure" with method "testFailure".
    public void testFailure() throws Exception {
        fail();
    } 2) This then appeared as a .java file in my project (as well as on my UML diagram, courtesy of Omondo's UML plugin).
    3) I decided it was too risky mucking around with this stuff in a "live" project, so went ahead and deleted the TestFailure icon on my class diagram.
    4) I closed down eclipse.
    5) I went ahead and deleted TestFailure.java and TestFailure.class from my project folders.
    6) I opened my project again, and tried to execute...
    ... and now I keep getting a Test type does not exist error when I try and run it.
    How on earth do I get rid of this?
    Any advice/guidance is greatly appriciated -- oh, how I wish I'd not started messing with JUnit testing!!! :)

    Um, okay -- I fully hold my hands up and admit that I don't know what I'm doing with JUnit testing (we only had a half hour intro to it) but figured I may as well learn by using the official tutorials. It's always a good place to start! Although obviously using a current assignment isn't the best idea ;)
    I was executing my main class (obviously with my main method in there) to execute the program after I'd deleted test case classes, but strangely I've just shut down my machine and restarted and it's working fine. I'm not sure what the deal is here -- lesson learnt though, study new topics on a dummy project! :)
    Anyway, if I waited until I understood the software and code I'm producing to its fullest, I think hell'd freeze over before I executed any code! :) Using a tutorial to learn a new aspect of software I'm already familiar with wasn't a bad move, IMHO. Just using it on this particular project was... Needless stress and all that.

  • JavaBean class invalid error

    Hello there,
    I am new to jsp development and am having problems using javabeans. I get a class invalid error. I have created a simple example that works fine without the useBean line (there Bean doesn't do anything in the example). I have looked over earlier posts in which others have discussed this same problem (http://onesearch.sun.com/search/clickthru?qt=useBean+invalid&url=http%3A%2F%2Fforum.java.sun.com%2Fthread.jspa%3FforumID%3D45%26threadID%3D567258&pathInfo=%2Fonesearch%2Findex.jsp&hitNum=1&col=developer-forums), but I none of the proposed fixes has worked for me. I hope that someone will see something that I'm missing. Below are the files that make up the example
    // userInput.jsp
      <html>
        <body>
          <h3>UserInput Form</h3>
          <form name="inputForm" action="userOutput02.jsp" method="post">
            <input type="text" name="userName">
            <input type="submit" name="submit" value="GO">
          </form>
        </body>
      </html>
    // userOutput02.jsp
      <jsp:useBean id="userInfo" scope="session" class="beans.User" />
      <html>
        <body>
          <h3>User Output</h3>
          Hello <%=request.getParameter("userName")%><br>
          <a href="userInput.jsp">Enter another name</a>
        </body>
      </html>
    // User.java
      package beans;
      public class User {
        protected String name;
        public User () {}
        public String getName () {
          return name;
        public void setName (String userName) {
          name = userName;
      }// Location of User.class
    <%webApplicationRoot%>/WEB-INF/classes/beans
    // Error Message when userOutput02.jsp is loaded
    org.apache.jasper.JasperException: /jsp/userOutput02.jsp(1,1) The value for the useBean class attribute beans.User is invalid.

    Well, I doubt this is your problem, since I don't see you trying to set anything, but the form field should really match your setter.
    If the setter is setName, the form field should be named "name" (though I'd switch everything to userName instead of name, myself, as name tends to be a reserved word in various applications and languages).
    Other than that, are you using Tomcat, weblogic, or...?

  • Class path Error urgent Plz

    Hi Guys,
    I was trying to write an WD application to check connector connectivity in EP, I have included these jar files in class path "com.sap.portal.ivs.connectorservice_api.jar" and "GenericConnector.jar".
    The codes are like
    IConnection connection = null;
    IConnectorService cs = (IConnectorService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
    IConnectorGatewayService cgs = cs.getIConnectorGatewayService();
    connection = cgs.getconnection(Alias,request)
    but as soon as I write this last line getconnection() I get error which is "Compilation unit indirectly references the missing type com.sap.portal.services.api.connectorgateway.IConnectorGatewayService(typically some required class file is referencing a type outside the class path)"
    and this given below error comes when I build the project.
    "The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath then try rebuilding this project."
    can any one please tell me how can I fix this problem.
    Thanks in advance
    Best Regards
    Yasir Noman
    Message was edited by: Yasir Noman

    Hi,
    I am facing the problem of class path errors.
    my error is :
    *Error:   Missing required library: 'C:Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.security2.0.0/lib/com.sap.security.api.jar'.*_
    And when I checkd on the program file \ lib folder there is .jar file.
    And the second error is
    Error:  The project was not built due to classpath errors (incomplete or involved in cycle).
    I tried to rebuild it and also repair it with project structure and classpath. so that it can find the missing libraries.
    I checked it out in the properties of the project in Java Build path it is showing an error of  build path entry is missing
    Please can anyone help on this error.
    I am stuck on this error for past a long time.
    Please Reply asap.

  • [SOLVED] Error uninstalling eclipse: "post-install: command not found"

    When I try uninstalling eclipse , I get "error: command failed to execute correctly"
    w0ng@e8500 ~
    % sudo pacman -Rns eclipse
    checking dependencies...
    Targets (8): glib-networking-2.30.2-1 gsettings-desktop-schemas-3.2.0-1 gstreamer0.10-0.10.36-1
    gstreamer0.10-base-0.10.36-1 libproxy-0.4.7-1 libsoup-2.36.1-1 libwebkit-1.6.3-1
    eclipse-3.7.2-2
    Total Removed Size: 243.84 MiB
    Do you want to remove these packages? [Y/n] y
    (1/8) removing eclipse [######################################] 100%
    /tmp/alpm_eY6rVO/.INSTALL: line 10: post-install: command not found
    error: command failed to execute correctly
    (2/8) removing libwebkit [######################################] 100%
    (3/8) removing libsoup [######################################] 100%
    (4/8) removing glib-networking [######################################] 100%
    (5/8) removing libproxy [######################################] 100%
    (6/8) removing gsettings-desktop-schemas [######################################] 100%
    No schema files found: removed existing output file.
    (7/8) removing gstreamer0.10-base [######################################] 100%
    (8/8) removing gstreamer0.10 [######################################] 100%
    w0ng@e8500 ~
    But all files appear to be removed successfully.
    w0ng@e8500 ~
    % sudo updatedb && locate eclipse
    /usr/share/highlight/themes/edit-eclipse.theme
    /usr/share/icons/Faenza/apps/16/eclipse.png
    /usr/share/icons/Faenza/apps/22/eclipse.png
    /usr/share/icons/Faenza/apps/24/eclipse.png
    /usr/share/icons/Faenza/apps/32/eclipse.png
    /usr/share/icons/Faenza/apps/48/eclipse.png
    /usr/share/icons/Faenza/apps/64/eclipse.png
    /usr/share/icons/Faenza/apps/96/eclipse.png
    /usr/share/icons/Faenza/apps/scalable/eclipse.svg
    /var/abs/community/eclipse-cdt
    /var/abs/community/eclipse-cdt/PKGBUILD
    /var/abs/core/licenses/eclipse-1.0.txt
    /var/abs/extra/eclipse
    /var/abs/extra/eclipse-ecj
    /var/abs/extra/eclipse/PKGBUILD
    /var/abs/extra/eclipse/eclipse.desktop
    /var/abs/extra/eclipse/eclipse.install
    /var/abs/extra/eclipse/eclipse.sh
    /var/abs/extra/eclipse/eclipse.svg
    /var/abs/extra/eclipse-ecj/PKGBUILD
    /var/abs/extra/eclipse-ecj/ecj
    w0ng@e8500 ~
    Should I be concerned or is everything fine? Can anyone reproduce this?
    Last edited by w0ng (2012-03-28 19:00:30)

    Check /var/abs/extra/eclipse/eclipse.install. Typo in post_remove: post-install should be post_install. You can run the post_install manually (and maybe report this in the bug tracker), but it just updates the gtk icon cache, so it's nothing to worry about.

Maybe you are looking for