compiling resources?

Hello again, I used to compile my resources when I was programming in c++.
I mean, convert resources files (images, etc…) to .cpp files (.java this time).

Is there something to do it in the standard api?

The usual thing to do is simply bundle the resources in a Jar with your apps class files. Compiling the data in to a class file (as a static array or something) is too limiting, particularly since a single class must be less than 64kB.

I never heard about 64Kb limit, thanks!

BTW, Im trying to find a way to encrypt my resources.

[quote=“lucazd,post:3,topic:24128”]
Give up. There is no practical way.

yes, I know there’s no practical way.

I just like to prevent the “casual thief” :).

You can’t. Hence SWP’s comment.

Search for “obfuscation” and “decompilation” in the whole forum, going back circa 500 days, to find various threads on the details of this

http://192.18.37.44/forums/index.php?topic=8442.0

Some ideas there…Enjoy the read…