Relative Content

Tag Archive for javaeclipsejarexecutable-jar

Eclipse export java package with main as runnable

I have an eclipse java maven project with some packages. Each package has its own main method. I need to export each package as separated runnable jar that includes only the dependencies that it uses. When I right click the package to export to runnable jar then the procedure uses all the packages project not only the package I clicked. But when I use the export to jar then it uses only the package as I need but with this procedure there is not option to include dependencies as with runnable export! The last option that is not desired is to make separate projects for each package.