Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Run a JAR file from path containing multi-byte chars

throop77throop77 Posts: 1Member
I'm unable to execute a JAR file if that file resides within a path which contains multi-byte characters. Here is an example:

The JAR file:

F:DEMO-CFM56-?i2?3i??3????3iiiXClick to Generate Report.jar

The exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/jarinjarloader/JarRsrcLoader
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader. Program will exit.

I've tried building this JAR with eclipse, netbeans and manually.

I've tried no space in the name.

I've tried to run from the command-line:

java -jar "Click To Generate Report.jar"

java -cp
Sign In or Register to comment.