Search code examples
javalinuxubuntuinstallationizpack

izpack installer 'is not marked as executable' on ubuntu


I created an installer that works fine on OS X and Windows. On Ubuntu I get the message "The file '/media/administrator/UNTITLED/installer.jar' is not marked as executable" when trying to right click and launch with Java.

It works after I set the executable bit, but that's not the experience I expect from an installer.

The installer was built on OS X and I also tried to preset the executable bit via ant chmod, but I assume that This is lost or prevented on Ubuntu for security reasons?

Is there a way to reliably preset the executable bit? If not, are there alternative tools for creating double-clickable Installers that work on Ubuntu without users having to manually set permissions?


Solution

  • Seems the answer is "It's not possible. You need to create a .deb package to get the desired behaviour".