How would I distribute a game?

How would I distribute a game without handing out the .java's and .class's? Sorry if this was already asked. Also, could someone explain how I would get it to be distributed, as well as how to make it distributable? Thanks!

[232 byte] By [InsaneMonkeya] at [2007-11-27 11:08:59]
# 1

I'd say it's impossible. You can't execute the program without the .class file. Are you expecting magic to happen?

floundera at 2007-7-29 13:32:33 > top of Java-index,Java Essentials,New To Java...
# 2

> How would I distribute a game without handing out the .java's

A *.java file is just the source code. There is no need to distribute the source code.

> and .class's?

Well, that's another problem. You could a) compile to native code, or b) run your game on a server and not allow users to download any client code. Otherwise, *.class files will contain the byte codes necessary to run your program on a JVM.

> Sorry if this was already asked.

It *has* been asked, numerous times. Why not just search?

> Also, could someone explain how I would get it

> to be distributed, as well as how to make it

> distributable? Thanks!

Compile to native exe, distribute an executable JAR, Java Web Start, etc.

~

yawmarka at 2007-7-29 13:32:33 > top of Java-index,Java Essentials,New To Java...
# 3

Compile to native exe, distribute an executable JAR, Java Web Start, etc.

What are all those? ^

InsaneMonkeya at 2007-7-29 13:32:33 > top of Java-index,Java Essentials,New To Java...
# 4

> What are all those? ^

Don't worry about it yet. First things first:

http://www.pandia.com/goalgetter/

Read that, and apply that knowledge to questions like the one you just asked.

~

yawmarka at 2007-7-29 13:32:33 > top of Java-index,Java Essentials,New To Java...