wood burning stoves 2.0*
The moose likes Applets and the fly likes So I Got This Game, See... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "So I Got This Game, See..." Watch "So I Got This Game, See..." New topic
Author

So I Got This Game, See...

Noah Faust
Greenhorn

Joined: Mar 07, 2009
Posts: 26
I made a processing applet game with the program eclipse. I would greatly appreciate it if anyone had a suggestion for turning it from a large folder into a single file that I could upload to free game hosting sites and the like.


public class Signature {
public static void main (String[] args) { System.print.ln (//insert witty phrase here) }
}
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
Are you familiar with jar files? They let you package not just class files, but also other resources needed by the code (like images, sounds, other files) all in one file.


Ping & DNS - my free Android networking tools app
Noah Faust
Greenhorn

Joined: Mar 07, 2009
Posts: 26
I exported it into a .jar file, but when I tried to upload it to Kongregate, it said it was an invalid file type.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
I'm not sure what Kongregate is or does, but jar files are definitely the way to distribute applets (or Java desktop apps).

If that's a hosting companies then I think it's none of their business what kind of files you upload, particularly when they're such common formats as jar. Sounds like something is misconfigured.
Noah Faust
Greenhorn

Joined: Mar 07, 2009
Posts: 26
I see, I think this is less a java question than a game development question. Are there any good programs to run jar files with? I can't run the jar I made.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
Does your jar file have a manifest with a proper "Main-Class" entry?

This page has (and links to) information about making a jar file executable: http://faq.javaranch.com/java/JarFiles
Noah Faust
Greenhorn

Joined: Mar 07, 2009
Posts: 26
thanks!
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4165
    
  21

Noah Faust wrote:I exported it into a .jar file, but when I tried to upload it to Kongregate, it said it was an invalid file type.


From Kongregate's FAQ:
What format of games can I upload?

We support Flash (swf) files as well as Shockwave. ...


It looks like that particular site doesn't support uploading Applet-based games.


Steve
Noah Faust
Greenhorn

Joined: Mar 07, 2009
Posts: 26
Thank you for the link, I was trying to find more information but couldn't seem to find a details page.
 
jQuery in Action, 2nd edition
 
subject: So I Got This Game, See...
 
Similar Threads
Capture the cat!
WA #1.....word association
pretty puzzle for a Wednesday afternoon
The Black Box: Reloaded
Try these games...