A
A
Arkady2015-07-27 21:16:41
Java
Arkady, 2015-07-27 21:16:41

What is the difference between running a Java program from an IDE and a jar?

Good time dear ones.
Newbie.
I wrote a subtitle translator (for myself), which in the process creates two files: the 1st where Russian is attached to each English word, and the 2nd is its local dictionary, so as not to go to the Internet for translation every time, also contains pairs of words. After a long sawing in IDEA, I finally got what I wanted: you give the translator a file, you get a file with the translation. Not without bugs, but already usable. I decided to pack it into a J-archive and...
If from IDEA, the resulting files can be used, then from jar'a it disfigures the Cyrillic alphabet, puts a lot of extra spaces (perhaps this is also due to the encoding).
I found similar problems on the forums, they were all tied to the manifest or classpath, but either the programs didn’t run there, or the classes didn’t see each other, but everything works for me and even Cyrillic on the UI is displayed normally. The coding in OutputStreamWriter'e is specified though from IDE and so everything worked correctly.
Send violent energy, where to dig?
https://github.com/Eramedy/TranslateSRT.git

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Bystrov, 2015-07-30
@udav_pit

Good afternoon, if you brought some code, I think you would be answered quickly. Ideally, in general, a link to the source repository. Telepathically, it's hard to understand what the problem is :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question