A question regarding Java project in ECLIPSE IDE

A question regarding eclipse.
No offence meant.
I have added a jar file to the current project in its build path.
This executes the concerned class file which is in the jar file.
If I remove the jar file from the build path and run the project,
it still executes that class file.
I tried building a clean project and running it,but still executes the jar file and the class.
Any idea why this is happening?

A question regarding eclipse.
No offence meant.People are not usually offended by Eclipse.
I have added a jar file to the current project in its
build path.
This executes the concerned class file which is in
the jar file.
If I remove the jar file from the build path and run
the project,
it still executes that class file.
I tried building a clean project and running it,but
still executes the jar file and the class.
Any idea why this is happening?You have that class file elsewhere
or you have confused your problem statement.
Why don't you create a new project and add everything except that class/jar (whichever yu mean)

Similar Messages

  • How to Debug a Java Project in Eclipse using Tomcat6.0

    Hi
    Can anybody help me with the following questions.
    1.How to create a java project in eclipse(I am using jsp,servlets,jsf,spring,jasper,struts).
    2.How to debug my application in Eclipse Europa by putting break points.
    3.how should i add Tomcat6.0 to my project in order to debug my application so that i can put break points while running the applications and observe the values.
    Thanks
    Bala

    You may find this tutorial useful regarding to JSF, Eclipse and Tomcat: http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
    To put breakpoints, just doubleclick on the left gray rule of the code, you'll get blue bullets at the left rule, indicating a break point. Run Tomcat in debug modus (rightclick Tomcat � debug). Use the Eclipse debug perspective to step in the code (window � open perspective � debug).

  • How can i import dll files in java project in eclipse?

    Hi All,
    How can i import or link dll files in java project in eclipse?....
    dll files contains
    import com.ms.com.ComLib;
    import com.ms.com.Variant;
    import com.ms.com.ComFailException;
    import com.ms.wfc.data.AdoException;
    import com.ms.wfc.data.AdoEnums;
    Any idea of this please tell me.....
    I am using eclipse 3.4 and JRE 1.4
    Is this possible?
    Please tell me!!!!!!!!!!!!!
    Voddapally

    iMovie cannot edit mpg files, unles they come directly from a supported camera.
    I would suggest that you use a free third party app to convert it.
    Get MPEG Streamclip from Squared 5, which is free.
    Drag you mpg clip into MPEG Streamclip.
    Then, FILE/EXPORT USING QUICKTIME
    Choose Apple Intermediate Codec, and save it where you can find it. You should be able to import this file into iMovie, using the FILE/IMPORT/MOVIE command.
    Note: If your file is an MPEG2 clip, you may need to purchase the Apple QuickTime MPEG2 Playback Component from Apple. MPEG Streamclip will tell you if you need this. Don't buy it unless you have to. It costs about $20. You just have to install the component. MPEG Streamclip will use it in the background.

  • Adding java projects in eclipse instead of jar files

    I have 2 java projects, one is in C:/test/ProjectA and another is C:/test/ProjectB
    Under projectA and ProjectB i have sub projects.
    I mainly work on ProjectB and import the jar of ProjectA in eclipse.
    Now I have removed jar file of ProjectA reference through eclipse and import projects to workspace, added projects under java build path. clean and build project. no compilation error in eclipse.
    when i do this, one of the class file is not getting loaded while server startup:
    07-Sep-2011 09:28:03 org.apache.catalina.loader.WebappClassLoader validateJarFile
        INFO: validateJarFile(C:\project\europa\NOS-OCT-TEST\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ESW\WEB-INF\lib\javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
        NOS 0    [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ESW]  - Error configuring application listener of class com.bgc.ecm.core.web.listener.Log4jRemappingListener
        java.lang.ClassNotFoundException: com.bgc.ecm.core.web.listener.Log4jRemappingListener
             at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
             at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
    when i add relevant jar file to the project and do a clean build server is getting started as expected.
    But my changes are not reflecting since it is referring old jar file.
    I am using Tomcat server as development environment.
    What i want is instead of refering jar file in eclipse, add projects so that the new changes should reflect the changes without ant build for creating jar file and instead only with eclipse build with source code of the dependent project and run the application.

    847389 wrote:
    I have 2 java projects, one is in C:/test/ProjectA and another is C:/test/ProjectB
    Under projectA and ProjectB i have sub projects.
    I mainly work on ProjectB and import the jar of ProjectA in eclipse.
    Now I have removed jar file of ProjectA reference through eclipse and import projects to workspace, added projects under java build path. clean and build project. no compilation error in eclipse.If you have imported the depended jar, and if its a java project. the eclipse by default refer these while compiling. I mean before using either of the ant script the or build project option in eclipse. And because of this it is not giving error.
    >
    when i do this, one of the class file is not getting loaded while server startup:
    07-Sep-2011 09:28:03 org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(C:\project\europa\NOS-OCT-TEST\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ESW\WEB-INF\lib\javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    NOS 0    [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ESW]  - Error configuring application listener of class com.bgc.ecm.core.web.listener.Log4jRemappingListener
    java.lang.ClassNotFoundException: com.bgc.ecm.core.web.listener.Log4jRemappingListener
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
    And when you deploy the build app in tomcat it looks for the dependent jar/classes in lib or classses folder, and as it is not there the error is thrown.
    If you are using ant script then please specify which jar files to load in lib folder.
    when i add relevant jar file to the project and do a clean build server is getting started as expected.
    But my changes are not reflecting since it is referring old jar file.
    I am using Tomcat server as development environment.
    What i want is instead of refering jar file in eclipse, add projects so that the new changes should reflect the changes without ant build for creating jar file and instead only with eclipse build with source code of the dependent project and run the application.If you want this, then write ant script compatible of loading both the jar's.
    Or you can make the ant to prompt the user which jars to be loaded, while building (I suggest this option, rather than loading all the jar's of project A and project B).

  • How can I build an existed project into eclipse IDE?

    Hello, all,
    I did not use eclipse IDE before. Someone gave me an completed directory which
    was a project (including all classes and source code) built by eclipse IDE. I
    want to rebuild it into eclipse on my computer. But eclipse only has "new" item
    to generate new project, class, etc. How can I rebuild the exist project in
    eclipse IDE?
    I appreciate your help or any suggestion!
    Thanks
    John

    Easiest way:
    Copy the folder into the Eclipse Workspace folder
    Create the "new" project with the same name as that folder.
    Eclipse should detect an existing project with the same name, inform you of this, and proceed from there.

  • Eclipse query regarding Java Projects.

    hi
    sorry about this query regd eclipe 3.3.1
    i have a folder on my c:\ called xips which contains 2 folders called xip1,xip2 which are project files.
    I need to import the above 2 projects in my eclipse under a new project called A20
    I create a new project in eclipse 3.3 called A20,then
    Create project from existing source
      Browse
      Go to xips\xip1
      Click ok
      And eclipse goes to work.Now,how do I now import the project xip2 under A20
    Is there a way I can create a project called A20,then import both the project xip1 and xip2 together
    Please guide and apologies for asking thie query here

    Just add it to the project's classpath (build path) or use project references.
    In the future, use the mailinglist over there at Eclipse.org. Or just read its documentation/tutorials.

  • Question about Java RMI and Eclipse

    I would like to create an application with which I can easily connect to a JAVA program, installed on a web server, through JAVA RMI. I have already created a ClientRMI.java and a ServerRMI.java and compiled them. The stubs also have been created properly.
    When I run the application outside the Eclipse editor, everything works just fine! However, when I want to integrate the files into a bigger project in Eclipse... and starts running it, he tells me he can't find the stub class or something like that. I need to place this one in the classpath but I don't know how to do that in Eclipse? Could anyone help me with this problem?
    Thanks!
    This is the fault message I get:
    no security manager: RMI class loader disabled)
    D-me

    Do you have an idea of what the answer to our
    question could be?I don't have much idea about the question myself. I was groping in the dark. :-)
    Anyway, the project classpath settings and the external jars (or dependent projects) are a few things which could be experimented with. I'm afraid I couldn't be much help without having a look at what you are trying to do. :-(
    Regards,
    x

  • AppBuilder :Getting Error While importing the Project to Eclipse IDE ?

    Hi Experts,
    While importing the project from AppBuilder to Eclipse IDE following error i'm getting,
    Error : Cordova Activity Cannot be resolved to a type,
    Can someone help me to solve this.
    Thanks in advance,
    Vamsi K.

    Thanks ,I have been gone through <Projection Type='System.WorkItem.Incident.ProjectionType">.
    Now i am getting many errors while importing data.I have customized fields in servicedesk and i have created same fields in scsm incident form.When i am imported
    data i am getting below error.
    Please let me know how can i import customized feilds data to SCSM without issues.
    Regards, H@ri

  • Opening java project in eclipse environnement

    Hi all,
    I use eclipse environnement for java programming. I cannot open my project in eclipse, even if I specify the workspace. When I open eclipse in the specified workspcae, I cannot clic on the option "open project". Does anyone know how to open one projet in eclipse !!!!!
    Thanks a lot for any help ...
    javaFriendly

    Probably best to ask in the Eclipse forums, yes?
    However.....I guess your Eclipse project might have got corrupted or something, so (assuming your source files are still okay), backup your .java files somewhere else, delete the project directory and, in Eclipse, create a new project with the same name and then move over all your files back over. Has worked for me on a couple of occasions.

  • Compiling a Java Project in Eclipse

    Hey all, I'm having trouble compiling a project.
    I had a Java class two years ago and I forget how to do it. I have all the files in a folder named "final" on my desktop.
    Inside "final" is all my sounds, images, a file called table.class, sound.class, sound.java, and table.java.
    How do I get this thing to be an executable again???

    Create a new project in Eclipse and get it to work like you want. Then go to File > Export to make a jar file.

  • How to import java project to Eclipse?

    Hi
    I just got a java project which has jsp, java, struts and the .settings folder has
    org.eclipse.core.resources.prefs
    org.eclipse.jdt.ui.prefs
    org.eclipse.ltk.core.refactoring.prefs
    org.eclipse.wst.validation.prefs
    .Project file has <name>org.eclipse.jdt.core.javabuilder</name>
         <nature>org.eclipse.jdt.core.javanature</nature>
    The jsp and java files are under src folder.
    Since it is my first time to use eclipse platform, I do not know where should I put all those source files?
    Is it a dynamic web application to have those *.prefs in .settings folder?
    Thanks for help

    Why have you posted this in the JSF forum? This has nothing to do with JSF.
    To import an existing project in Eclipse, just rightclick somewhere at Project Explorer and choose Import.

  • Loading a Java project into Eclipse.

    I am trying to load a project from in eclipse
    The project is in c:\Project and is called ABC.
    My workspace in eclipse is c:\MyWorkspace.
    I am trying to import this project into the above workspace
    I am saying: New - Project - Java Project - Create project from existing source (and point it to c:\Project\ABC)
    Error:The specified location already exists.
    How do I get project ABC into my workspace ?
    I seem to have forgotten

    Just move the folder "ABC" from C:\Project to C:\Workspace
    then create a new Java Project named "ABC" and you are all set.
    Don't choose "Create from existing project" Just create the project.
    Message was edited by:
    jjhusa01

  • Problem regarding JAVA project...

    this is the brief discussion about my project :it actually automatically fillup the application forms or other forms on net
    (on the sites mentioned).Actually the information that is to be fill up in application form is saved on the hard disk in the form of text file .N ow my project read this text file and fill up the application form on net.
    I am actually learning core java and i want to know which book to follow for JAVA regarding my project(Means i don't know which book to follow after core java . THERE ARE servlets and JSP books,or others books) .i have not started it(project) yet.i am learning "core java from Head First Java".
    and i even don't know what are servlets And JSP ,Why it is use????
    and also tell me the books to followed for core java and then for Advanced java ???.If there are any good tutorial regading them ,then plz send me the link.....or email me at [email protected]

    You need to be proficient in core Java (J2SE) before even thinking about starting on J2EE.
    But if you want to learn more about what J2EE is, why not read the tutorial: [http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf]

  • Flex/Java project w/Eclipse Galileo

    Hi,
    I've recently installed Eclipse Galileo and am trying to get a test Flex app using BlazeDS up and running with the Flex Builder plugin.  I've got the exact same project and setup configured with Eclipse Ganymede and everything runs fine, but am completely stuck in getting it to work with Galileo.
    I initially created the Flex Project with the J2EE server option using remote object access with LiveCycle.  I also selected the create combined Java/Flex project using WTP.  I'm using a Glassfish v2.1 server and use the default context root and content folder, and am also pointing it to the blazeds.war file.  This is exactly the same way I set things up with Ganymede.
    When I try to run the project, I get a status 404.  If I go to the Flex Server properties for the project and ask it to validate the location, it says that it can't access the web server.  I know the server is running and has the application deployed and the root folder and URL seem to be correct.
    Is there anything that changed in this area between Ganymede and Galileo?  Can anyone give me any other pointers regarding what to look for to track down the problem?  I've looked at the .flexProperties files and they are exactly the same between the two, other than the workspace I'm using.  I'm really stuck on this and would very much appreciate any help.
    Thanks so much!
    Renee

    Is there no one who can help me. Or is this thread better suited for another topic (and which one)?

  • I just asked a question regarding Java. I received an answer. I can't reply, so problem is can't add anything to that box. How to add to box?

    I can't add any sites, either by cut and paste or typing the thing all over. Nothing allows me to add!
    So, what to do to ADD???
    Thanks.
    It would be helpful if this support forum allowed my to embed a photo, but I can't even log into my new account, as it says my password is wrong, which it isn't Very frustrating on all accounts!

    I've called the big guys to help you. Good luck.

Maybe you are looking for