为什么 运行ning Java 在 Dos window 中尝试 运行 包裹在 exe 中的应用程序

Why would running Java in Dos window try and run an application wrapped in exe

完全难住了这对某些人来说可能是显而易见的。我将我的 Java 应用程序打包到安装程序中(使用 Izpack),安装后它们 运行 SongKong64.exe 这是使用 Launch

创建的 java 文件的包装器

这对他应该得到这样的东西的客户不起作用:

debuglogfile is:C:\Users\Terrence\AppData\Roaming\SongKong\Logs/songkong_debug%u-%g.log
userlogfile is:C:\Users\Terrence\AppData\Roaming\SongKong\Logs/songkong_user%u-%g.log
17/02/2017 11.31.25:GMT:com.jthink.songkong.cmdline.SongKong:writeSystemInfo:SEVERE: SongKong 4.6 1070 15/02/2017 using Java 1.8.0_74 25.74-b02 64bit on Windows 10 10.0 amd64 initialized successfully
17/02/2017 11.31.25:GMT:com.jthink.songkong.cmdline.SongKong:writeSystemInfo:SEVERE: SongKong has been configured with minimum heap memory of 150 mb, maximum heap memory of 356 mb and maximum permanent memory of -32 mb
17/02/2017 11.31.26:GMT:com.jthink.songkong.cmdline.SongKong:writeSystemInfo:SEVERE: Username:Terrence:Domain:iPad-Laptop:RunningAsAdmin:false
17/02/2017 11.31.26:GMT:com.jthink.songkong.cmdline.SongKong:checkDatabase:SEVERE: Setting Db Folder:C:\Users\Terrence\AppData\Roaming\SongKong/Database
17/02/2017 11.31.26:GMT:com.jthink.songlayer.hibernate.HibernateUtil:createFactory:SEVERE: ----Initilizing Hibernate Session factory
17/02/2017 11.31.29:GMT:com.jthink.songkong.cmdline.SongKong:checkDatabase:SEVERE: Accessed Database okay
17/02/2017 11.31.32:GMT:com.jthink.acoustid.query.AbstractAcoustidQuery:performBasicSubmissionQuery:SEVERE: Posting to url:http://api.acoustid.org/v2//user/create_anonymous?format=xml&client=8XaBELgH
17/02/2017 11.32.47:GMT:com.jthink.songlayer.hibernate.HibernateUtil:closeFactory:SEVERE: ----Closing Hibernate Session factory

C:\Program Files\Jthink\SongKong>JVM64\bin\java -cp lib;lang  -Xms150m -Xmx400m  -jar lib/SongKong-4.6.jar

而是得到

C:\Program Files\Jthink\SongKong>songkong64.exe

C:\Program Files\Jthink\SongKong>Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -m "%1"
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.dsf /ve
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.dsf
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.dsf\shell\SongKong.Match
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.dsf\shell\SongKong.Match
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.dsf\shell\SongKong.Match
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: DSF:AddContextMenu:false
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -d "%1"
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.dsf /ve
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.dsf
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.dsf\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:48 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.dsf\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.dsf\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: DSF:AddContextMenu:false
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -r "%1"
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.dsf /ve
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.dsf
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.dsf\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.dsf\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.dsf\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: DSF:AddContextMenu:false
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -m "%1"
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.mp3 /ve
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.mp3
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.mp3\shell\SongKong.Match
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.mp3\shell\SongKong.Match
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.mp3\shell\SongKong.Match
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: MP3:AddContextMenu:false
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -d "%1"
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.mp3 /ve
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.mp3
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.mp3\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.mp3\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.mp3\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: MP3:AddContextMenu:false
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -r "%1"
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.mp3 /ve
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.mp3
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.mp3\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.mp3\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.mp3\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: MP3:AddContextMenu:false
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -m "%1"
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:49 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.ogg /ve
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.ogg
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.ogg\shell\SongKong.Match
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.ogg\shell\SongKong.Match
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.ogg\shell\SongKong.Match
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: OGG:AddContextMenu:false
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -d "%1"
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.ogg /ve
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.ogg
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.ogg\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.ogg\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.ogg\shell\SongKong.DeleteDuplicates
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: OGG:AddContextMenu:false
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -r "%1"
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.ogg /ve
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.ogg
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ    (value not set)
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\(value not set)
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeHKCU\Software\Classes\.ogg\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.ogg\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: targetKeyNodeExistsHKCU\Software\Classes\.ogg\shell\SongKong.UndoChanges
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.AddContextMenu addContextMenu
SEVERE: OGG:AddContextMenu:false
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\lib\SongKong64.exe" -g -m "%1"
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Looking For key
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\.flac /ve
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:HKEY_CURRENT_USER\Software\Classes\.flac
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager inferTargetKeyNode
SEVERE: Checking Output:    (Default)    REG_SZ
Feb 14, 2017 7:38:50 PM com.jthink.songkong.Windows.ContextMenuManager executeCommand
SEVERE: Cmd:REG QUERY HKCU\Software\Classes\

所以我让他绕过 exe,只 运行 纯 java 类 如下。 但是正如您所见,输出以某种方式指向 songkong64.exe,这怎么会发生没有任何意义?

C:\Program Files\Jthink\SongKong>JVM64\bin\java -cp lib;lang  -Xms150m -Xmx400m  -jar lib/SongKong-4.6.jar
Feb 17, 2017 3:33:00 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 17, 2017 3:33:00 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 17, 2017 3:33:00 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 17, 2017 3:33:00 PM com.jthink.songkong.Windows.AddContextMenu buildLaunchCommand
SEVERE: Architecture is:amd64
Feb 17, 2017 3:33:00 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\SongKong64.exe" -g -m "%1"

.....

如果客户在另一台计算机上安装它工作正常。

根据你问题的输出,我猜是以下几行:

Feb 17, 2017 3:33:00 PM com.jthink.songkong.Windows.ContextMenuManager createContextMenu
SEVERE: launchCmd:"C:\Program Files\Jthink\SongKong\SongKong64.exe" -g -m "%1"

..正在尝试向 windows 资源管理器上下文菜单添加一个条目,以直接使用 SongKong64.exe 打开文件?所以可能在 ContextMenuManager.createContextMenu() 方法中,SongKong64.exe 的路径是根据 jar 的路径猜测的?如果您展示此方法的一些代码,也许我可以更好地帮助您。

另一种可能是缺少权限导致的问题,因为如果您的客户将它安装在另一台机器上,它就可以正常工作。