Error during Installing WAS 6 : createprocess failed - java

I'm tried to install Websphere application Server Version 6 for one development project, and when I start the installation I got the error message that.
the JVM is not correct and i should start the installation using -is:javahome <Java_home_DIR> Createprpocess ==> failed.
The problem is, at my computer I have the java sdk 1.4.2 installed and java_home is set correctly. The system could not find the file.
What I need to do to solve this problem, or someone knows why I'm getting this message?

WAS Server has own java runtime environment. IBM has own version of JRE and JDK.
All installation packages are referencing to internal JRE.

Related

java.lang.InternalError: platform encoding not initialized when running EXE4J .exe w/ Java14 on PATH

So this error is a weird one...
I'm using EXE4J 6 to build a .exe file for my JavaFX Application. This has worked with no issues through Java version 13.0.1. I recently upgraded my environment to use Java 14.0.1 and now I get the following stacktrace whenever I try to run my application through exe:
java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InternalError: platform encoding not initialized
at java.base/java.net.Inet6AddressImpl.getLocalHostName(Native Method)
at java.base/java.net.InetAddress.getLocalHost(Unknown Source)
at org.apache.logging.log4j.core.util.NetUtils.getLocalHostname(NetUtils.java:54)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:612)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:691)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:243)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:174)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:669)
This error happens when trying to initialize my Log4J logging. however if I just made a direct call to InetAddress.getLocalHost() I can replicate this error out of .exe. Running my application directly out of my Eclipse (EE 06/2020) works just fine. After doing some debugging. I determined that removing Java from my PATH allowed the application to run. My .exe4j configuration file is set up so that the application should look for a separate Java 14 jre and not attempt to use my PATH for java.
<searchSequence>
<directory location="../java/jre64" />
</searchSequence>
The jre64 is built through ANT using the 14.0.1 jdk that I have and only importing the modules I need. Again, this all worked through 13.0.1 prior to my upgrade to 14.0.1
From research and testing on other computers, I think this boils down to an environment issue on my computer. However I've run out of places to look. Any thoughts or ideas would be much appreciated. Specifically why EXE4J would try to use the Java on my Path instead of the one in the search sequence.
Other Notes:
Running on Windows 10 Latest Updates
Path points to OpenJDK 14.0.1 (causes break) (java -version is correct in cmd)
I've confirmed that the working exe, after removing java from my Path, is still running on version 14.0.1 through the jre64
Application is built with and Eclipse Workspace/project JRE also points to same OpenJDK 14.0.1
Running on other computers with similar versions & environment works & doesn't cause this issue.
I was finally able to determine what the issue was.
I was using Exe4J 6.0 which was not compatible with Java versions 10+. I was surprised that I wasn't getting outright errors when trying to run exe4j to compile my executable, however it seems that exe4j was sucking in an older 1.8 java version from my registry and using a 1.8 jdk that I never cleaned out of my "C:/Program Files/Java" folder. When I deleted all my old JDKs, exe4j started complaining about missing a Java VM (even though 14.0.1 was set on path).
Upgrading to Exe4J 7.0 solved the issue for me.
In my case the problem was the PATH environment variable pointing to one jre directory.
I had 2 applications in different directories:
Application A had a jre directory included in the PATH environment variable and was working fine.
Application B had another jre directory NOT included in the PATH environment variable and was throwing this error.
After removing this jre directory from the PATH environment variable everything worked ok.

windows error 2 occurred while loading the java vm blackberry webworks

Please how do I solve this problem that I have?
I have been trying to install BlackBerry WebWorks but the following error occurred while loading the Java VM:
windows error 2
I have tried to install 32bit java JDK yet the error still keeps showing.
I have set the environment path, still no positive response.
I need help.
Thanks in advance.
In my case, the installation file "WebWorks-Tablet-Win-v2.2" that uses intallationAnywhere to deploy itself ran this error at 99% of the installation.
That was because i had multiple JRE installed on my computer for different versions.
First for the installation to work you have to pay attention to the correct Runtime environment required that is mentioned in the system requirement.
Runtime environment Java® Runtime Environment 1.6
So for me i had to download jre-6u5-windows-i586-p-s from java archive.
Solution is to run the installation from command prompt, with LAX_VM switch, pointing to he Java Dir location.
WebWorks-Tablet-Win-v2.2.exe LAX_VM "Java_DIR/jre/bin/java.exe"
example: WebWorks-Tablet-Win-v2.2.exe LAX_VM C:\Program Files\Java\jre1.8.0_73\bin\java.exe

How to install JBoss Developer Studio on Windows

I am trying to install JBoss Developer Studio 9 on Windows using executable JAR file.
I have Java in my machine and set the PATH and JAVA_HOME environment variables.
But while launching the jar, I am facing this error:
Java virtual machine launcher couldn't find the main class program will exit
Could some one please help me in resolving this.
Try to use devstudio-10.4.0.GA-installer-eap.jar from here. I tried that.
Not sure what the issue was but for future reference the install docs / guides for Developer Studio 9.1 are located here:
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Studio/9.1/html-single/Install_Red_Hat_JBoss_Developer_Studio/index.html#Install_JBoss_Developer_Studio_Stand-alone_and_JBoss_EAP
Instructions may be written for linux users, but the same instructions apply on Windows or OSX once you're in a console.
Note that Java 8 is required for Developer Studio 9 and 10, so if that's not your default JDK (eg., JDK 7 is your default, or is found in your PATH before the entry for JDK 8), the installer likely won't work.
Perhaps that's the problem that was reported here?

Android SDK: Cannot find Java, version of the file is not compatible

I've installed Android standalone tools on Windows 7 32-bit, but when I am trying to run the android utility on the command line, the following error report is shown:
No suitable Java found. In order to properly use the ADT, you need a version of JDK installed (...)
I have Java properly installed in C:\Program Files\Java\JDK, and my JAVA_HOME is set to this path. (C:\Progra~1 - for ANT), PATH includes C:\Program Files\Java\JDK )
I have read on here in other posts that android utility simply starts find_java.exe, so when I start the program directly, I had this error:
The version of this file is not compatible with the version of Windows
you're running. Check your computer's system information to see whether
you need an x86 (32-bit) or x64 (64-bit) version of the program, and then
contact the software publisher.
It just seems like the SDK manager installs wrong (64-bit? I am not an expert on that, but the error seems like that) of Java finder for some reason.
Has anyone encountered a similar kind of error? What could some reasons for that be?
Thank you in advance

Deploying Jenkins within Glassfish throw Exception

I'm trying to deploy Jenkins 1.432 to GlassFish Server Open Source Edition 3.1.1 (build 12), running in Ubuntu 10.04.
It throws this error:
java.lang.RuntimeException: Installation Problem??? Couldn't load messages: Can't find bundle for base name com.sun.org.apache.xerces.internal.impl.xpath.regex.message, locale en_US
at com.sun.org.apache.xerces.internal.impl.xpath.regex.RegexParser.setLocale(RegexParser.java:93)
The locale ubuntu command returns:
LANG=en_US.UTF-8
I don't know what to do. I googled many thing, without really founding something. Classpath problem ? Right permission ? Missing jar in jvm ?
I finaly decided to deploy Jenkins outside Glassfish, with the debian package.
I guess my Glassfish install is missing a language package (?), but I am not sure.

Categories