How to install a java app on my system

I have downloaded a java app (Jaikoz tagger) and to run I have to run from the bin directory created in the download by changing to the subdirectory in my home directory and running ./jaikoz all from a terminal. This all works as expected, opens the application window and works as expected.

I now want to have this app installed in my Application Multimedia list so I can open it from the start button. How should I do this please?

@Budgie2 Create a desktop file in ~/.local/share/applications called say jaikoz.desktop

[Desktop Entry]
Version=1.0
Name=Jaikoz
GenericName=Jaikoz Audio Tagger
Comment=Launcher for Jaikoz.
Type=Application
Terminal=false
Exec=Jaikoz_start_script
Icon=YOU NEED TO PUT AN ICON NAME HERE
Categories=AudioVideo;AudioVideoEditing;

I have a directory called applications to pop these things in, then just a script in ~/bin to cd to the location and run…

1 Like

Hi Malcolm,
Many thanks and simple though your suggestion is it is too complicated for me:

I do not have a bin in my home directory but there is of course a bin subdirectory in the downloaded installation files. I had assumed it should be in somewhere in my system so exactly where should it be?

I can create a bash script but then where do I then put it. Is it in the [Desktop Entry] file above?

The icon name also has be puzzled. I have an icon in the installation file download, jaikoz.png but should I include the full tree?

Dumber than ever today but this is what I have:-

[Desktop Entry]
Version=1.0
Name=Jaikoz
GenericName=Jaikoz Audio Tagger
Comment=Launcher for Jaikoz.
Type=Application
Terminal=false
Exec=Jaikoz_start_script
Icon=file:///home/alastair/Computing_and_Network_Files/Programs_and_Apps/jaikoz/lib/jaikoz.png
Categories=AudioVideo;AudioVideoEditing;

All new to me.

@Budgie2 Create a directory in your user home eg applications;

mkdir -p ~/applications
cd applications
mv ../Downloads/jaikoz-linux.tar.gz .
tar xvf jaikoz-linux.tar.gz
cp jaikoz/lib/jaikoz.png ~/.local/share/icons/jaikoz.png
cd

cat > bin/Jaikoz_start_script <<EOF
#!/usr/bin/bash
cd ~/applications/jaikoz/bin/
./jaikoz
EOF

chmod 0755 bin/Jaikoz_start_script

cat > .local/share/applications/jaikoz.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=Jaikoz
GenericName=Jaikoz Audio Tagger
Comment=Launcher for Jaikoz.
Type=Application
Terminal=false
Exec=Jaikoz_start_script
Icon=jaikoz.png
Categories=AudioVideo;AudioVideoEditing;
EOF

From the cat to the EOF, you copy and paste into the terminal and then press enter…

Screenshot from 2024-02-05 12-08-06

1 Like

Forgive me but although I followed your instructions exactly I cannot execute the jailkoz.desktop instruction. I get the message:-

Could not find the program 'jaikoz_start_script'

Must stop now but will resume in the morning. Also how do I get the icon into my starting apps?

@Budgie2 it’s a capital j as in “Jaikoz_start_script” not “jaikoz_start_script”

Hi Budge,

Just a quick question. Have you ever tried kid3? It’s easy to used and quite powerful. Might spare you some hassle…

It is, it is! Tired old eyes and impossible to tell until I changed the name and only then difficult to tell so many thanks.

I have never used a bin subdirectory in my home directory. I always understood these were in /etc/bin or elsewhere higher in the root tree. Since this now is working as I hoped who am I to complain.

That’s another drink I owe you!
Regards,
Alastair.

@Budgie2 I always use lowercase to avoid the issue, but your example showed a “J” so didn’t want to confuse… (but I did…)

Anything you want to run as just your user can happily live in ~/bin that’s the whole point of it… if system wide, then down in /usr/local would be the place for those things or maybe /opt.

Hi Malcolm,
Having had modest success with Jaikoz I am now trying to resurrect my old version of songkong which I last used in 2019. I have upgraded my subscription but all the old installation was long lost with my hardware upgrades so I have downloaded the latest version. I thought I could then follow your above instructions but songkong is nothing like Jaikoz and the downloaded version (without java) uses a more recent version of java than TW so I have download the version which includes java. So far so good.

I have installed songkong in /usr/local/bin where I have other apps like Get_iplayer so I now have the unzipped files in the /usr/local/bin/songkong directory thus:-

alastair@HP-Z640-1:/usr/local/bin/songkong> ls
classical_composers.txt   license.properties                    songkong_matchalbum3.properties
classical_conductors.txt  license.txt                           songkong_matchalbum.properties
classical_people.txt      linuxjre                              songkong_metagrater1.properties
delete_files.txt          not_classical_release.txt             songkong_metagrater.properties
fonts                     renamemask.properties                 songkong_naimimport.properties
fpcalc_arm32              songkong_deleteduplicates.properties  songkongremote.sh
fpcalc_linux              songkong_editsongs.properties         songkong_renamefiles.properties
fpcalc_linux64            songkong_fixsongs1.properties         songkong.sh
general.properties        songkong_fixsongs2.properties         songkong_statusreport1.properties
genrelist.txt             songkong_fixsongs3.properties         songkong_statusreport.properties
help.pdf                  songkong_fixsongs4.properties         songkong_undochanges.properties
index.html                songkong_fixsongs.properties          songkong_watchsongs.properties
lang                      songkong_matchalbum1.properties       style
lib                       songkong_matchalbum2.properties       webhelp
alastair@HP-Z640-1:/usr/local/bin/songkong> 

I am not sure what next. I cannot find the logo .png for the app and I am not sure if I need to create a start script as before. If you have time I would appreciate more help please.
Alastair.

@Budgie2 Do you need it system wide (as in multiple users)?

Hi Malcolm,
Not so important. I do have a couple or users on this machine but it would only be me using it as far as I can foresee for now. It was just that I have Get_iplayer also installed in /usr/local/bin so that is where I started. Of course when I started out I hadn’t realised that my system did not support the TW version of java so if you suggest I change to local user that would be fine. Just point me in the right direction. I have no idea how songkong will support updating with the imported java so just suggest what will work best with me as local user.

@Budgie2 Just follow the earlier instructions as in create a directory in your $HOME and extract there etc. Of course remove the other stuff you installed…

I build get_iplayer as an rpm…

Hi Malcolm,
Ok will do as you suggest but please give me a clue about the image for the icon. The only one I have found so far is :-
songkong32
this was buried in songkong/style/songkong32.png. Is this the one to use?

@Budgie2 The desktop file will find it, but it’s jaikoz/lib/jaikoz.png

Hi Malcolm,
Sorry if I was not clear. I have Jaikoz up and running. It has been songkong which is the subject this time.

@Budgie2 Ahh ok, so same thing but it looks like you can just point the Exec to songkong/songkong.sh

For an icon, what ever you find can be placed in ~/.local/share/icons directory.

Hi Malcolm,
Yes that is what I did and now I have songkong working same as Jaikoz. Nothing popped up this thread as indicated in 4 above but it is all working as hoped so many thanks.
A.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.