Set java32 bit as must in install4j - install4j

We have install4j version 5.1.5 we have set min Java Version as 1.8 , but on 64bit jvm there is issue with wrapper.dll loading .
Can we set jdk platform i.e 32bit or 64 bit along with min Java Version

On the "32-bit or 64-bit" step of the Windows media wizard, you decide whether executables should be generated as 32-bit or 64-bit executables.

Related

how to upgrade javac in Debian

could someone suggest elegant way to upgrade javac in Debian to version 8 ?!
javac -version
javac 1.7.0_261
java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
to those who needs elegant solution:
download JVM from oracle: http://java.sun.com/products/archive/
if you use Linux as I do, *.tar.gz file can be chosen (it has all related binaries)
in Debian or other Linux untar it with command "tar xvzf PACKAGENAME.tar.gz", as a result all folders and subfolders will be created in related new folder, e.g. jdk-8u251-linux-x64. Related version of javac is in "dk-8u251-linux-x64/bin/" subfolder
copy this all structure e.g. "jdk-8u251-linux-x64" e.g. to /home/user1
modify PATH variable to allow system find related new javac: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/user1/jdk1.8.0_251/bin/
old javac can be renamed as a backup: mv /usr/bin/javac /usr/bin/javac_old
verification of the result:
javac -version
javac 1.8.0_251
Now javac on my system has the same version as java (as mentioned above, before they were quite different). In version 8 Java have several changes, e.g. some new ways how Time is handeling, which forced me to such changes.

Setting JAVA_HOME on centos for root and normal user --> checking java -version

actually i im learning Linux (CentOs 7). I installed Java on root (usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java).
Now i have one question. if i type "java-version" i get
[mibe#localhost ~]$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
I thought that java only works if i set the JAVA_HOME PATH in /etc/profile. Why do i get a result for this call?
Because you installed java in /usr/lib, this folder is in system environment. When you type java -version, the system can find the command java.
But if you install java in other folder not in system environment, you must set the JAVA_HOME PATH in /etc/profile to tell the system how to find the java command, and there are other important reasons why to set the JAVA_HOME not just for this.
https://stackoverflow.com/a/27996647/11559693

Eclipse error code 1 in Windows10

I have downloaded scala ide for eclipse into my windows 10 system which is 64 bit one.
If I try to open eclipse then is throwing error code 1 saying java was started but returned error code 1.
I gave java path in environment variable and added the java path into eclipse.ini as below but still throwing the same error.
eclipse.ini code:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170531-
1133
-vm
C:\Program Files (x86)\Java\jre1.8.0_144\bin\javaw.exe
-vmargs
-Xmx2G
-Xms200m
-XX:MaxPermSize=384m
Is your Eclipse version a 64 bit one? If so you should have Java Development Kit 64 bit. If you have 32bit Eclipse, then you need 32bit version of Java Development Kit. And if you get the same error after installing the proper versions of the Eclipse and JDK, you should go to Eclipse ‘s directory (eg: C:\ProgramFiles\Eclipse\ for 64bit) and edit the eclipse.ini file by adding the following lines after “—launcher.appendVmargs” and before -vmargs;
-vm
C:\ProgramFiles\Java\javaJdkversion that you have\bin\javaw.exe
save this and launch eclipse.
Eclipse 64 bit requires Java 64 bit.
On 64-bit Windows you can either use:
your current 64-bit Eclipse IDE with a 64-bit Java VM or
a 32-bit Eclipse IDE with your current 32-bit Java VM.
See also Eclipse Wiki: eclipse.ini - Specifying the JVM

install4j installer is not picking the oracle-jdk path it take by default open-jdk in ubuntu

I have installed open-jdk-7 and oracle-jdk-8 in Ubuntu 13.10 and i have set JAVA_HOME.
when i tried with java -version give me oracle jdk path but when i m trying to install software in Ubuntu which is generated by the install4j.
so that it is taking the open-jdk path. but open-jdk is not setting in the path variable.code is below for picking the dynamic jdk.
{
JVMSelector.JVMLocation[] locations = JVMSelector.getJVMLocations("${compiler:sys.javaMinVersion}", "${compiler:sys.javaMaxVersion}", true, null);
String jdkHome = locations[ locations.length-1].getJavaHome().getAbsolutePath();
}
i need to set the oracle jdk in install4j. what i am messing here ..?

Install New Software on Eclipse not working on Mac

I have downloaded eclipse classic x86_64 3.7 cocoa on my Mac Intel Core 2 Duo with snow leopard 10.6.8
I have extracted and copied the eclipse directory to Applications folder. When run,
I get following errors
System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
Unexpected error loading extension: org.eclipse.equinox.p2.metadata.repository.simpleRepository
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient at org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientBrowseFileTransferFactory$1.sendBrowseRequest(HttpClientBrowseFileTransferFactory.java:53)
Error while reading from repository: http://download.eclipse.org/releases/indigo/site.xml.
I have following java version
java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
I have tried with eclipse classic 32 and 64 bit versions, with both i have the same problem .
I have also tried tweaking around priority of java version (32 or 64) under Java preferences.
Deleting /Library/Java/Extensions/log4j-1.2.15.jar resolved the issue.
Incase you are using ubuntu instead and had this problem, just go
cd /usr/java/packages/lib/ext/
sudo rm log4j-1.2.15.jar
sudo rm slf4j-*
I also had this problem and had nothing under /Library/Java/Extensions
You can notice that Eclipse reports: "The value will be overwritten using values from the preferences". So what you can do - visit Preferences > Network Connections and under 'Proxy Bypass' add Host: *
This has resolved the issue for me.
I set this to solve the problem:
http.sslVerify false in the egit config file.