Making a runnable .jar with dependent libraries for dummys

Making a runnable .jar with dependent libraries for dummys..

Can someone outline the steps I have to take to making a runnable .jar with dependent libraries for dummy with Maven and Eclipse.

I want to use Maven to load the dependent jars but will be using eclipse to do all my coding.... can this be done? I started a projects but Eclipses does not see the dependent libs in my pom.xml file so I am getting errors as I am coding.

Here is my pom.xml

<project xmlns="" xmlns:xsi=""









and I dont know why this code is giving me errors in eclipses

package org.runnablejar.RunnableJAR;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

 * Hello world!
public class App 
    private static Log log = LogFactory.getLog(App.class.getName());

    public static void main( String[] args )
        System.out.println( "Hello World!" );

You could either:

  1. Use the m2eclipse Maven plugin for Eclipse to make the project maven-aware,
  2. Use the mvn eclipse:eclipse maven goal to generate a proper .classpath file.

When I compile a ruby file to a java class using jrubyc, I get different output when compiling with just jrubyc and with jrubyc --java (to generate the java file) and just javac. Why? Example: First ...

Say I have a 3x4x5x6 java double array a that I unroll into an ArrayList b of length 360 in the following way: for (int i = 0; i<a.length; i++){ for (int j = 0; j<a[0].length; j++){ ...

I am basically making a battleship guessing game where you have to the position of a ship by the click of your mouse. When a position of the ship is guessed correctly it deletes that ship cell from ...

Estoy tratando de instalar el marco de extracción DBPedia siguiendo el He descargado la versión binaria de Maven. $ mvn --version Apache Maven 3.0.4 (r1232337; ...