I cannot find easy solution to resolve my problem in Java. I have to run JAR file using command line with parametres.
I know how to do it like below, and it's working fine:
java -jar filename.jar argument1 argument2 etc. For example: java -jar file.jar 50 10
But, what should I do, it I heve to use some parameters? For example: java -jar file -width 50 -height 10
Is it possible?
[Edit] I cannot use external libraries.
Any similar answers are not so easy for beginner, some of them doesn't work for me. I'm not so stupid to open ticket first, I was looking for answer two days. But if you still think that this is duplicate just delete all posts in this topic :/.