1. Jack-server Error

Source: Internet
Author: User
Tags touch

First, the server on the jack compile error, modify OK, has been verified

Communication error with Jack Server ($), try ' jack-diagnose ' or see Jack server log
Failed to authenticate Jack server certificate. Try ' Jack-diagnose '
Failed to authenticate Jack server certificate. Try ' Jack-diagnose

1). $HOME/.jack-settings:


# Server Settings
server_host=127.0.0.1
server_port_service=8076//write yourself a, preferably a larger
server_port_admin=8077//write yourself a, preferably a larger

# Internal, do not touch
Setting_version=4

2). $HOME/.jack-server/config.properties:

#Fri Jan 10:21:41 CST 2018
jack.server.max-jars-size=104857600
Jack.server.max-service=4
jack.server.service.port=8076//Is the same as the value above settings
jack.server.max-service.by-mem=1\=2147483648\:2\=3221225472\:3\=4294967296
jack.server.admin.port=8077//Is the same as the value above settings
jack.server.config.version=2
jack.server.time-out=7200


Second, Jack_server compile error: (native ubuntu14.04 compile, only own an account, and only in the compilation of a set of code, and on the server may be multiple users at the same time in the compilation may differ)

Communication error with Jack Server ($), try ' jack-diagnose ' or see Jack server log

1. It is possible that the jack-server process already has, resulting in multi-tasking prompts that require kill jack-server, and delete the home directory. jack*

1). Enter the corresponding directory Prebuilts/sdk/tools, (kill Jack-server process is not complete) (you can skip this step)

./jack-admin Kill-server
./jack-admin uninstall-server2). If there is no effect after the first step, it is possible that the Jack-server process does not exit itself and requires a manual kill

PS Ax | grep Jack//view Jack-server process

Kill 9 XXXX//Kill Jack-server Process

RM-RF ~/.jack*//Delete the Jack file in the home directory

3). You can start compiling. (also automatically generated in the home directory. Jack-server and. Jack-settings, no tube)

Reference: http://blog.csdn.net/yongyu_it/article/details/54573969


The following is a scenario in which multiple users are compiled concurrently as a server (not verified)

2. The problem may be that Jack does not support multi-user compilation and needs to modify the port of Jack_server:

Solution: (not determined)

Modify the port numbers in both $home/.jack-settings and $home/.jack-server/config.properties (for example, to 8086/8087) to support simultaneous multi-user compilation

1). $HOME/.jack-settings:


# Server Settings
server_host=127.0.0.1
server_port_service=8076//8086
server_port_admin=8077//8087

# Internal, do not touch
Setting_version=4

2). $HOME/.jack-server/config.properties:


#Fri Jan 10:21:41 CST 2018
jack.server.max-jars-size=104857600
Jack.server.max-service=4
jack.server.service.port=8076//8086
jack.server.max-service.by-mem=1\=2147483648\:2\=3221225472\:3\=4294967296
jack.server.admin.port=8077//8087
jack.server.config.version=2
jack.server.time-out=7200


3). Change the file $home/.jack-server/config.properties permission from rwx to RW to solve the problem.


3. Compile the host memory for a small reason, the resolution is to tune the memory required for small compilation

Diff--git A/prebuilts/sdk/tools/jack-admin B/prebuilts/sdk/tools/jack-admin
Index EE193FC: A3e84ea 100755
---a/prebuilts/sdk/tools/jack-admin
+ + B/prebuilts/sdk/tools/jack-admin
@@ -26,7 +26,7 @@ -26,7 077
Jack_home= "${jack_home:= $HOME/.jack-server}" reference: http://blog.csdn.net/yongyu_it/article/details/54573969
client_setting= "${client_setting:= $HOME/.jack-settings}"
TMPDIR=${TMPDIR:=/TMP}
-jack_server_vm_arguments= "${jack_server_vm_arguments:=-dfile.encoding=utf-8
-xx:+tieredcompilation} "
+jack_server_vm_arguments= "${jack_server_vm_arguments:=-dfile.encoding=utf-8
-xx:+tieredcompilation-xmx4096m} "
jack_extra_curl_options=${jack_extra_curl_options:=}

Launcher_jar= "$JACK _home/launcher.jar" reference: http://blog.csdn.net/yongyu_it/article/details/54573969
@@ -451,7 +451,8 @@ -451,7 $COMMAND in
If ["$RUNNING" = 0]; Then
echo "Server is already running" Jack-server-4.11.alpha.jar
Else
-Jack_server_command= "Java-xx:maxjavastacktracedepth=-1
-djava.io.tmpdir= $TMPDIR $JACK _SERVER_VM_ARGUMENTS-CP $LAUNCHER _jar
$LAUNCHER _name "
+ #JACK_SERVER_COMMAND = "Java-xx:maxjavastacktracedepth=-1
-djava.io.tmpdir= $TMPDIR $JACK _SERVER_VM_ARGUMENTS-CP $LAUNCHER _jar
$LAUNCHER _name "
+ jack_server_command= "Java-xx:maxjavastacktracedepth=-1
-djava.io.tmpdir= $TMPDIR $JACK _SERVER_VM_ARGUMENTS-XMX4096M-CP
$LAUNCHER _jar $LAUNCHER _name "
echo "Launching Jack server" $JACK _server_command


4. When the. jack-server file is missing (not determined)

Execute command generation into the Prebuilts/sdk/tools directory. Jack-server:./jack-admin install-server Jack-launcher.jar Jack-server-4.8.alpha.jar
Jack-launcher.jar, Jack-server-4.8.alpha.jar the names of these two files depend on the file name under your Prebuilts/sdk/tools directory,

Reference: http://blog.csdn.net/lizekun2010/article/details/525355913

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.