[java] ?distribution?
Hello Friends,
Lets say I''m really productive and finish my project in 4-6 years
(better get working on those sprites...) And lets also say I
have a web page where people can download the beast.
Now, what exactly is it that they are downloading?
How do I make it?
Are the end users able to open it up and say "oh, here''s the code, image and sound files"? -I don''t want that btw-
advice, thoughts, remonstrations?
p.s. I do know how to program, thanks
There are Java decompilers that will translate .class files to java source code. Don''t know how well they work though, have never used one.
There are also so called obfuscators that will... well, obfuscate your class files. Making it harder to extract any usefull information from them (through decompiling etc.). I have never used one of those either so can''t say how well they work, (I''ve heard that some might mess up your class files in ways they weren''t supposed to, not sure though)
Do a web-search, you should find some intressting links about this.
There are also so called obfuscators that will... well, obfuscate your class files. Making it harder to extract any usefull information from them (through decompiling etc.). I have never used one of those either so can''t say how well they work, (I''ve heard that some might mess up your class files in ways they weren''t supposed to, not sure though)
Do a web-search, you should find some intressting links about this.
Due to overwhelming response I am going
to have to ask the participants of the
Java forum to limit themselves to 100
responses per thread per day.
Thank You for your cooperation.
to have to ask the participants of the
Java forum to limit themselves to 100
responses per thread per day.
Thank You for your cooperation.
Yeah this does look like this thread is out of control....
You can protected your class files by obfuscating them which makes the class -> java source unreadable and uncompilable.....
I am also in the throws of completely a project, but I have already spent several years on it....
:-)
You can protected your class files by obfuscating them which makes the class -> java source unreadable and uncompilable.....
I am also in the throws of completely a project, but I have already spent several years on it....
:-)
Thanks Chaos, wow, the home streatch of your project?
congratulations that kicks ass!
I might not get there till my son grows up and is able
to help me code (j/k)(well, mostly j/k)
I think I understand the obfuscator, I would also like to
know, what do I actually make...
OK let me try to explain
1. I finish my project.
2. I have a web page
3. Beta testers will come to the page and they will see
"PC testers DL here" "mac OS9 here" "Linux here"
4. There NEEDS to be an elegant install tailored to each
environment so if you open a .zip or a .sit there is a
clearly labeled install which launches install sheild or VICE.
4a. I will probably have to pay a contractor to write the install sheild/ vice/ whatever install script since that is a speciality and it needs to be done properly
4b. assuming that the install script is taken care of what do I create to run on the various platforms??????
I need to create an exe. and a .dll for windows? Are there any JRE considerations? What about Mac?
What about Linux?
Thanks if you can help.
congratulations that kicks ass!
I might not get there till my son grows up and is able
to help me code (j/k)(well, mostly j/k)
I think I understand the obfuscator, I would also like to
know, what do I actually make...
OK let me try to explain
1. I finish my project.
2. I have a web page
3. Beta testers will come to the page and they will see
"PC testers DL here" "mac OS9 here" "Linux here"
4. There NEEDS to be an elegant install tailored to each
environment so if you open a .zip or a .sit there is a
clearly labeled install which launches install sheild or VICE.
4a. I will probably have to pay a contractor to write the install sheild/ vice/ whatever install script since that is a speciality and it needs to be done properly
4b. assuming that the install script is taken care of what do I create to run on the various platforms??????
I need to create an exe. and a .dll for windows? Are there any JRE considerations? What about Mac?
What about Linux?
Thanks if you can help.
A long time ago I saw a link in this forum to a program that made a self installing .exe for windows for java applications. I''ll try and lok to see if I can find it.
War doesn''t determine who is right, war determines who is left.
War doesn''t determine who is right, war determines who is left.
Thanks
I'm starting to get a mental picture of how this works.
So, lets say I download a .JAR file to my high end PC
Can I expect to just be able to doubleclick on it and expect the
JRE pick it up and run it?(similar to the way I can doubleclick an (.exe) and expect it to run?)
How does this work?
Thanks again
Edited by - lupine on June 26, 2001 1:02:42 PM
I'm starting to get a mental picture of how this works.
So, lets say I download a .JAR file to my high end PC
Can I expect to just be able to doubleclick on it and expect the
JRE pick it up and run it?(similar to the way I can doubleclick an (.exe) and expect it to run?)
How does this work?
Thanks again
Edited by - lupine on June 26, 2001 1:02:42 PM
Heres the answer (copied from a post: author LeonTang)
Lupine: In order to successfully run your JAR file, you will have to "direct" the manifest file to the correct class file to be ran. For example if your main class is HelloWorld.class, you will have to add a manifest file to your JAR file.
Create a manifest.mf file with the contents:-
Manifest-Version: 1.0
Main-Class: HelloWorld
Created-By: 1.3.0rc2 (Sun Microsystems Inc.)
Then in the commandprompt, type:-
jar cfm HelloWorld.jar manifest.mf HelloWorld.class
Make sure your class files and manifest.mf file are in the same directory. From there on, just double click on the JAR file and the HelloWorld.class will be executed.
--------------------------------------------------------------
Hope this helps other people too!
Lupine: In order to successfully run your JAR file, you will have to "direct" the manifest file to the correct class file to be ran. For example if your main class is HelloWorld.class, you will have to add a manifest file to your JAR file.
Create a manifest.mf file with the contents:-
Manifest-Version: 1.0
Main-Class: HelloWorld
Created-By: 1.3.0rc2 (Sun Microsystems Inc.)
Then in the commandprompt, type:-
jar cfm HelloWorld.jar manifest.mf HelloWorld.class
Make sure your class files and manifest.mf file are in the same directory. From there on, just double click on the JAR file and the HelloWorld.class will be executed.
--------------------------------------------------------------
Hope this helps other people too!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement