java webstart jnlp version issue - windows

I'm trying to launch a javaws jnlp with a bundled version of Java. It was working fine when I only had java 6 installed on the system but breaks when java 6 and 7 are concurrently installed.
One thing I noticed when launching in verbose mode was that even though the application launched in 1.6.0_23 (or at least I'm assuming it did based on the windows titlebar) javaw seems like it's launching java 7.

Please note the installation paths are different for JRE's
JRE 1.7 PATH : C:\Windows\System32\javaws.exe -localfile -J-Djnlp.application.href=http://host:port/your.jnlp "C:\Users\uraccount\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\xxx\xxxx
JRE 1.6 PATH : C:\Windows\SysWOW64\javaws.exe -localfile "C:\Users\uraccount\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\xxx\xxxx"

Related

Selected Java version 8 is not supported by SDK (Maximum 7)

New project => Sprint Initiliazr. After leaving everything to the default settings, and clicking next, the error below shows:
Selected Java version 8 is not supported by SDK (Maximum 7)
See the image here
I've tried to update Java and installing AdoptOpenJDK as well as restarting the computer but that didn't help.
Try at first following the JDK setup guide and installing the Jetbrains JDK: Selecting the JDK version the IDE will run under.
If this doesn't help, select at the project creation the appropriate Jetbrains JDK manually. The Jetbrains JDK was downloaded on your machine by the Choose Runtime Plugin (as mentioned in the guide).
In Windows it's located in your user folder e.g.:
C:\Users\xxxx\.IntelliJIdea201x.x\config\jdks\jbsdkxxxx...
JDK Selection under Windows

Spring STS Install issue Version 1.6.0_67 of JVM not suitable

I have problem launching STS application. I have downloaded Win 64 bit that matches my system and I have jdk 1.8 installed. That is the only version I have.
I am getting the following error when I launch STS
"version 1.7.0_67 of the JVM is not suitable for this product. Version:1.8 or greater is required"
The only reason why your STS is not working is either because you don't have JAVA properly installed or because your STS version(32bit/64bit) is not compatible with your windows.
Make sure both of these things are fixed.

SonarQube - Unable to load the Wrapper's native library 'wrapper.dll'

I'm installing SonarQube v5.0.
I'm running Windows Server 2012 64-bit (a virtual OS), Java 1.8 64-bit, and the SonarQube windows-x86-64 wrapper.
SonarQube, whether run via StartSonar.bat using Command Prompt as Administrator or as a Windows Service, keeps throwing the following warning:
WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\sonarqube-5.0.1\bin\windows-x86-64\.\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 32-bit JVM.
Reported cause:
C:\sonarqube-5.0.1\bin\windows-x86-64\lib\wrapper.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
System signals will not be handled correctly.
The only info that I've found on the web is some JIRA's from 2010 that don't really help me. I can't create a sonar user on this Windows installation. All my other tools in my CI environment are running on Java 1.8 64-bit, which means that JAVA_HOME is set to JDK 1.8 64-bit. I really don't want to have to run Java 32-bit and the 32-bit Wrapper. That means that the JRE bin/java path at the top of wrapper.conf will have to specify the 32-bit JRE.
What can I do to get rid of this warning?
Not all applications use JAVA_HOME variable, so you can have JAVA_HOME pointing on your 64 bits version while you are using a 32 bits.
Note: the 'Java_Home' key in the registry is not the JAVA_HOME variable.
Well, one way to be sure is to uninstall the current service, with ..\windows-x86-64\UninstallNTService.bat and install the 32 bits version with ..\windows-x86-32\InstallNTService.bat.
If it works, you definitively have a 32 bits JVM.
Installed the service SonarQube in \sonarqube-5.1.2\bin\windows-x86-64.
I just went to the SonarQube in the Windows Services-->go to properties-->Log On tab--->select 'Local Service'(Entered the system password). Thats it!
Issue was resolved.
Hope this helps someone who was not able to resolve from the above posts.
I experienced the same problem with SonarQube 5.6.4 on Windows 7. Editing the sonar.properties file to add a wrapper.java.command=... had no effect. Editing my path statement did the trick, though.
The first two folders in my path statement had been
C:\ProgramData\Oracle\Java\javapath;C:\dev\sdks\jdk1.8.0_112\bin;....
The java.exe in the first (C:\ProgramData\Oracle\Java\javapath) is 32-bit. I just switched the two in my path:
C:\dev\sdks\jdk1.8.0_112\bin;C:\ProgramData\Oracle\Java\javapath;...
Suddenly SonarQube started using the 64-bit java.exe in C:\dev\sdks\jdk1.8.0_112\bin
After making this change, I was able to restart Firefox without any difficulty.
In my case, running on SonarQube 7.3 on window 7 or window 10, I have to update Java version to java 8 to pass this error.
No need for this, In my case I just Installed Java SE JDK 11.0.16 and installed it, and restarted the sonar server and it worked. Below is the URL to download
https://www.techspot.com/downloads/5553-java-jdk.html

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

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.

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)".

Resources