Introduction
Stability level
Current stability level for Packaging Code Protection:
– It’s back again with the b2.3.0. Use embedding feature for source code protection.
JXcore introduces a unique feature for packaging and encryption of source files and other assets.
Let’s assume you have a large project consisting of many files. This feature packs them all into a single file to simplify the distribution. It also protects your server side javascript code by encrypting all source files.
Long story short
The full documentation is further down the page. But if you want a summary on how to create JX package and run, here it is:
> jx package helloworld.js "Hello world" > jx helloworld.jx
JX package
About JX package file
The JX package file is what you get as a result of compiling, packaging and encrypting of your project. It’s a binary file used only by JXcore executable. It contains all of the script files of your project, as well as assets, which can be considered as static resources.
Compiling
Creating a JX package out of your project is very easy. You can either use a command line. Or you can use the Terminal (or Command Window on Windows).
First, go to the directory, where the project is located:
> cd Hello_world
Basically, the compilation tool needs a JXP project file. You can read more about this in another section: JXP project file.
But you can also generate it if you want to make your life easier. To accomplish this, just type:
> jx package helloworld.js "Hello world"
More on this can be found at package.
As a result, you will receive both helloworld.jxp (the projects description file) and helloworld.jx (the final package itself).
Now, having the helloworld.jxp file, you could modify it using a text editor (to add a version number, for example), and later recompile the JX package by:
> jx compile helloworld.jxp
Launching
JX packages can be executed as follows:
> jx my_project.jx
Obviously, you need to have JXcore installed first. For this, please visit the Downloads page.
You can also run the package in multiple instances.
> jx mt my_project.jx or > jx mt-keep my_project.jx
For more details, please refer here.
JXP project file
About JXP project file
The JXP file is a JX package description. It contains information about the package. This is also the input file for the compilation of a JX file. It means, if you want to package your project into a JX package, you need to create a JXP project file first.
You can do it either manually or by using our jx package generation tool.
Generating
JXcore contains an internal JXP file generation tool. It recursively scans the current folder and generates a JXP package information file based on all the files in that directory.
It’s very easy to use from the command line. You can use the Terminal (or Command Window on Windows) for this.
First, go to the directory, where your project is located:
Type jx package to see the command syntax for creating JXP file
Suppose you have a simple Hello_World project, with just two files: helloworld.js and index.html.
Now you can create the first JXP file with the following command:
> jx package helloworld.js "Hello World"Initially, the tool generates JXP project file (helloworld.jxp). Then it creates the output package helloworld.jx by using the project file. In the end, you’ll have the following files in the folder
Now, you can move helloworld.jx file to another folder and type the command:
> jx helloworld.jx
You are done!
Check 3gp mobile movies sites list and watch free movies online
Read other posts:
Leave a Reply