2017-02-20 60 views
2

完全難倒這可能對某人顯而易見。我將我的Java應用程序打包到安裝程序中(使用Izpack),一旦安裝,他們運行SongKong64.exe,它是使用啓動創建的java文件的包裝文件爲什麼在Dos窗口中運行Java嘗試運行一個包裝在exe中的應用程序

這不適用於客戶,他應該這樣做:

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" 

....

如果客戶安裝在另一臺計算機上正常工作。

+0

很難說......雖然你給出了一個預期和失敗的日誌,但沒有代碼可以在這裏診斷。 SongKong在做什麼?它是如何構建「launchCmd」的? –

回答

3

從輸出你的問題,我想下面幾行:

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" 

..are嘗試添加到Windows資源管理器右鍵菜單項,直接與SongKong64.exe打開的文件?因此,在ContextMenuManager.createContextMenu()方法中可能會根據jar的路徑猜到SongKong64.exe的路徑嗎?如果你顯示這種方法的一些代碼,也許我可以幫助你更好。

另一種可能性是,問題來自於缺少權限,因爲如果他將其安裝在另一臺機器上,它會爲您的客戶工作。

+0

你說得很對,我的腦海裏有一個輸出來自launch4j提供的exe包裝中的東西,但當然這是我添加條目到Windows上下文菜單的代碼,我已經忘記了這一切! 。我不能告訴如果問題出在這個代碼上,或者如果在運行這段代碼後出錯,將會添加一些調試並獲得usert重試。 –

+1

因爲你的回答至少解釋了輸出,並且讓我得到修復,所以會獲得獎勵。 –

相關問題