B4J Question Taskbar Icon & B4J packager

Discussion in 'B4J Questions' started by labcold, Jun 26, 2019.

  1. labcold

    labcold Member Licensed User

    I have built an app which uses the task bar Icon to show the current state of the system while the app is minimised.
    I use a call as below replacing X with the state Icon I want to use.
    MainForm.Icon = fx.LoadImage(File.DirAssets, "state_x.png")
    This works well in the debugger and well when I build and run an executable locally.

    Then I used the packager to build the app so i can distribute it.
    The app still works correctly but the Icon in the TASKBAR is always that set in the Icon input box on the packager or the default Java icon if you leave it blank.

    Is there a way to get around this? have I missed something in the setup of packager?

    [NB using the OLD b4jpackager not Java 11]
    Last edited: Jun 26, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. Worth upgrading to B4J Packager 11.
    2. Run the jar from the command line with java -jar and see whether there are any messages (if you switch to B4J Packager 11 then run it with run_debug.bat).
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice