install4j v6 ant tasks compatibility issue? - install4j

We have recently upgraded to install4j v6 and discovered that tasks located in $INSTALL4J_HOME/bin/ant.jar are not compatible with JDK 1.6 and require JDK 1.7 at least.
Am I correct or we do something wrong?

That is correct. The install4j IDE and the command line compiler require Java 7 or higher for install4j 6.x.

Related

Netbeans updates

The Netbeans development environment is being updated? I notice that it has been some time since an updated version was published and some tools do not work with the latest JDK as the profiler.
I assume you are referring to NetBeans 8.2. Oracle is currently in the process of handing over NetBeans to Apache so the current situation is a bit messy:
NetBeans 8.2 will be the final release of NetBeans 8.x from Oracle.
Oracle also provide a nightly DEV build of NetBeans for that release which contains bug fixes and enhancements. However, it looks like that nightly build recently ceased, since the most recent build is dated 3/28/18. I am guessing that there will not be any more nightly DEV builds from Oracle.
The future lies with Apache NetBeans which will be released shortly.
You can download Apache NetBeans 9.0 Beta.
However, you can also download a zip of Apache NetBeans 9.0 Beta which contains bug fixes.
Apache NetBeans Beta supports JDK 9 and JDK 10, and I recommend using the zip file linked to in the final bullet point above.
The Profiler works fine with Apache NetBeans Beta.

GlassFish cannot be installed in Eclipse

Tried to install glassfish4 server in eclipse oxygen. Everything is ok except that it cannot recognize the jdk. Its saying JDK required instead of JRE. I have given the right path of my JDK, but still its saying that its JRE. When I am giving "javac -version" command in the command prompt its correctly showing java version "9.0.4". Please help.
No version of GlassFish supports JDK 9 at the moment. You will need to downgrade to JDK 8.
Additionally, the GlassFish Tools for Eclipse IDE have not been formally updated to support GlassFish 5 yet. With the move of Java EE and GlassFish to the Eclipse foundation, this is likely to happen but it is hard to say when at this point.

Is install4j jdk 8 compatible?

I'd like to know if install4j is jdk 8 compatible or tested against or will be :)
Just found 1.7 Version to be tested on there site.
And if not what is the roadmap for next release supporting that?
Thx
Inge
Install4j installers work with Java 8. The install4j currently (as of 5.1.6) requires Java 6 or Java 7.
From their blog Migrating to install4j 6:
The minimum Java version for the install4j IDE and the compiler is now Java 7. If your build machine only has Java 6 installed, you have to install a Java 7 JRE. On Windows and Mac OS X, Java 7 JREs are bundled in the install4j downloads.
Therefore, I suppose install4j IDE version 6 supports also Java 8, because they did not specify maximal Java version.

How Do I make the Install4j IDE to upgrade to Java7 instead of Java6

I have upgraded to Java7 recently.
I had my install4j Project file in Java6.
Now in the Install4j IDE, I go to Media wizard and download 1.7 JRE's and select them for Windows. (I have window 7 64 bit.)
But When I go the Installer tab in IDE , where for some of the screens I have my custom code which is compiled in Java7.
It gives an error for the IDE java version lower than the compiled version(for those class files).
The Common Location where is the JRE for 1.6 was downloaded C:\Program Files\Common Files\i4j_jres
But the JREs for 1.7 somehow are never downloaded in the common location.
How Do I make the Install4j IDE to upgrade to Java7 instead of Java6.
Thanks
Sony
We had the same problem as you, so we just swapped out install4j's built-in JRE with the one we used to compile our custom code.
i.e. - replace "C:\Program Files\install4j5\jre" with the jre you use to build your custom actions.
Under General Settings->Java version, change the minimum version to 1.7

Different Java developer and program versions?

I've installed JDK7 java version and selected version 7 as the JVM in Eclipse. The version of compiler remains being 1.6 and it doesn't shows a greater version.
Is it correct?
Thanks
Current version of Eclipse (3.7) does not support compiling Java 7 sources yet. The support is coming in 3.7.1 update soon. You can run your application with Java 7 JRE, but there is no support for compilation at the moment.