Problem Running ADB fastboot tools on TW
Host is Tumbleweed. Java is: entropy@localhost:~> java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (build 11.0.18+0-suse-3.1-x8664) OpenJDK 64-Bit Server VM (build 11.0.18+0-suse-3.1-x8664, mixed mode) entropy@localhost:~> Now when trying to simply click on it, it gives a window with the uncompressed jar file (which is not what I want, and yes, I have made it executable after downloading. When telling TW to run the jar file with java (e.g. in a terminal to get output of what goes wrong here), it complains as follows: Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar what do I do wrongly, what is my problem here. Anybody having experience with starting this program is highly welcome to comment. Thank you in advance.
On Wed, Mar 22, 2023 at 1:41 PM Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
Host is Tumbleweed. Java is: entropy@localhost:~> java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (build 11.0.18+0-suse-3.1-x8664) OpenJDK 64-Bit Server VM (build 11.0.18+0-suse-3.1-x8664, mixed mode) entropy@localhost:~>
Now when trying to simply click on it, it gives a window with the uncompressed jar file (which is not what I want, and yes, I have made it executable after downloading.
When telling TW to run the jar file with java (e.g. in a terminal to get output of what goes wrong here), it complains as follows:
Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar
what do I do wrongly,
As you did not show how you were "telling TW to run jar file" it is difficult to guess. Showing complete command with full output may give some hint. Output in English would be more useful.
what is my problem here. Anybody having experience with starting this program is highly welcome to comment.
Thank you in advance.
In data mercoledì 22 marzo 2023 11:45:46 CET, Andrei Borzenkov ha scritto:
On Wed, Mar 22, 2023 at 1:41 PM Stakanov via openSUSE Users
<users@lists.opensuse.org> wrote:
Host is Tumbleweed. Java is: entropy@localhost:~> java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (build 11.0.18+0-suse-3.1-x8664) OpenJDK 64-Bit Server VM (build 11.0.18+0-suse-3.1-x8664, mixed mode) entropy@localhost:~>
Now when trying to simply click on it, it gives a window with the uncompressed jar file (which is not what I want, and yes, I have made it executable after downloading.
When telling TW to run the jar file with java (e.g. in a terminal to get output of what goes wrong here), it complains as follows:
Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar
what do I do wrongly,
As you did not show how you were "telling TW to run jar file" it is difficult to guess. Showing complete command with full output may give some hint. Output in English would be more useful.
what is my problem here. Anybody having experience with
starting this program is highly welcome to comment.
Thank you in advance.
Well, I tried from terminal with "run" but that does not work. I tried with java filenamegoeshere.jar that does gives following error message (not useful I find). ntropy@localhost:~> LC=All /home/entropy/bin/XiaomiADBFastbootTools.jar /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 1: $'PK\003\004': comando non trovato /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 2: $'\b\bd\005\037Q\002': comando non trovato /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 3: $'\b\bd\005\037Q': comando non trovato /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 3: $'\002': comando non trovato K-*��ϳR0�3���M���u�I,.�R�y�x�PK: File o directory non esistenteNF/ MANIFEST.MF�M��LK-.� /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 29: errore di sintassi vicino al token non atteso ")" ▒�uΩ<Q��'��Ne�f�;��f�z�n�� z�Zn�ؤ����X|�||��֔�W�Ӱ�M=F��d2e뮪��x\n�Z��$l) [r�k���RH�bQ�&�mn�U�!0�ϰ�6mٴmk���+�-������Y��� �Gs4�����ː▒��8�@If�-����r���~3u���=O����ٽÏr5,D��(�����U,( �G�6�7�[sc�m ��B��Ԋ���l=7L'x:bƕ 3j��FҠ�h�T�&�C�▒,TK���W�r' Oh, and then I tried also: entropy@localhost:~> LC=All java /home/entropy/bin/XiaomiADBFastbootTools.jar Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar entropy@localhost:~> why it does not react on LC=All I do not know, you may tell me, so I will get the output in the language of the barbarian blue faced tribes of the island.
On Wed, Mar 22, 2023 at 1:50 PM Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
ntropy@localhost:~> LC=All /home/entropy/bin/XiaomiADBFastbootTools.jar
Try installing java-binfmt-misc, it may enable starting the jar file directly. ...
Oh, and then I tried also: entropy@localhost:~> LC=All java /home/entropy/bin/XiaomiADBFastbootTools.jar
JAR file is not a Java program, it is archive of Java classes. As long as there is main class defined in this archive, you can run it using java -jar XiaomiADBFastbootTools.jar which is what the wrappers in package java-binfmt-misc do.
why it does not react on LC=All I do not know,
Why do you expect it to react to this in the first place? Setting the environment variable LC has no impact on program locale.
you may tell me,
I am pretty sure you were told it more than once already. Anyway, LC_ALL=C LANGUAGE=C ...
On 2023-03-22 12:11, Andrei Borzenkov wrote:
On Wed, Mar 22, 2023 at 1:50 PM Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
...
why it does not react on LC=All I do not know,
Why do you expect it to react to this in the first place? Setting the environment variable LC has no impact on program locale.
Because he misspelled it :-) LC_ALL=en_US.UTF-8
you may tell me,
I am pretty sure you were told it more than once already. Anyway,
LC_ALL=C LANGUAGE=C ...
Or that. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
On 2023-03-22 11:50, Stakanov via openSUSE Users wrote:
In data mercoledì 22 marzo 2023 11:45:46 CET, Andrei Borzenkov ha scritto:
On Wed, Mar 22, 2023 at 1:41 PM Stakanov via openSUSE Users
<users@lists.opensuse.org> wrote:
Host is Tumbleweed. Java is: entropy@localhost:~> java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (build 11.0.18+0-suse-3.1-x8664) OpenJDK 64-Bit Server VM (build 11.0.18+0-suse-3.1-x8664, mixed mode) entropy@localhost:~>
Now when trying to simply click on it, it gives a window with the uncompressed jar file (which is not what I want, and yes, I have made it executable after downloading.
When telling TW to run the jar file with java (e.g. in a terminal to get output of what goes wrong here), it complains as follows:
Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar
what do I do wrongly,
As you did not show how you were "telling TW to run jar file" it is difficult to guess. Showing complete command with full output may give some hint. Output in English would be more useful.
what is my problem here. Anybody having experience with
starting this program is highly welcome to comment.
Thank you in advance.
Well, I tried from terminal with "run" but that does not work. I tried with java filenamegoeshere.jar that does gives following error message (not useful I find).
ntropy@localhost:~> LC=All /home/entropy/bin/XiaomiADBFastbootTools.jar /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 1: $'PK\003\004': comando non trovato
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 java -jar \ /home/entropy/bin/XiaomiADBFastbootTools.jar Also, please do this, as root: edit text file with your favourite editor: /usr/local/bin/inglese LANG=en_US.UTF-8 \ LC_ALL=en_US.UTF-8 \ DICTIONARY=english \ KDE_LANG=en_US.UTF-8 \ LANGUAGE=en_US.UTF-8:en \ exec "$@" Save it. chmod a+x /usr/local/bin/inglese So next time, before posting here any command, just run: inglese java -jar /home/entropy/bin/XiaomiADBFastbootTools.jar -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
In data mercoledì 22 marzo 2023 12:17:38 CET, Carlos E. R. ha scritto:
On 2023-03-22 11:50, Stakanov via openSUSE Users wrote:
In data mercoledì 22 marzo 2023 11:45:46 CET, Andrei Borzenkov ha scritto:
On Wed, Mar 22, 2023 at 1:41 PM Stakanov via openSUSE Users
<users@lists.opensuse.org> wrote:
Host is Tumbleweed. Java is: entropy@localhost:~> java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (build 11.0.18+0-suse-3.1-x8664) OpenJDK 64-Bit Server VM (build 11.0.18+0-suse-3.1-x8664, mixed mode) entropy@localhost:~>
Now when trying to simply click on it, it gives a window with the uncompressed jar file (which is not what I want, and yes, I have made it executable after downloading.
When telling TW to run the jar file with java (e.g. in a terminal to get output of what goes wrong here), it complains as follows:
Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar
what do I do wrongly,
As you did not show how you were "telling TW to run jar file" it is difficult to guess. Showing complete command with full output may give some hint. Output in English would be more useful.
what is my problem here. Anybody having experience with
starting this program is highly welcome to comment.
Thank you in advance.
Well, I tried from terminal with "run" but that does not work. I tried with java filenamegoeshere.jar that does gives following error message (not useful I find).
ntropy@localhost:~> LC=All /home/entropy/bin/XiaomiADBFastbootTools.jar /home/entropy/bin/XiaomiADBFastbootTools.jar: riga 1: $'PK\003\004': comando non trovato
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 java -jar \ /home/entropy/bin/XiaomiADBFastbootTools.jar
Also, please do this, as root:
edit text file with your favourite editor: /usr/local/bin/inglese
LANG=en_US.UTF-8 \ LC_ALL=en_US.UTF-8 \ DICTIONARY=english \ KDE_LANG=en_US.UTF-8 \ LANGUAGE=en_US.UTF-8:en \ exec "$@"
Save it.
chmod a+x /usr/local/bin/inglese
So next time, before posting here any command, just run:
inglese java -jar /home/entropy/bin/XiaomiADBFastbootTools.jar
-- Cheers / Saludos,
Carlos E. R. (from 15.4 x86_64 at Telcontar)
@ Andrei and Carlos, thank you both. Yes it is right you told me before, I did not find the reference, so I looked up in the terminal history and ....copied my own errors. The indications given runs fine, I did not know about the wrapper thing, thank you for that. And yes Andrei, I have no clue what the command LC does actually set and how it works, probably I should but factually I don't. Sorry.
On 2023-03-22 12:30, Stakanov via openSUSE Users wrote:
In data mercoledì 22 marzo 2023 12:17:38 CET, Carlos E. R. ha scritto:
On 2023-03-22 11:50, Stakanov via openSUSE Users wrote:
In data mercoledì 22 marzo 2023 11:45:46 CET, Andrei Borzenkov ha scritto:
On Wed, Mar 22, 2023 at 1:41 PM Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
@ Andrei and Carlos, thank you both.
Yes it is right you told me before, I did not find the reference, so I looked up in the terminal history and ....copied my own errors.
The indications given runs fine, I did not know about the wrapper thing, thank you for that.
And yes Andrei, I have no clue what the command LC does actually set and how it works, probably I should but factually I don't. Sorry.
Nothing :-) You misremembered and typed "LC=All" instead of "LC_ALL=en_US.UTF-8" or "LC_ALL=C". It is not a command. It is an environment variable, and can be written before the actual command in the same line. Don't forget to create the "inglese" command right now, before you forget again ;-) -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
In data mercoledì 22 marzo 2023 11:40:50 CET, Stakanov via openSUSE Users ha scritto:
Host is Tumbleweed. Java is: entropy@localhost:~> java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (build 11.0.18+0-suse-3.1-x8664) OpenJDK 64-Bit Server VM (build 11.0.18+0-suse-3.1-x8664, mixed mode) entropy@localhost:~>
Now when trying to simply click on it, it gives a window with the uncompressed jar file (which is not what I want, and yes, I have made it executable after downloading.
When telling TW to run the jar file with java (e.g. in a terminal to get output of what goes wrong here), it complains as follows:
Errore: impossibile trovare o caricare la classe principale .home.entropy.bin.XiaomiADBFastbootTools.jar Causato da: java.lang.ClassNotFoundException: /home/entropy/bin/ XiaomiADBFastbootTools/jar
what do I do wrongly, what is my problem here. Anybody having experience with starting this program is highly welcome to comment.
Thank you in advance.
And yes, I tried with LC=ALL but it talks in Italian so for the feint of heard: Error: impossible to find or load the principle class .home.entropy.bin.XiaomiADBFastbootTools.jar. Caused by: java.lang.ClaasNotFoundExeption: /home/entropy/bin/ XiaomiADBFastbootTools/jar And that's all about it when it comes to language.
participants (3)
-
Andrei Borzenkov
-
Carlos E. R.
-
Stakanov