Can't execute jar from directory with umlaut












0














Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here.



I have written a Java program that I am calling from inside LaTeX via immedeiatewrite18{java -jar <myJar>}. This works great except for this edge case:




  1. I am in a directory that contains an umlaut in it's name (e.g. ä)

  2. I am using lualatex to compile the document

  3. (I am using Linux)


If all of these conditions are met the call fails with the message Error: LinkageError occurred while loading main class <name> java.lang.ExceptionInInitializerError: null.



I double-checked that I can call the jar from that directory via terminal and the call works when using e.g. pdflatex to compile the document (as soon as the umlaut is removed it also works with lualatex).



I also verified that I can write a lua script that calls the jar via os.execute(...) which is what lualatex uses via it's shellesc package to execute write18 commands. However as soon as I do the same command from inside LaTeX (via directlua) I get the error message stated above.

I also checked with print(_VERSION) that lualatex uses the same lua version I tested my external script in.



Does anybody know what the problem here might be? Are there some further things lualatex does to its lua-environment that could be the problem?

Any thought on this is welcome.



EDIT: A friend of mine does not have this issue on a windows machine (though I am not a hundred percent sure he is actually using lualatex as well)



EDIT2:
Here's an MWE:



documentclass{article}

begin{document}
Some content so TeX won't complain
directlua{os.execute("java -jar <PathToArbitraryJarFile>")}
end{document}


Put above code in a folder called Testär (or something else with an umlaut) and compile the document with lualatex










share|improve this question




















  • 1




    Could you please show a MWE to reproduce the issue?
    – TeXnician
    Dec 14 '18 at 17:04










  • @TeXnician done
    – Raven
    Dec 14 '18 at 17:42










  • Did you try it without umlaut in the directory name?
    – Kurt
    Dec 15 '18 at 4:30










  • @Kurt yes without the umlaut it is working just fine
    – Raven
    Dec 15 '18 at 7:34










  • That is the solution: simply do not use umlauts and other special characters in the path ...
    – Kurt
    Dec 15 '18 at 7:38
















0














Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here.



I have written a Java program that I am calling from inside LaTeX via immedeiatewrite18{java -jar <myJar>}. This works great except for this edge case:




  1. I am in a directory that contains an umlaut in it's name (e.g. ä)

  2. I am using lualatex to compile the document

  3. (I am using Linux)


If all of these conditions are met the call fails with the message Error: LinkageError occurred while loading main class <name> java.lang.ExceptionInInitializerError: null.



I double-checked that I can call the jar from that directory via terminal and the call works when using e.g. pdflatex to compile the document (as soon as the umlaut is removed it also works with lualatex).



I also verified that I can write a lua script that calls the jar via os.execute(...) which is what lualatex uses via it's shellesc package to execute write18 commands. However as soon as I do the same command from inside LaTeX (via directlua) I get the error message stated above.

I also checked with print(_VERSION) that lualatex uses the same lua version I tested my external script in.



Does anybody know what the problem here might be? Are there some further things lualatex does to its lua-environment that could be the problem?

Any thought on this is welcome.



EDIT: A friend of mine does not have this issue on a windows machine (though I am not a hundred percent sure he is actually using lualatex as well)



EDIT2:
Here's an MWE:



documentclass{article}

begin{document}
Some content so TeX won't complain
directlua{os.execute("java -jar <PathToArbitraryJarFile>")}
end{document}


Put above code in a folder called Testär (or something else with an umlaut) and compile the document with lualatex










share|improve this question




















  • 1




    Could you please show a MWE to reproduce the issue?
    – TeXnician
    Dec 14 '18 at 17:04










  • @TeXnician done
    – Raven
    Dec 14 '18 at 17:42










  • Did you try it without umlaut in the directory name?
    – Kurt
    Dec 15 '18 at 4:30










  • @Kurt yes without the umlaut it is working just fine
    – Raven
    Dec 15 '18 at 7:34










  • That is the solution: simply do not use umlauts and other special characters in the path ...
    – Kurt
    Dec 15 '18 at 7:38














0












0








0







Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here.



I have written a Java program that I am calling from inside LaTeX via immedeiatewrite18{java -jar <myJar>}. This works great except for this edge case:




  1. I am in a directory that contains an umlaut in it's name (e.g. ä)

  2. I am using lualatex to compile the document

  3. (I am using Linux)


If all of these conditions are met the call fails with the message Error: LinkageError occurred while loading main class <name> java.lang.ExceptionInInitializerError: null.



I double-checked that I can call the jar from that directory via terminal and the call works when using e.g. pdflatex to compile the document (as soon as the umlaut is removed it also works with lualatex).



I also verified that I can write a lua script that calls the jar via os.execute(...) which is what lualatex uses via it's shellesc package to execute write18 commands. However as soon as I do the same command from inside LaTeX (via directlua) I get the error message stated above.

I also checked with print(_VERSION) that lualatex uses the same lua version I tested my external script in.



Does anybody know what the problem here might be? Are there some further things lualatex does to its lua-environment that could be the problem?

Any thought on this is welcome.



EDIT: A friend of mine does not have this issue on a windows machine (though I am not a hundred percent sure he is actually using lualatex as well)



EDIT2:
Here's an MWE:



documentclass{article}

begin{document}
Some content so TeX won't complain
directlua{os.execute("java -jar <PathToArbitraryJarFile>")}
end{document}


Put above code in a folder called Testär (or something else with an umlaut) and compile the document with lualatex










share|improve this question















Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here.



I have written a Java program that I am calling from inside LaTeX via immedeiatewrite18{java -jar <myJar>}. This works great except for this edge case:




  1. I am in a directory that contains an umlaut in it's name (e.g. ä)

  2. I am using lualatex to compile the document

  3. (I am using Linux)


If all of these conditions are met the call fails with the message Error: LinkageError occurred while loading main class <name> java.lang.ExceptionInInitializerError: null.



I double-checked that I can call the jar from that directory via terminal and the call works when using e.g. pdflatex to compile the document (as soon as the umlaut is removed it also works with lualatex).



I also verified that I can write a lua script that calls the jar via os.execute(...) which is what lualatex uses via it's shellesc package to execute write18 commands. However as soon as I do the same command from inside LaTeX (via directlua) I get the error message stated above.

I also checked with print(_VERSION) that lualatex uses the same lua version I tested my external script in.



Does anybody know what the problem here might be? Are there some further things lualatex does to its lua-environment that could be the problem?

Any thought on this is welcome.



EDIT: A friend of mine does not have this issue on a windows machine (though I am not a hundred percent sure he is actually using lualatex as well)



EDIT2:
Here's an MWE:



documentclass{article}

begin{document}
Some content so TeX won't complain
directlua{os.execute("java -jar <PathToArbitraryJarFile>")}
end{document}


Put above code in a folder called Testär (or something else with an umlaut) and compile the document with lualatex







luatex input-encodings shell-escape lua






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 14 '18 at 17:42

























asked Dec 14 '18 at 17:00









Raven

862112




862112








  • 1




    Could you please show a MWE to reproduce the issue?
    – TeXnician
    Dec 14 '18 at 17:04










  • @TeXnician done
    – Raven
    Dec 14 '18 at 17:42










  • Did you try it without umlaut in the directory name?
    – Kurt
    Dec 15 '18 at 4:30










  • @Kurt yes without the umlaut it is working just fine
    – Raven
    Dec 15 '18 at 7:34










  • That is the solution: simply do not use umlauts and other special characters in the path ...
    – Kurt
    Dec 15 '18 at 7:38














  • 1




    Could you please show a MWE to reproduce the issue?
    – TeXnician
    Dec 14 '18 at 17:04










  • @TeXnician done
    – Raven
    Dec 14 '18 at 17:42










  • Did you try it without umlaut in the directory name?
    – Kurt
    Dec 15 '18 at 4:30










  • @Kurt yes without the umlaut it is working just fine
    – Raven
    Dec 15 '18 at 7:34










  • That is the solution: simply do not use umlauts and other special characters in the path ...
    – Kurt
    Dec 15 '18 at 7:38








1




1




Could you please show a MWE to reproduce the issue?
– TeXnician
Dec 14 '18 at 17:04




Could you please show a MWE to reproduce the issue?
– TeXnician
Dec 14 '18 at 17:04












@TeXnician done
– Raven
Dec 14 '18 at 17:42




@TeXnician done
– Raven
Dec 14 '18 at 17:42












Did you try it without umlaut in the directory name?
– Kurt
Dec 15 '18 at 4:30




Did you try it without umlaut in the directory name?
– Kurt
Dec 15 '18 at 4:30












@Kurt yes without the umlaut it is working just fine
– Raven
Dec 15 '18 at 7:34




@Kurt yes without the umlaut it is working just fine
– Raven
Dec 15 '18 at 7:34












That is the solution: simply do not use umlauts and other special characters in the path ...
– Kurt
Dec 15 '18 at 7:38




That is the solution: simply do not use umlauts and other special characters in the path ...
– Kurt
Dec 15 '18 at 7:38










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464863%2fcant-execute-jar-from-directory-with-umlaut%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464863%2fcant-execute-jar-from-directory-with-umlaut%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?