cd CashAdv THEN ] Running
java -jar /home/bigaisdgood1/CashAdv/CashAdv.jar in a terminal would run my program correctly and has no problems.
However, when I use that line of code in a .desktop shortcut as
exec=java -jar /home/bigaisdgood1/CashAdv/CashAdv.jar, it would run, but not connect.
My Java program (CashAdv.jar) connects to Localhost by making a Connection String from a .txt file placed in the same folder.
I have a feeling it just doesn't see the .txt file, but I'm open to other possibilities.
- I've recently tried putting the .txt file in the same folder as the shortcut, with no effect.
Exec=cd /home/bigaisdgood1/CashAdv/ && java -jar /home/bigaisdgood1/CashAdv/FindDir.jaris invalid, and returns an error when I use the shortcut.