简体   繁体   中英

Java application not work in folder with spaces

I am observing the following problem. I create a java application and put all files (runnable jar file + jar to exe + other files and folders into a folder "adim" and place it in D drive (D:\\adim). When I run the application it finds the license.lic file from adim folder works perfectly fine.

But when I change the folder "adim" with "Adim With Derby" this application shows an error that "it cannot find the license.lic file".

The worst is that when I make a installShield package and install it on "Program files(x86)" [c:\\Program Files(x86)\\ADIM] above mentioned problem appears(license file not found). Note: the os is windows 7 professional 64bits

Can anyone help what is wrong and what is its solution?

您需要正确转义文件名,并在特殊字符前使用反斜杠

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM