Install4j 5.1.6 freeze on Mac 10.8 - install4j

I upgraded an installer previously created with install4j 4.2.8 (it was for MacOS 10.6) by the following steps:
Open the installer in install4j 5.1.6 and save it;
Change minimum java to 1.7, and set media jre to "Installed OpenJDK JRE"
Check Installer->Startup->Request priviledges->Mac OS X->Try to obtain root privileges if admin user
Then I built the installer, along with a debug version produced.
When I ran the produced dmg on Mac10.8 (with Oracle jre 7 installed), it became frozen when I clicked "Next" on the Installation Screen, and the log file stopped at output "checking writable with maximum". I could see two install4j related processes running at this point. The only way to get out the condition is to kill those processes.
I ensured that the debug version installer worked.
Please help if anyone experienced similar problems. Thanks.

Related

How to create JRE bundle using Amazon Corretto in Install4j on a Windows platform

I am trialling install4j and am creating an EXE and DMG files for an application with JRE bundled.
We choose to use Amazon Correto 8 so its JRE needs to be bundled.
Here is the link of Amazon Correto 8:
https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html
I installed install4j on a Windows machine and try to create the bundled JRE for EXE and DMG
There is no problem when creating windows version using https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/amazon-corretto-8.212.04.2-windows-x64-jdk.zip
However, When I tried to create it for DMG file using https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/amazon-corretto-8.212.04.2-macosx-x64.tar.gz, I encounter the following error.
error on windows
I also tried to generate it on a Mac but still failed with a different error.error on mac
Is there a way I can create the bundled JRE for DMG using Amazon Correto Mac version?
You can only create the macOS bundle on a Mac.
The Amazon Corretto JDK on macOS seems to be missing the release file. Try copying it from the Windows distribution to the Contents/Home folder, then it should continue.

Install4j Invalid Thread Access with SWT

When creating an installer for an SWT application for MacOSX, using a 64bit JRE, we are getting an
org.eclipse.swt.SWTException:
Invalid thread access that we can trace to a line:
Display display = new Display().
The error occurs when the application is launched after installation.
The same program works fine in development and in any Windows installations created with Install4j. Is there something different that needs to be done with a Mac OSX installer, aside from our making sure to include the proper SWT jar for the target platform?
Indeed, this seems to be localized to launching on MacOSX after installing with Install4j.
Edit your launcher in install4j, go to the "Executable info" step and select the "Uses SWT or QT" check box. Then it should work.
Update: For Apple JREs, the above is sufficient, but for Oracle JREs, the VM parameter -XstartOnFirstThread has to be added. From install4j 5.1.9 on, this will be added automatically.

android studio, installation fails while searching for java home

My OS Configuration
Windows 7 64 bit.
My android studio installation doesn't go beyond Java Se DEVELOPMENT KIT screen. It crashes and asks to either close or to search online for the solution.
Note: This is not the regular problem of it can not be run. And I have my JAVA_HOME variable set. The problem is in installation, not running...
I have solved it my self. I am not sure though if this is general or specific to my system.
What I did is.
Select the downloaded android studio installer -> Properties -> Compatibility
Check Run this program in compatibility mode for and select windows xp sp2
Check Run this program as administrator checkbox
(If it crashes, let it be) and run next time. And for me, it worked like a charm.

install4j error on Mac OS X

I am using install4j to create a Window and Mac OSX installer for a new version of my software. The only thing that has changed since my last distribution is my application. I have not changed any of the launcher or media file options in install4j. After building the installer, the Windows installer runs fine. The Mac OSX installer gives an error message on some machines. The message is "You need at least a 1.7 Java Virtual Machine to install..." However, a user reported that they already have 1.7 installed but still gets the error message. Does anyone know what is causing this error? Does install4j require 1.7 to run on a Mac?
Thanks
Edit the media file of your Mac OS X installer and go to the "JRE" step. If "Installed OpenJDK JRE" is selected, then Java 7 and higher is required. The above message indicates that no such JRE was installed. Also, make sure to update to the latest version of install4j.

Unable to install JDK-7u3-windows-x64

I am unable to install JDK on my laptop (a 64 bit machine with Windows 7 Home Basic). Whenever I try to install JDK on it a screen flashes for permission and after that, there is no processing for installation.
I want to install eclipse and android sdk for android development.
right click the jdk or eclipse and choose the Run as administrator mode. it will install your application.
I had a similar experience on Win7 Professional (64bit) with jdk-7u21-windows-x64
Turning off Windows's User Account Control fixed it (just remember to turn it back on when you're done)