Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  decompressing .JAR files  (Read 2544 times)
0 Members and 1 Guest are viewing this topic.
Offline Ryonik

Senior Newbie


Medals: 1



« Posted 2011-07-31 06:08:25 »

Ok so the subject title might be a bit misleading but couldn't find a better way to put it. Anyway I was just wondering, how come its so easy for anyone to decompress .JAR files with such basic tools that can be found in the internet (or an SDK and command-prompt) and just mess around with the contents, do changes, rip off things...etc. (Sort of like what people do when it comes with modding. Something like minecraft for example, that game wouldn't be so famous if it wasn't because of its huge modding community). And well get away with it?
Isn't there some way to just prevent people from decompressing a .JAR file and go poking around in there? with say, something easily accessible such as WinRAR?

 
Offline Z-Man
« Reply #1 - Posted 2011-07-31 06:24:39 »

Well you can try a wrapping the .jar in an .exe with something like Launch4j but if you want to make a mac version then people can get the jar that way (even if you package it as a .app (Mac OS X's native application format) ). You could look into programs that compile java byte code into native machine code (I think there are some still around) but other than that I don't think there is much you can do. I know some archives can be password protected, but I don't know if .jars do. They might since their based off of the .zip format. I don't know how that would affect running it and getting resources from it though.
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #2 - Posted 2011-07-31 09:35:37 »

The thing with distributing software to clients, is that they always will go around poking in the inner workings of it. I know I always decompile the games I play, and look at the source code.
With jars there isn't much to do for art and assets, but you can always obfuscate your code. Obfuscation doesn't mean people won't still look at it, and potentionally figure out some things. Minecraft is obfuscated, and it's against the.. terms?.. to reverse engineer. Yet, modders still release their mods, right? Effectively proving that they have reverse engineered. Emo

TL;DR:
Obfuscate your code. License both code and art.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #3 - Posted 2011-07-31 14:54:12 »

Anyway I was just wondering, how come its so easy for anyone to decompress .JAR files with such basic tools that can be found in the internet

Because Jar files are just Zip files (probably the most used compression format). Using zip make it a lot easier for developers to use a the mass of available tools to create them.

Besides no matter what format you use (even *.exe) its possible to reverse engineer, the only thing you can do about it is to try make it harder (using things like obfuscation, DRM, etc).
Offline Ryonik

Senior Newbie


Medals: 1



« Reply #4 - Posted 2011-08-01 03:15:31 »

so there is no way from stopping someone from plagiarizing your work? Like if you making a game in alpha stage, you let some people test it, one of those testers decompresses the .JAR file.  does some changes, and just says that its his. But it would be a complete copy off of mine..

TL;DR:
Obfuscate your code. License both code and art.

is that what those companies with game engines do? License their code? how would they figure out if someone is using a genuine version/license of their engine?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #5 - Posted 2011-08-01 11:52:30 »

I think you're being overly protective here.

Code which is obfuscated (or even decoded standard bytecode) is pretty much useless to steal anyway (unless its critical to say security or something), anyone with enough skill to use decompiled code would probably find it easier to just write their own. The main thing is the art and sounds, using a custom format pretty much stops most cases of asset theft. Lastly don't forget you have legal remedies too, such as copyright, licence, etc.

Its extremely rare that someone will steal your game and pass it off as their own, even if it does happen its usually pretty easy to figure out who the real author is. I think the harder task is writing something someone will want to steal Smiley
Offline Ryonik

Senior Newbie


Medals: 1



« Reply #6 - Posted 2011-08-03 05:05:52 »

I think you're being overly protective here.

Code which is obfuscated (or even decoded standard bytecode) is pretty much useless to steal anyway (unless its critical to say security or something), anyone with enough skill to use decompiled code would probably find it easier to just write their own. The main thing is the art and sounds, using a custom format pretty much stops most cases of asset theft. Lastly don't forget you have legal remedies too, such as copyright, licence, etc.

Its extremely rare that someone will steal your game and pass it off as their own, even if it does happen its usually pretty easy to figure out who the real author is. I think the harder task is writing something someone will want to steal Smiley

hmm, alright, so my inquiries are answered, with this reply and the others. I knew about obfuscating code, but I'm gonna have to take a look at that about custom formats for art and sound... alright thanks everyone.  Wink
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (20 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!