DefCon 121 Share Posted December 21, 2017 yo, so I want to do some work on this open-src game on this site here: http://games.linux.sk/index.php it's called Battery, and you can download an archived file including apparently all the src code.... but after doing alll that It seems there's no main method in the main .java file, just a class that implements Runnable. Is this because the application is being run in a browser or am i missing something there? Link to comment Share on other sites More sharing options...
Notorious 342 Share Posted December 21, 2017 yo, so I want to do some work on this open-src game on this site here: http://games.linux.sk/index.php it's called Battery, and you can download an archived file including apparently all the src code.... but after doing alll that It seems there's no main method in the main .java file, just a class that implements Runnable. Is this because the application is being run in a browser or am i missing something there? So did a quick look through to check, and from what I see in the jar included in the tar, is that it uses a applet. Their main class: public class Battery extends GfxApplet implements Runnable { Their implementation of Applet. public abstract class GfxApplet extends Applet implements Runnable { Hope that helps a bit! Also if you are using Intellij, and cannot figure out how to create the run configuration, most of the time you should be able to right click within the main file, and select Run from the menu options. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.