Show Some Love

Adding External jar files in Eclipse for EAR Project

This forum was posted on Tuesday, May 21, 2013 6:17:27 AM

I required to add external jar files to a EAR Project.
I did add but the jar files are not reflecting in the lib folder it's displaying following to lib folder.
I added these jar files on right clicking on Deployment Descriptor Import-> Java EE Utility Jar and choosing to copy from the folder.
When I dragged the jar file on the lib folder the velocity jar file finds Updated to .ear file in the eclipse project explorer.
I hv attached a snapshot of the project explorer. Could you Plz let me know How can i add external jar files to ear project as my EJB requires external jars to be included.
I hv even added classpath for jar files in my EJB manifest file
Class-Path: ErpServices-ejb.jar velocity-1.6.4.jar velocity-1.6.4-dep.jar xwork-core-
searching forward to your reply. Thank You.

68 Viewed this Question

 Recent Replies on "Adding External jar files in Eclipse for EAR Project"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question

Note: Please Put Code into <code></code> block.

Threads related to "Adding External jar files in Eclipse for EAR Project":

GWT Google Maps V3 overlay widgets

i'm working with the GWT google maps V3 API and i require to show custom shapes over the map.For simple elements I used Polygon Circle and InfoWidnow classes but i require to show little other widgets like button or custom panels.Is there any approach to do that using OverlayView class ? I tried a simple solution: an AbsolutePanel that having the MapWidget and my custom widgets placed on top but i wish to use the gwt google maps classes as much as I can. I hv read the documentation and also search

Get Requesting User's IP Address Within Apache XMLRPC environment?

I hv a very initial XMLRPC Servlet Server running - literally following the defaults suggested by the Apache folks ( there any approach for me to access the requestor's IP address from within my XMLRPC functions? I'm designing a service that logs the requests it's received from various members by IP address.For illustration if I were taking the Calculator class from their illustration I might do something like public int add(int a int b){ IPAddress m

The ZipInputStream can't read all information of zip file

I wrote little code snippet snippet using ZipInputStream but There is something wrong with it.ZipInputStream zin=null;zin=new ZipInputStream(new BufferedInputStream( new FileInputStream("e:/")));ZipEntry ze;while((ze=zin.getNextEntry())!=null) { System.out.println("readfile"+ze.getName()); int c=0; while((>0) { System.out.write(c); } } zin.close();there're 3 text files in the That is the right o/p should be the three file names and their contents

Unsatisfied Link Error

Why am i getting Unsatisfied Link Error?The details are as following:Native Method's prototype and it's call in my java code snippet snippet is like this:private native big sampleFunction(big twoDimArray big number);p.sampleFunction(twoDimArray number);Native method's prototype in VC++ code snippet snippet is like this:JNIEXPORT jlong JNICALLJava_MyClass_sampleFunction(JNIEnv *env jobject obj jobjectArray myArray big number);

How do I add EJB capabilities to an Eclipse dynamic web project?

I am developing a simple application with EJB 3.0 using OpenEJB for deployment and Eclipse as an IDE. I made the project as a 'dynamic web application' in Eclipse. When I tried making the first stateless session bean I realized that the @Remote annotation could not be resolved. what's the right approach to fix this problem ?Delete the project and generate a new 'enterprise application project' (this seems to be very heavy weight so I am not sure i require to go in this direction) ?Delete the project and gene

Debug in Eclipse : inspect variable -> errors durring evaluation

I'm working on a piece of code snippet snippet Java and I hv a dump problem.I'm doing little debugging and for I don't know what reason when I'm trying to evaluate (watch or inspect) little variables declared inside a method it show the following error:errors durring the evaluation.I don't get it. i'm working with Eclipse 3.7.For instance it does the similar even for the method parameteres (which should be available until the end of the execution of the method).I think is very odd and I don't get to de

How to synchronize two methods

I hv following code snippet snippet for a chat server application in Java - public synchronized List getMessages(int messageNumber) { return msgs.subList(messageNumber + 1 msgs.size());}public synchronized int addMessage(ChatMessage c) { msgs.add(c); return msgs.size()-1;}I hv following test code snippet snippet - public static void main(String args) { final ChatRoom c = new ChatRoom(); Thread user1 = new Thread(new Runnable() { public void run() { for(int i=0;i c.addMessage(new ChatMessage()); c.getMessages(0); } } });

Programming a one-to-many relationship

So I am surprised that doing a search on google and solutionoferror doesn't return more o/p.In OO programming (i'm working with java) how do you perfectly manipulate a one-to-many relationship?I hv a class Customer and class Job. My application is for a fictious company that completes jobs for customers. My current implementation is so that the Job class doesn't have anything to do with the Customer class There is no reference to it at all. The Customer class uses a collection and methods to hold recover

Sonar Java Web Client: Authors by line null

When running the following code snippet snippet on my Sonar measure returns null. (Should return something on the lines of "1=author;2=author..."). However it works on Other measures illustration: violation work perfectly on mine so this is possibly not a issue of faulty code snippet snippet. I suspect i require to configure Sonar somehow? private final Sonar sonar; public String getAuthors(String resourceKey){ return getMeasure(resourceKey "authors_by_line").getData(); } priv

How to create a calendar object within an Object within an ArrayList

Just working on my java assignment and I hv hit a brick wall I just can not appear to find a solution for - I'm not necessarily searching for an solution even little solution to what tools might Plz Please help me in this in this :) Anyway here goes:As the title says I am searching to generate a calendar object within an object within an Arraylist. generally as per the code snippet snippet below - I thought that when an instance of the Appointment object was made the link between the calendar object and