Results 1 to 13 of 13
Thread: packing java project
- 06-08-2010, 11:34 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 72
- Rep Power
- 0
packing java project
I have made a java project and want to deliver it to a client but I don't want to deliver it as a jar file as the client can see the source code easily by unpacking the jar file.
How can I pack my java project so client cannot look at the source code or cannot change the source code?
One more thing, Can I integrate a key functionality so that client can only access that software by first registering it with the key provided by me?
Second, can I integrate another functionality through which the software can run only on a single machine through that key?
Any suggestion will be highly appreciated
- 06-08-2010, 11:59 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
- 06-08-2010, 12:04 PM #3
Member
- Join Date
- Jan 2010
- Posts
- 72
- Rep Power
- 0
Then what to do...
- 06-08-2010, 12:19 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
- 06-08-2010, 02:29 PM #5
Member
- Join Date
- Jan 2010
- Posts
- 72
- Rep Power
- 0
please elaborate it....if i won't be putting my source files in the jar file then how will it be going to work...and what about putting license key on the project...please explain
- 06-08-2010, 03:26 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
You put your compiled class files in the jar maybe?
- 06-08-2010, 05:27 PM #7
usually a java-project have a subfolder called src for sources and a subfolder called bin which contains the compiled byte-code of each class-file. so when you have to deliver your code then deliver only the bin directory. in addition
The basic format of the command for creating a JAR file is:
jar cf jar-file input-file(s)
The options and arguments used in this command are:
* The c option indicates that you want to create a JAR file.
* The f option indicates that you want the output to go to a file rather than to stdout.
* jar-file is the name that you want the resulting JAR file to have. You can use any filename for a JAR file. By convention, JAR filenames are given a .jar extension, though this is not required.
* The input-file(s) argument is a space-separated list of one or more files that you want to include in your JAR file. The input-file(s) argument can contain the wildcard * symbol. If any of the "input-files" are directories, the contents of those directories are added to the JAR archive recursively.
if you have all your files in the same directory, then note that "The input-file(s) argument can contain the wildcard * symbol." so select only your class-files. for more details, read thisLast edited by j2me64; 06-08-2010 at 05:35 PM.
- 06-08-2010, 06:55 PM #8
Member
- Join Date
- Jan 2010
- Posts
- 72
- Rep Power
- 0
@j2me64
thanx a lot....
please help me in implementing the functionality of putting a license key....
- 06-08-2010, 07:41 PM #9
There is a basic problem here understanding the relationship between source files and the output of a compiler.my source files in the jar file then how will it be going to work
- 06-08-2010, 10:04 PM #10
People/programs can read files with the extension .java
People/programs CANNOT read files with the extension .class
With that said, compress files with the .class extension in a JAR file.
Not with JAR files.One more thing, Can I integrate a key functionality so that client can only access that software by first registering it with the key provided by me?
Second, can I integrate another functionality through which the software can run only on a single machine through that key?Last edited by Lil_Aziz1; 06-08-2010 at 10:08 PM.
"Experience is what you get when you don't get what you want" (Dan Stanford)
"Rise and rise again until lambs become lions" (Robin Hood)
- 06-09-2010, 01:19 AM #11
- 06-09-2010, 02:22 AM #12
You can alway disassemble the code to source. The obfuscator makes the disassembled source very hard to read/understand.don't want to let disassemble your code you must use an obfuscator
- 06-09-2010, 08:58 AM #13
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
Need help for JAVA AI project
By willemien in forum Jobs DiscussionReplies: 0Last Post: 05-02-2010, 11:52 AM -
3D Java Project
By ant-mi in forum New To JavaReplies: 1Last Post: 04-19-2010, 01:52 PM -
Java Project
By Smirre in forum New To JavaReplies: 16Last Post: 11-17-2008, 08:37 PM -
Packing vars
By Supamagier in forum Advanced JavaReplies: 6Last Post: 09-20-2008, 12:26 AM -
Help with Java project
By ducster in forum New To JavaReplies: 11Last Post: 12-03-2007, 03:08 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks