gpt4 book ai didi

java - 为什么在 Dos 窗口中运行 Java 会尝试运行包装在 exe 中的应用程序

转载 作者:可可西里 更新时间:2023-11-01 10:03:39 29 4
gpt4 key购买 nike

完全难住了这对某些人来说可能是显而易见的。我将我的 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() 方法中,根据 jar 的路径猜测到 SongKong64.exe 的路径?如果您展示此方法的一些代码,也许我可以更好地帮助您。

另一种可能性是问题来自缺少权限,因为如果您的客户将它安装在另一台机器上,它对您的客户有效。

关于java - 为什么在 Dos 窗口中运行 Java 会尝试运行包装在 exe 中的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42346697/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com