Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path expansion is broken for directories with non-ASCII characters #93

Open
nigredo-tori opened this issue May 13, 2019 · 1 comment
Open

Comments

@nigredo-tori
Copy link

IEUser@MSEDGEWIN10 c:\dev\tmp
$ type Test\test.ini
classpath.1=test.jar
main.class=Main

IEUser@MSEDGEWIN10 c:\dev\tmp
$ rcedit /N Test\test.exe Test\test.ini
[info] OK

IEUser@MSEDGEWIN10 c:\dev\tmp
$ Test\test.exe
[info] Module Name: c:\dev\tmp\Test\test.exe
[info] Module INI: c:\dev\tmp\Test\test.ini
[info] Module Dir: c:\dev\tmp\Test\
[info] INI Dir: c:\dev\tmp\Test\
[info] Configured vm.location: (null)
[info] Found VM: C:\Program Files\Java\jre1.8.0_192\bin\server\jvm.dll
[info] Expanding Classpath: test.jar
[info] Generated Classpath: c:\dev\tmp\Test\test.jar
[info] VM Args:
[info] vmarg.0=-Djava.class.path=c:\dev\tmp\Test\test.jar
[info] Registering natives for Native class
[warn] Could not find Native class

IEUser@MSEDGEWIN10 c:\dev\tmp
$ rename Test Проверка

IEUser@MSEDGEWIN10 c:\dev\tmp
$ Проверка\test.exe
[info] Module Name: c:\dev\tmp\????????\test.exe
[info] Module INI: c:\dev\tmp\????????\test.ini
[info] Module Dir: c:\dev\tmp\????????\
[info] INI Dir: c:\dev\tmp\????????\
[info] Configured vm.location: (null)
[info] Found VM: C:\Program Files\Java\jre1.8.0_192\bin\server\jvm.dll
[info] Expanding Classpath: test.jar
[info] Generated Classpath:
[info] VM Args:
[info] vmarg.0=-Djava.class.path=
[info] Registering natives for Native class
[warn] Could not find Native class
 [err] Could not find or initialize main class
java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)

Note that in the second case Generated Classpath is empty. This is not limited to classpath, though - the sibling INI file is also not found.

@nigredo-tori
Copy link
Author

Related discussion: #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant