Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot run JAR file under folder which has unicode characters in name

 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

If I put my application's JAR file under one of these folders:

- C:\Test\GÖRLITZ\MyApp.jar: It will run if double clicking on the Jar file, but it won't run if I run through Runtime.getRuntime().exe()
- C:\Test\Hay chửa\MyApp.jar: It won't run on either double clicking or calling Runtime.getRuntime().exe()

Looks like the Java launcher doesn't work well with unicode characters in file path.
Please suggest solution/workaround.

Thanks,
Nam

 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one has any ideas?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're looking for workarounds? Then write a batch file with the folder name hard-coded, and run that batch file via Runtime.exec().
 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:You're looking for workarounds? Then write a batch file with the folder name hard-coded, and run that batch file via Runtime.exec().

Yes, I need a workaround. I will try your suggestion.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic