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) }
}
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.
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: 35429
9
posted
0
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
posted
0
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: 35429
9
posted
0
Does your jar file have a manifest with a proper "Main-Class" entry?