File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Game Development and the fly likes Is this an applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Is this an applet?" Watch "Is this an applet?" New topic

Is this an applet?

Tewodros Getenet

Joined: Mar 26, 2011
Posts: 5
Greetings my fellow Java lovers,

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 - 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 - - 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?


[Thumbnail for Untitled.png]

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

Welcome to JavaRanch!

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?

Please UseAMeaningfulSubjectLine instead of something like "Help !" or "Save Me" when you start a new topic.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60765

As a helpful gesture, I've adjusted the subject for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Tewodros Getenet

Joined: Mar 26, 2011
Posts: 5

Ok so now since my professor said that she needed it to work on netbeans..... I would be good to try to make it to run in netbeans...

Ok so i put in a package and when I ran it it gives me the error message that it does not have a main class..?
How do i fix this....?

Since I am desperate to lean how to do this project.... I am willing to host a supervised remote desktop connection with someone....

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

I have edited your post for the email ID. For more information, please read

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Search the source code. Does any of the classes extend JApplet or Applet for that matter? If yes then this is an applet and applets dont have a mail class.

Tewodros Getenet

Joined: Mar 26, 2011
Posts: 5
Darryl Burke

Joined: May 03, 2008
Posts: 4523

Please BeForthrightWhenCrossPostingToOtherSites

luck, db
There are no new questions, but there may be new answers.
Tewodros Getenet

Joined: Mar 26, 2011
Posts: 5
Sorry - Cross Posted
jQuery in Action, 2nd edition
subject: Is this an applet?
Similar Threads
module has not been deployed
Help launching an applet created in Netbeans environment
Tutorial PostgreSQL 8.3 on Glassfish V2.1 for ConnectionPool in Netbeans 6.5.1, WindowsXP (Post 3)
Packaging applet in web application
Save me