Well, I mean call the main method as in give it arguments. In the main method (preferably at the top) you can do args = new String[]{"<your eclipse workspace folder>", "<the project>"}. For example, I would do args = new String[]{"/home/taco/.workspace", "DeityCreative"}
That main method is used mainly for console, you can delete (or better yet, comment out) everything above "stats.showStats()" if you are going to run it from Eclipse
Oh btw, is there possibly a version of this that would work for Batch? I'm trying to make an installer with it and I thought it'd be cool to use this on it
Well, its a gist.. and its one file.. you can just copy/paste. Also, becuase it's java you can run it from any command line (if it's compiled, use javac if you need to) so you can use the java command to run it
2 more questions cause I know very little about all this :D
1) Is the <eclipse workspace folder> in ""s?
2) If I use NP++ would I just put the folder that all those projects are in? (in this case it's dropbox)
1) If your running it via the command prompt, then yes, it will need to be in quotes but only if it has a space in the name (i.e. "C:\Users\Majora Unmasked", but C:\Users\MajoraUnmasked is different)
2) If you use NP++ I suggest using the "stats = new ProgramStats()" method i said earlier, in this case it would be "stats = new ProgramStats("<folder>", "<project>")"
I thin you asked this before. While some java programs may be platform (and even architecture) dependent, this one is not. You can run it via a Batch script if you wanted to
A Batch script is basically just a list of commands that you want the command prompt to run (although you can do more things). Every command is separated by a new line, one of these lines can be "java -jar <your jar file>"
Comments on Profile Post by KILL3RTACO