-------------------------------
new a XXX.sh file
------------------------------
write like below:
-----------------------------
sleep 20;
cd /home/pi/Downloads #the StartUP file's path java -jar Hello.jar #the StartUP file -----------------------------sudo chmod 777 /home/pi/Downloads/test.sh
sudo chmod +x /home/pi/Downloads/test.sh
----------------------------------------
mkdir /home/pi/.config/autostart/
nano LXinput-setup.desktop
[Desktop Entry]
Type=Application
Name=testboot
NoDisplay=true
Exec=/home/pi/Dowloads/test.sh
--------------------------------
----------------end-----------------