I have written an application in Java. Then, I packed it into a JAR file and now I run it from command line using "java -jar myapp.jar". Because it connects to the web, sometimes it throws the IOException. So what I'd like to do is to check JAR file's return value on application finish (when application closes gracefully it returns 0 and when it closes because of an exception it returns 1). Next, I'd like to run this JAR file as long as it won't return the 0 value (some kind of while loop). Thanks for help.
Michał Tabor's questions
How can I add new programs to the launcher (or the dock in Ubuntu 17.10 and later) in Ubuntu?
I have installed LAMP server using such command:
sudo apt-get install apache2 apache2-mod-php5 php5 mysql-server phpmyadmin
I opened localhost and it said 'It Works!'.
I also opened localhost/phpmyadmin and it says 404...
Anyway its not the biggest problem. The biggest one is that I cant even upload files to it. I go to System Files -> var -> www. I see here index.html. I can only read it (readonly) and can't save it to apply changes. I cant even add any files to www folder!
When I try to (open Text Editor, write some script and save it in www folder) it gives me an error (something that I cant save files in this directory).
Please help me solving this problem. Im trying to for few days I have reinstalled whole Ubuntu few times, and still nothing.. Greetings