Belief me i went through several websites and tested many proposals to run my JAVA based GUI application on Raspberry Pi start-up. Finally the following worked out
First check inside the .config folder if it contains autostart folder or not , if not then create a folder named as autostart.
Create a myApp.desktop file inside the autostart folder.The myApp.desktop file should contain the following
[Desktop Entry] Encoding=UTF-8 Typr=Application Name=nds comment= Exec=sudo /usr/bin/java -classpath /home/pi/:/home/pi/Desktop/Display_lib/*.jar -jar /home/pi/Desktop/Display.jar StartupNotify=false Terminal=false Hidden=-falseThats all reboot your pi and your application should run now..... You can also do that by following method.. edit rc.local file and put the code just befor the exit 0.
Another thing is to run the GUI app continuously you also need to disable the default screen blackout. To do that just edit the rc.local file and put the following codes.
setterm -blank 0 -powerdown 0 -powersave off
. /etc/X11/Xsession xset s off xset -dpms xset s noblank