在ProGuard网站的Troubleshooting页(http://proguard.sourceforge.net/index.html#manual/troubleshooting.html)找到
Error:Expecting
classpathseparator';'before'Files\Java\...'(
inWindows)
Ifthepathofyourrun-timejarcontainsspaces,like
in"ProgramFiles",youhavetoencloseit
withsingleordoublequotes,asexplained
inthesectiononfilenames.Thisisactually
trueforallfilenamescontainingspecialcharacters,onallplatforms.
同时在http://proguard.sourceforge.net/index.html#manual/usage.html页面对File Names有如下说明
ProGuardacceptsabsolutepathsandrelativepaths
forthevariousfilenamesanddirectorynames.Arelativepathisinterpretedasfollows:
relativetothebasedirectory,
ifset,orotherwise
relativetotheconfigurationfile
inwhichitisspecified,
ifany,orotherwise
relativetotheworkingdirectory.
ThenamescancontainJavasystempropertiesdelimitedby'<'and'>'.Thesystempropertiesareautomaticallyreplacedbytheirrespectivevalues.
Forexample,<java.home>/lib/rt.jarwillautomaticallybeexpandedtosomethinglike/usr/local/java/jdk/jre/lib/rt.jar.Similarly,<user.home>willbeexpandedtotheuser'shomedirectory,and<user.dir>willbeexpandedtothecurrentworkingdirectory.
Names
withspecialcharacterslikespacesandparenthesesmustbequoted
withsingleordoublequotes.Notethateachfilename
inalistofnameshastobequotedindividually.Alsonotethatthequotesthemselvesmayneedtobeescapedwhenusedonthecommandline,toavoidthembeinggobbledbytheshell.
Forexample,onthecommandline,youcoulduseanoptionlike'-injars"myprogram.jar":"/yourdirectory/yourprogram.jar"'.
综上,解决方法为:
将build.xml的第237行中的${java.home}/lib/rt.jar用双引号引起来。
改之前为
-libraryjars ${java.home}/lib/rt.jar;lib/lwjgl.jar;lib/slick.jar;lib/jorbis-0.0.15.jar
修改后为
长按二维码向我转账
受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。
阅读
好看
已推荐到看一看
你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
取消
分享想法到看一看
确定
最多200字,当前共字