web stats
Can't launch Administrator - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2019, 02:50 AM
janhudecek janhudecek is offline
What's HL7?
 
Join Date: May 2019
Posts: 2
janhudecek is on a distinguished road
Default Can't launch Administrator

I've installed Mirth Connect on my Windows 7 x64. The server is running on ports 8083 and 8443. I can connect to it using the CLI. However, when I try to launch the Administrator with the bundled java I get

Code:
Error reading Java home directory: ../../jre
If I use default or specify the path I get

Code:
Could not find default Java home directory.
or
Code:
INFO  2019-05-17 09:59:27,189 [Codebase Downloader Thread] com.mirth.connect.client.launcher.MirthClientLauncher: Time to download/verify codebase: 4.800214656 seconds
INFO  2019-05-17 09:59:27,192 [Codebase Downloader Thread] com.mirth.connect.client.launcher.P: Requesting info for target Java home: DEFAULT
INFO  2019-05-17 09:59:27,194 [Codebase Downloader Thread] com.mirth.connect.client.launcher.P: Launching javachecker, Commands:
============
[javachecker/windows-x64/javachecker.exe]
============
Environment:
============
{PROCESSOR_LEVEL=6, FP_NO_HOST_CHECK=NO, ALLUSERSPROFILE=C:\ProgramData, PROCESSOR_ARCHITECTURE=AMD64, PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;D:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\;D:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\;C:\Program Files\Microsoft Message Analyzer\PowerShell\, SystemDrive=C:, KMP_DUPLICATE_LIB_OK=TRUE, COMMANDER_INI=C:\Users\Default\AppData\Roaming\GHISLER\wincmd.ini, USERNAME=Jan, ProgramFiles(x86)=C:\Program Files (x86), PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW, ProgramData=C:\ProgramData, ProgramW6432=C:\Program Files, HOMEPATH=\Windows\system32, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel, OJDKBUILD_JAVA_HOME=D:\Program Files\ojdkbuild\java-12-openjdk-12.0.1-1\, ProgramFiles=C:\Program Files, PUBLIC=C:\Users\Public, windir=C:\Windows,  USERDOMAIN=<snip>, JAVA_HOME=D:\Program Files\ojdkbuild\java-12-openjdk-12.0.1-1\, PROMPT=$P$G, =C:=C:\Windows\TEMP\e4j6193.tmp_dir1558079644, ChocolateyInstall=C:\ProgramData\chocolatey,  CommonProgramFiles=C:\Program Files\Common Files, Path=<snip>...;d:\program files\mirth connect administrator launcher\jre\bin, CCP_SDK=C:\Program Files\Microsoft HPC Pack 2012 SDK\, CCP_LIB64=C:\Program Files\Microsoft HPC Pack 2012 SDK\Lib\amd64\, OS=Windows_NT, windows_tracing_flags=3, MC_EXTRA_CLASSPATH=../../file:/d:/Program%20Files/Mirth%20Connect%20Administrator%20Launcher/lib/mirth-client-launcher-checker.jar, COMPUTERNAME=<snip>, COMMANDER_INSTANCE=2, PROCESSOR_REVISION=3a09, CommonProgramW6432=C:\Program Files\Common Files, ComSpec=C:\Windows\system32\cmd.exe, =D:=d:\Program Files\Mirth Connect Administrator Launcher, SystemRoot=C:\Windows, TEMP=C:\Windows\TEMP, HOMEDRIVE=C:, USERPROFILE=C:\Users\Default, TMP=C:\Windows\TEMP,  CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, NUMBER_OF_PROCESSORS=4}
ERROR 2019-05-17 09:59:27,553 [Codebase Downloader Thread] com.mirth.connect.client.launcher.MirthClientLauncher: java.lang.Exception: Could not find default Java home directory.
or

Code:
ERROR 2019-05-17 09:58:50,274 [Codebase Downloader Thread] com.mirth.connect.client.launcher.MirthClientLauncher: java.lang.Exception: Error reading Java home directory: D:/java/
I've tried forward slashes, backslashes, pointing it to jre, jdk, java.exe directly, java 8, java 12. I've even tried decompiling the checker (why is so obfuscated?). I've tried calling javachecker.exe directly but it complains about the checker.jar not found. When I supply it:

Code:
set MC_EXTRA_CLASSPATH=../../lib/mirth-client-launcher-checker.jar
It works:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<result>
    <javaVersion>1.8.0_181</javaVersion>
    <javaRuntimeVersion>1.8.0_181-b13</javaRuntimeVersion>
    <javaHome>d:\program files\mirth connect administrator launcher\jre</javaHome>
    <canInitJfxGraphics>true</canInitJfxGraphics>
</result>
Which seems to be what the launcher is expecting. Could it be that it's caused by the

Code:
MC_EXTRA_CLASSPATH=../../file:/d:/Program%20Files/Mirth%20Connect%20Administrator%20Launcher/lib/mirth-client-launcher-checker.jar
In the env vars that the launcher uses? My decompiler shows the critical lines as

Code:
Object object4 = new File("lib/mirth-client-launcher-checker.jar");
        if (!((File)object4).exists()) {
            object4 = new File("dist/lib/mirth-client-launcher-checker.jar");
        }
Object object5 = new File(".").getCanonicalFile().toURI();
((ProcessBuilder)object3).environment().put("MC_EXTRA_CLASSPATH", "../../" + ((URI)object5).relativize(((File)object4).toURI()).toString());
Why is the toURI there?
Reply With Quote
  #2  
Old 05-20-2019, 01:01 AM
janhudecek janhudecek is offline
What's HL7?
 
Join Date: May 2019
Posts: 2
janhudecek is on a distinguished road
Default

I just had to run it as administrator, that fixed it
Reply With Quote
Reply

Tags
java home

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation