diff --git a/pom.xml b/pom.xml
index 3236c59c2..8fe3f636d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,39 @@ http://maven.apache.org/maven-v4_0_0.xsd">
-
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ de.dhbwstuttgart.core.ConsoleInterface
+
+
+
+
+
+ maven-assembly-plugin
+
+
+ package
+
+ single
+
+
+
+
+
+
+ de.dhbwstuttgart.core.ConsoleInterface
+
+
+
+ jar-with-dependencies
+
+
+
+
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
new file mode 100644
index 000000000..7a571a4f9
--- /dev/null
+++ b/src/main/java/Main.java
@@ -0,0 +1,10 @@
+import de.dhbwstuttgart.core.ConsoleInterface;
+
+import java.io.IOException;
+
+public class Main {
+
+ public static void main(String[] args) throws IOException, ClassNotFoundException {
+ ConsoleInterface.main(args);
+ }
+}
diff --git a/src/main/java/de/dhbwstuttgart/core/ConsoleInterface.java b/src/main/java/de/dhbwstuttgart/core/ConsoleInterface.java
index 14314d837..946d7f105 100644
--- a/src/main/java/de/dhbwstuttgart/core/ConsoleInterface.java
+++ b/src/main/java/de/dhbwstuttgart/core/ConsoleInterface.java
@@ -2,10 +2,7 @@ package de.dhbwstuttgart.core;
import java.io.File;
import java.io.IOException;
-import java.net.URL;
import java.util.*;
-import java.util.stream.Collectors;
-
public class ConsoleInterface {
private static final String directory = System.getProperty("user.dir");
@@ -14,6 +11,15 @@ public class ConsoleInterface {
List classpath = new ArrayList<>();
String outputPath = null;
Iterator it = Arrays.asList(args).iterator();
+ if(args.length == 0){
+ System.out.println("No input files given. Get help with --help");
+ System.exit(1);
+ }else if(args.length == 1 && args[0].equals("--help")){
+ System.out.println("Usage: javatx [OPTION]... [FILE]...\n" +
+ "\t-cp\tSet Classpath\n" +
+ "\t-d\tSet destination directory");
+ System.exit(1);
+ }
while(it.hasNext()){
String arg = it.next();
if(arg.equals("-d")){