Weborama + Java

    Weborama + Java
    I am sure that most users of habrahabr .ru spend not a small part of their time listening to music.
    When all the old songs are pretty fed up and you want to listen to something new, useful web services come to the rescue.
    There are many web services that allow you to listen to popular songs directly from the site, of which you can select the web , site player.

    However, this article is not about how convenient it is to listen to music on the web frame, but rather help organize your collection of popular music using java and web frame.


    And then everything is very interesting. Although the web panorama is a very convenient service for listening to music, it does not allow you to download music.
    How to download music?

    Fortunately, nothing - downloading music from our site is not provided. But you can listen to it yourself and delight others.


    So , it remains to decide what our program will be able to do.
    Below are the main features of the program.
    • Downloading a popular composition by genre.
    • Downloading songs by artist.
    • Search songs for this request
    • The program should try to find an artist or song, even if the request is not correct
    • All "Heavy" algorithms must be executed in separate threads

    With the basic functionality, it’s clear that the “Pluses” remain
    • ID3v1 (ID3v2_2 supported too) tags
    • All mp3s that have no tags are deleted when the program starts
    • The program determines if there is a  similar track in the same album
    • The program can limit the number of simultaneous downloads
    • The program should be provided to the user as an installer

    Now about what is needed to implement all this :)
    • Java Development Kit - JDK
    • Library to add tags to mp3 files - jid3lib
    • Development Environment - NetBeans IDE
    • Program for creating installers and launchers - install4j

    View of the main window of the program
    Program interface
    Providing a product to a user
    It would not be right to provide a bare user jar or jar + bat to a normal user, many probably know how many problems a regular user might have (yes, a superman). The answer to the problem was found very quickly - install4j . In addition to the fact that install4j can create installers and launchers for MacOS, Windows, Linux, it also allows you to add the latest version of jre for windows, linux to the installer (unfortunately there is no such option for the mac).

    The build process in install4j
    Build in install4j
    Thus, we get a full-fledged program written in java, which the user may not be aware of :)
    But as they say in a barrel of honey there is always a fly in the ointment, for install4j it is the price: $ 1119 and $ 399 with the option to build only under windows.

    Download
    Source code with NetBeans project files can be taken here .
    The installer for Windows is picked up here .

    I immediately apologize to those who expected to see a lot of code in this article. The article is not about that at all.

    upd.
    The installer for MacOS is here , and for Linux here .

    Also popular now: