Install4j - Mac OSX Single Bundle with Java 7 - app launch error - macos

Install4j v5.1.6: Creating Media File type "Mac OSX Single Bundle" bundled with Java 1.7 JRE (Java 1.7u45) causes the following error displayed when the Install File is launched:
"You need at least a 1.7 Java Virtual Machine to install [my app name]. Please download it from http://www.apple.com"
Works fine if I bundle without JRE by selecting in the Media Wizard JRE step: "Installed OpenJDK JRE (Java 7 and higher)", but I need app bundled with a JRE. Install File launched on OSX version 10.7.5. Created Install File with Install4j running on Win 7 64bit.

can u elaborate on how did you add jre and from where u download those bundles? Usually you need to download jre from install4j IDE and can bundle the same with your application.

Related

Java application is not able to find JDK 1.7 on Mac (Installer created with install4j)

I have created a Java application installer using install4j for Mac OS X. My application uses JDK 1.7.
I have set the JDK version in install4j properly as well.
I have also installed JDK 1.7 on Mac and when I type java -version command on console it gives me JDK 1.7.
Application also installed successfully but I am out of luck, when I try to start the application it gives me this error:
Exception in thread “main” java.lang.UnsupportedClassVersionError: a (Unsupporte d major.minor version 51.0)
The above error occurs because it uses Apple's inbuilt JDK 1.6. I want app to use JDK 1.7 which is already installed on the machine.
Edit
Now I have created installer by selecting OpenJdk in jre option.
Now it is not giving me the UnsupportedClassVersionError but now application icon blinks on the dockbar and goes.
Below is the cosole log.
5/23/13 11:16:47.777 AM com.apple.launchd.peruser.502[154]: ([0x0-0x92092].com.install4j.9409-6211-0940-9008.25[800]) Exited with code: 1
5/23/13 11:17:09.166 AM com.apple.launchd.peruser.502[154]: ([0x0-0x93093].com.install4j.9409-6211-0940-9008.25[802]) Exited with code: 1
5/23/13 11:17:12.400 AM com.apple.launchd.peruser.502[154]: ([0x0-0x94094].com.install4j.9409-6211-0940-9008.25[804]) Exited with code: 1
Please help me.
In the media file wizard for your Mac OS X installer, go to the "JRE" step and select "Installed OpenJDK JRE (Java 7 and higher)".

Install4j - Creating OSX Java 7 JRE bundle

I am trying to create a JRE bundle for OSX using install4j's createbundle utility. Unfortunately the utility is not included in the OSX installation.
I tried using the ant task described in the following document:
http://resources.ej-technologies.com/install4j/help/doc/indexRedirect.html?http&&&resources.ej-technologies.com/install4j/help/doc/jreBundle.html
but it complains that createbundle does not exist.
What is the recommended way of creating a JRE bundle for OSX Java 7? Is there a version of create bundle available for OSX? I am looking for a bundle of the latest JRE (Java7u10).
Creating new JRE bundles on Mac OS X is not yet supported (as of 5.1.3), it will be added in a future version. 7u10 bundles will be added later today.

Running install4j installer on Mac OS 10.7.4 with Oracle JRE1.7

I have a installer which is built with install4j 5.1.2. When i try to install it on Mac OS X 10.7.4. It complains saying
"No JVM could be found on you
system.
Please define EXE4J_JAVA_HOME
to point to an installed JDK or JRE or download a JRE from
www.java.com"
Then i download just the JRE1.7_07 from Oracle and tried again, i got the same error. Where as if i install full JDK1.7_07, then everything works fine.
Additional Information:
If i use Apple JRE 1.6 installer works fine. But my app needs JRE 1.7.
I also defined environment variables for JAVA_HOME, EXE4J_JAVA_HOME when i installed JRE1.7, Still i saw the same error. I have a feeling that, install4J is not reading the JRE when JRE is installed.
If i install JDK, then the JRE is in the following location
/Library/Java/JavaVirtualMachine/
where as if i install only JRE, it is in the following location
/Library/Internet Plug-ins/JavaAppletPlugin.plugin
I am not sure, if i am missing something. any pointers on how to resolve this particular issue is very helpful.
I got below email from install4j support.
Hi,
Thanks for your email. Indeed, 5.1.2 cannot find the JRE but only the JDK, since
the JRE was not released when OpenJDK support was implemented for install4j. This
is implemented in the current 5.1.3 build:
http://download.ej-technologies.com/beta/install4j_windows_5_1_3.exe
http://download.ej-technologies.com/beta/install4j_windows-x64_5_1_3.exe
It will be released at the end of the month.
Kind regards,

Netbeans 7.1.2 Mac 0S X download

I am running Mac OS X 10.5.8 and am trying to run Netbeans 7.1.2. When I run Netbeans I get the following message:
Cannot run on older versions of Java than Java 6 Standard Edition. Please install JAva 6
Standard Edition or newer or use --jdkhome switch to point to its installation director.
Anyway, I am pretty sure I have JDK 1.6 as I have navigated to /Libary/Java and have found a
file that says JDK 1.6.
I tried to download the lastest JDK from Oracle (JDK 1.7) and when I try to open the installer, my mac says:
This Installer is supported only on OS X Lion (10.7.0)
What can I do? I am running out of ideas?
Thanks!
Set the JDK home path in netbeans.conf file, more details here.
See the option netbeans_jdkhome option in Editing the Configuration File section
Hope it helps
Navigate to /Applications/Utilities/JavaPreferences (or something similar) and the current jdk can be set there.

Autodetect JRE Version and Install the required Version on MAC OS X before launching an application

Autodetect JRE Version and Install the required Version on MAC OS X before launching an application.How?
Have you looked at Launch4J ? It allows you to package your Java solution with an installer that can detect JREs and launch an installer for that particular JRE if necessary.
Note that the website says Launch4J is for Windows, but the changelog indicates that a Mac OS X version has been available for some time (and available in the downloads)

Resources