This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a big project to do for college.... I have to get an open-source executable java game and insert it in netbeans and make it work (it has to be simple like 5-7 classes).
Now our professor did say one thing that they should not be an applet, rather they should be an executable
now I have got this one - http://glenn.sanson.free.fr/v2/?select=fb:play and when I downloaded the source code it had all sorts of applet stuff (i am terrible at java ) and well I couldn't get it running on netbeans but I don't know whether this is because it has an applet or because it uses this library called JIGA and i didnt import the library???
So I have two questions ... Is the source code of this website - http://glenn.sanson.free.fr/v2/?select=fb:play - an applet version??? Is there anyway to run it in netbeans?
I have attached a screen shot - Basically i downloaded the .jar file (because I was having trouble including the JIGA library inside the source code) turned it into a zip , extracted it - highlighted all the java classes added them to my project folder... but i am guessing it is not suppose to work that way....and there is no run button (it is grayed out) Help!!!
And second - where do I get another open-source java code for a game - it has to be an easy one - 5-7 classes and a NON-applet version that I can put in netbeans and run it?
The Dowload page of the website that you linked to contains some instructions to compiling the source code, including instructions on how to get the JIGA library. It also explains that the game can also be run as a stand-alone application (not just as an applet) - it says you have to create a JAR file, the command is on the page.
You can right-click on the Main class and select "Run as Java application" somewhere in the menu that appears. I see a green Run button in your screenshot (it is not grayed out). But not much will happen, because your main method is empty.
Why don't you try to get it working on the command line, using the instructions on the website, before trying to get the source code in a NetBeans project?