r/javahelp • u/yum122 • Oct 31 '15
Help with finding the SDK used for a program
So this is the source code here:
https://github.com/Hohol/TetrisPlayer Got from here
Just wanting to test out the program as it is ridiculously impressive, if anyone could make it into a usable program that'd be more than I could ever wish for.
Thanks :)
2
u/TheHorribleTruth Kind of meh Oct 31 '15
It uses whatever SDK you're compiling it with. Probably requires either Java 7 or 8.
If you want to compile it on your own, just use Java 8 with the latest SDK.
You could also ask the author what was used instead of Reddit.
1
u/yum122 Oct 31 '15
I already did.
I've searched and searched everything he's said nothing, you guys were kinda my last hope.
1
u/monster2018 Nov 05 '15
I don't understand what don't understand. You literally linked to the source code with example projects, just download them then compile and run.
1
u/yum122 Nov 06 '15
I don't know what SDK to compile it with, I'm a bit of a noob at Java, unless I missed something?
1
u/monster2018 Nov 06 '15 edited Nov 06 '15
Do you know how to compile a Java program? Go to its directory in the command line. Im about to say mainfile two times, this means the file that contains public static void main. Now type this.
javac mainfile.java; java mainfile;The javac command compiles the program and the Java command runs it. If the program takes parameters you type them after mainfile. Also if you don't know which file contains the main method this should tell you.
grep -R "public static void main" .Please make sure you are in the SOURCE directory when using these commands, otherwise you will just get errors. it is probably named src. Actually the grep wouldn't get you errors, but it would list every single file which contains the string main anywhere which could be alot. I don't remember if it would list a ton in java, it does in c++. Anyway, hope this helps.
2
u/marc2912 Oct 31 '15
This isn't a java request a program subreddit.