[opensuse] Help with eclipse/Oracle Java install for a dummy...?
Hi, I want/must learn android programming. After googling many hours I found I begin with installing eclipse. Done. Already second step fails: installng ADT plugin terminates eclipse with a fatal error, that (according to what I found) is related to openJDK... Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand. Can anybody lighten my way thru the clouds, i.e. pointing me to a step-by-step-howto for dummies on how to set up an Java/android development environment with eclipse? Thanks for hints! Daniel -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 30 Oct 2015 11:32:56 +0100 Daniel Bauer wrote:
Hi,
I want/must learn android programming. After googling many hours I found I begin with installing eclipse. Done. Already second step fails: installng ADT plugin terminates eclipse with a fatal error, that (according to what I found) is related to openJDK...
Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand.
Can anybody lighten my way thru the clouds, i.e. pointing me to a step-by-step-howto for dummies on how to set up an Java/android development environment with eclipse?
Thanks for hints!
Daniel
Hi Daniel, Support for the Android Developer Tools (ADT) in Eclipse is ending at the end of 2015: (http://android-developers.blogspot.com/2015/06/an-update-on-eclipse-android-...) Android Studio "The Official Android IDE" has replaced it: (http://developer.android.com/sdk/index.html) hth & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 30.10.2015 um 12:09 schrieb Carl Hartung:
On Fri, 30 Oct 2015 11:32:56 +0100 Daniel Bauer wrote:
Hi,
I want/must learn android programming. After googling many hours I found I begin with installing eclipse. Done. Already second step fails: installng ADT plugin terminates eclipse with a fatal error, that (according to what I found) is related to openJDK...
Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand.
Can anybody lighten my way thru the clouds, i.e. pointing me to a step-by-step-howto for dummies on how to set up an Java/android development environment with eclipse?
Thanks for hints!
Daniel
Hi Daniel,
Support for the Android Developer Tools (ADT) in Eclipse is ending at the end of 2015:
(http://android-developers.blogspot.com/2015/06/an-update-on-eclipse-android-...)
Android Studio "The Official Android IDE" has replaced it:
(http://developer.android.com/sdk/index.html)
hth & regards,
Carl
Uff, thanks for letting me know this! So, more to read for me :-) Will I still need the Oracle JDK? -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-30 13:12, Daniel Bauer wrote:
Will I still need the Oracle JDK?
I'm certainly no android dev, but I use the Oracle version of java, for other reasons. I have found incompatibilities in software applications that fail with other java versions. Or that they explicitly say so in their documented requirements. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2015-10-30 11:32, Daniel Bauer wrote:
Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand.
Don't try to remove openjdk, you need it to satisfy YaST (dependencies). Instead, you use update-alternatives to tell the system which java to use. The site with correct and simple instructions (for openSUSE) is this: https://en.opensuse.org/Sun_Java (I recommend using the rpm, not the tgz) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Am 30.10.2015 um 13:03 schrieb Carlos E. R.:
On 2015-10-30 11:32, Daniel Bauer wrote:
Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand.
Don't try to remove openjdk, you need it to satisfy YaST (dependencies). Instead, you use update-alternatives to tell the system which java to use.
The site with correct and simple instructions (for openSUSE) is this:
https://en.opensuse.org/Sun_Java
(I recommend using the rpm, not the tgz)
Thanks Carlos. I have been on this page, but as it ends with 13.1 (I am on 13.2) I didn't pay more attention to this page. Can I still follow it's suggestions, although I use OS 13.2? -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-30 13:14, Daniel Bauer wrote:
Thanks Carlos. I have been on this page, but as it ends with 13.1 (I am on 13.2) I didn't pay more attention to this page. Can I still follow it's suggestions, although I use OS 13.2?
Well, I don't /use/ 13.2, but I don't see why it would not apply. I believe it applies to all versions: leap, tw included. You see, being a wiki page, a person may update paragraphs at the bottom thinking of, say, TW, but forget to add a note at the top saying that the page applies to whatever version. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Am 30.10.2015 um 13:03 schrieb Carlos E. R.:
On 2015-10-30 11:32, Daniel Bauer wrote:
Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand.
Don't try to remove openjdk, you need it to satisfy YaST (dependencies). Instead, you use update-alternatives to tell the system which java to use.
The site with correct and simple instructions (for openSUSE) is this:
https://en.opensuse.org/Sun_Java
(I recommend using the rpm, not the tgz)
I am confused... (and an little stupid, too, it seems) So, instead of reading the whole page, I read "the procedure to install the JDK will be shown first," and so I blindly followed the first, with which, of course, I installed the JRE instead of the JDK. Never-mind, I scrolled down to "Java Development Kit installation using Oracle's RPM", downloaded and tried to install with "sudo rpm -ivh jdk-8u65-linux-x64.rpm". Now that gives me the following:
Preparing... ################################# [100%] Updating / installing... 1:jdk1.8.0_65-2000:1.8.0_65-fcs ################################# [100%] Unpacking JAR files... tools.jar... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... jfxrt.jar... update-alternatives: warning: forcing reinstallation of alternative /usr/java/latest/bin/java because link group java is broken update-alternatives: error: alternative ControlPanel can't be slave of javac: it is a slave of java warning: %post(jdk1.8.0_65-2000:1.8.0_65-fcs.x86_64) scriptlet failed, exit status 2
Heeeeeelp :-) please... -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-30 14:01, Daniel Bauer wrote:
I am confused... (and an little stupid, too, it seems)
Nay, it is easy to get confused. Me too :-)
So, instead of reading the whole page, I read "the procedure to install the JDK will be shown first," and so I blindly followed the first, with which, of course, I installed the JRE instead of the JDK.
:-)
Never-mind, I scrolled down to "Java Development Kit installation using Oracle's RPM", downloaded and tried to install with "sudo rpm -ivh jdk-8u65-linux-x64.rpm". Now that gives me the following:
Me, I try to avoid sudo. Instead, I typically do: su - rpm -i jdk-8u65-linux-x64.rpm But I do it with another variant. I place all the rpms I download in a directory (does not matter which), say /data/myrpms/ Then, in yast, repository configuration module, I add a repository from that local directory. Finally, I start yast software management module, and, for instance, search "jdk", and tick the new rpm you placed in that directory. That directory will be just another repository for automatic use by yast or zypper or apper or whatever. The advantage is that these tools handle dependencies and conflicts in an easier way.
update-alternatives: warning: forcing reinstallation of alternative /usr/java/latest/bin/java because link group java is broken update-alternatives: error: alternative ControlPanel can't be slave of javac: it is a slave of java warning: %post(jdk1.8.0_65-2000:1.8.0_65-fcs.x86_64) scriptlet failed, exit status 2
Heeeeeelp :-) please...
This may be that you need to handle "update-alternatives" manually, which is normal, anyway. Try this, and post back - my results are included for comparison: Telcontar:~ # rpm -qa | grep jdk java-1_7_0-openjdk-1.7.0.85-24.21.1.x86_64 java-1_7_0-openjdk-headless-1.7.0.85-24.21.1.x86_64 jdk1.8.0_60-1.8.0_60-fcs.x86_64 Telcontar:~ # update-alternatives --list java This is a sample run: Telcontar:~ # update-alternatives --list java /usr/java/default/bin/java /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java Telcontar:~ # Telcontar:~ # update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java 1705 auto mode * 1 /usr/java/default/bin/java 1 manual mode 2 /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java 1705 manual mode Press enter to keep the current choice[*], or type selection number: ^C Telcontar:~ # It results in these links: Telcontar:~ # l /usr/java/default/bin/java -rwxr-xr-x 1 root root 7734 Aug 4 21:35 /usr/java/default/bin/java* Telcontar:~ # l /usr/java/default lrwxrwxrwx 1 root root 16 Oct 17 19:16 /usr/java/default -> /usr/java/latest/ Telcontar:~ # l /usr/java/latest lrwxrwxrwx 1 root root 21 Oct 17 19:16 /usr/java/latest -> /usr/java/jdk1.8.0_60/ Telcontar:~ # -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Am 30.10.2015 um 14:41 schrieb Carlos E. R.:
On 2015-10-30 14:01, Daniel Bauer wrote:
I am confused... (and an little stupid, too, it seems)
Nay, it is easy to get confused. Me too :-)
So, instead of reading the whole page, I read "the procedure to install the JDK will be shown first," and so I blindly followed the first, with which, of course, I installed the JRE instead of the JDK.
:-)
Never-mind, I scrolled down to "Java Development Kit installation using Oracle's RPM", downloaded and tried to install with "sudo rpm -ivh jdk-8u65-linux-x64.rpm". Now that gives me the following:
Me, I try to avoid sudo. Instead, I typically do:
su - rpm -i jdk-8u65-linux-x64.rpm
But I do it with another variant. I place all the rpms I download in a directory (does not matter which), say /data/myrpms/
Then, in yast, repository configuration module, I add a repository from that local directory.
Finally, I start yast software management module, and, for instance, search "jdk", and tick the new rpm you placed in that directory. That directory will be just another repository for automatic use by yast or zypper or apper or whatever.
The advantage is that these tools handle dependencies and conflicts in an easier way.
update-alternatives: warning: forcing reinstallation of alternative /usr/java/latest/bin/java because link group java is broken update-alternatives: error: alternative ControlPanel can't be slave of javac: it is a slave of java warning: %post(jdk1.8.0_65-2000:1.8.0_65-fcs.x86_64) scriptlet failed, exit status 2
Heeeeeelp :-) please...
This may be that you need to handle "update-alternatives" manually, which is normal, anyway.
So, I de-installed this Oracle TDK and JRE using Yast. And then this is what I get:
Try this, and post back - my results are included for comparison:
Telcontar:~ # rpm -qa | grep jdk
venus:/home/daniel/downloads # rpm -qa | grep jdk java-1_8_0-openjdk-headless-1.8.0.60-15.2.x86_64 java-1_8_0-openjdk-1.8.0.60-15.2.x86_64 java-1_7_0-openjdk-headless-1.7.0.85-10.2.x86_64 java-1_7_0-openjdk-1.7.0.85-10.2.x86_64
update-alternatives --list java
venus:/home/daniel/downloads # update-alternatives --list java /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java
Telcontar:~ # update-alternatives --config java
update-alternatives: warning: /etc/alternatives/java is dangling; it will be updated with best choice There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 auto mode 1 /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java 1705 manual mode 2 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 manual mode Press enter to keep the current choice[*], or type selection number: -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-30 16:36, Daniel Bauer wrote:
So, I de-installed this Oracle TDK and JRE using Yast. And then this is what I get:
Yes, I didn't notice you had both.
Telcontar:~ # update-alternatives --config java
update-alternatives: warning: /etc/alternatives/java is dangling; it will be updated with best choice There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status ------------------------------------------------------------
0 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 auto mode 1 /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java 1705 manual mode 2 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 manual mode
Press enter to keep the current choice[*], or type selection number:
At this point, enter '0'. Then, if you wish to install the oracle jdk, do so. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Am 30.10.2015 um 16:44 schrieb Carlos E. R.:
On 2015-10-30 16:36, Daniel Bauer wrote:
So, I de-installed this Oracle TDK and JRE using Yast. And then this is what I get:
Yes, I didn't notice you had both.
Telcontar:~ # update-alternatives --config java
update-alternatives: warning: /etc/alternatives/java is dangling; it will be updated with best choice There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status ------------------------------------------------------------
0 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 auto mode 1 /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java 1705 manual mode 2 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 manual mode
Press enter to keep the current choice[*], or type selection number:
At this point, enter '0'.
Then, if you wish to install the oracle jdk, do so.
Ok, I did, and I installed your way (with yast from dir). It seems it worked, at least I have not seen anything... Now, I wanted to run those commands listet on the page. But the bash script produces errors: venus:/home/daniel/downloads/programme/java # sh term_yava_install.sh gzip: /usr/java/jdk1.8.0_65/man/man1/apt.1: No such file or directory update-alternatives: --slave needs <link> <name> <path> Usage: update-alternatives [<option> ...] <command> Commands: --install <link> <name> <path> <priority> [--slave <link> <name> <path>] ... add a group of alternatives to the system. --remove <name> <path> remove <path> from the <name> group alternative. --remove-all <name> remove <name> group from the alternatives system. --auto <name> switch the master link <name> to automatic mode. --display <name> display information about the <name> group. --query <name> machine parseable version of --display <name>. --list <name> display all targets of the <name> group. --get-selections list master alternative names and their status. --set-selections read alternative status from standard input. --config <name> show alternatives for the <name> group and ask the user to select which one to use. --set <name> <path> set <path> as alternative for <name>. --all call --config on all alternatives. <link> is the symlink pointing to /etc/alternatives/<name>. (e.g. /usr/bin/pager) <name> is the master name for this link group. (e.g. pager) <path> is the location of one of the alternative target files. (e.g. /usr/bin/less) <priority> is an integer; options with higher numbers have higher priority in automatic mode. Options: --altdir <directory> change the alternatives directory. --admindir <directory> change the administrative directory. --log <file> change the log file. --force allow replacing files with alternative links. --skip-auto skip prompt for alternatives correctly configured in automatic mode (relevant for --config only) --verbose verbose operation, more output. --quiet quiet operation, minimal output. --help show this help message. --version show the version. term_yava_install.sh: line 34: usr/bin/unpack200: No such file or directory ??? -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
30.10.2015 19:22, Daniel Bauer пишет:
venus:/home/daniel/downloads/programme/java # sh term_yava_install.sh gzip: /usr/java/jdk1.8.0_65/man/man1/apt.1: No such file or directory
So check what files are included in *YOUR* package. ls /usr/java/jdk1.8.0_65/man/man1 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-30 17:36, Andrei Borzenkov wrote:
30.10.2015 19:22, Daniel Bauer пишет:
venus:/home/daniel/downloads/programme/java # sh term_yava_install.sh gzip: /usr/java/jdk1.8.0_65/man/man1/apt.1: No such file or directory
So check what files are included in *YOUR* package.
ls /usr/java/jdk1.8.0_65/man/man1
In my case, there is no "apt". There is, however, a "/usr/java/jdk1.8.0_60/man/man1/appletviewer.1" The page "https://en.opensuse.org/Sun_Java" refers to it: sudo gzip $(readlink -f /usr/java/jdk1.8.0_05/man/man1/apt.1) it also mentions "/usr/bin/apt" which does not exist, either. I'm not that familiar with java to know what it is, but either it comes now in another package, or has been superseded. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Am 30.10.2015 um 17:36 schrieb Andrei Borzenkov:
30.10.2015 19:22, Daniel Bauer пишет:
venus:/home/daniel/downloads/programme/java # sh term_yava_install.sh gzip: /usr/java/jdk1.8.0_65/man/man1/apt.1: No such file or directory
So check what files are included in *YOUR* package.
ls /usr/java/jdk1.8.0_65/man/man1
hmmmm, and which of those? All *.gz files in /usr/java/jdk1.8.0_65/man/man1? And then, with this loooong command line below of the gzip-commands, which I don't understand and even don't know where one command starts and ends... what would I have to do with that? The only thing I was capable was to change all "jdk1.8.0_05" in the sample to "jdk1.8.0_65" in my shell script... The only thing know ist that now I dont have anything jaja in about:plugins of my browser.... any further help? -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 30.10.2015 um 18:47 schrieb Daniel Bauer:
Am 30.10.2015 um 17:36 schrieb Andrei Borzenkov:
30.10.2015 19:22, Daniel Bauer пишет:
venus:/home/daniel/downloads/programme/java # sh term_yava_install.sh gzip: /usr/java/jdk1.8.0_65/man/man1/apt.1: No such file or directory
So check what files are included in *YOUR* package.
ls /usr/java/jdk1.8.0_65/man/man1
hmmmm, and which of those? All *.gz files in /usr/java/jdk1.8.0_65/man/man1?
And then, with this loooong command line below of the gzip-commands, which I don't understand and even don't know where one command starts and ends... what would I have to do with that?
The only thing I was capable was to change all "jdk1.8.0_05" in the sample to "jdk1.8.0_65" in my shell script...
The only thing know ist that now I dont have anything jaja in about:plugins of my browser....
any further help?
and then the confusion goes on... IF I can - with the help of this list - reach to terminate the basic install and running that script, what follows? On the page https://en.opensuse.org/Sun_Java I followed "Java Development Kit installation using Oracle's RPM" and am now stuck as mentioned above. But then comes the chapter "Procedure with development kit included (JDK)". It starts with "Download Oracle Java SE Development Kit (JDK)..." But havn't I just installed that using the rpm? Do I have to follow any of those commands, like the mentioned ln's, the stuff under "Inform the system", "Java compiler", "Web browser plug-in", "Making Oracle Java default"??? Or are these the things that would made with the shell script from above? I am really totally confused.... -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-10-30 19:17, Daniel Bauer wrote:
Or are these the things that would made with the shell script from above?
I have not used the script; java works, but some tools used for development, will not. For example, man pages. It doesn't bother /me/, for the moment. If you want your browser to see java, then you do have to follow the "Web browser plug-in" section. And of course, the "Making Oracle Java default", which is about update-alternatives, if I remember correctly. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlYz6B4ACgkQja8UbcUWM1zFiwD9Fgi/PU1fuelth0qIAatRVGdm Xniu/TfUQI+Ne8PHk+oA/jKrCpFXOqPMkrArg0rdJSVPUxxfd8KbTsSjZ7wNkfpk =eHX6 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
30.10.2015 16:01, Daniel Bauer пишет:
So, instead of reading the whole page, I read "the procedure to install the JDK will be shown first," and so I blindly followed the first, with which, of course, I installed the JRE instead of the JDK.
Never-mind, I scrolled down to "Java Development Kit installation using Oracle's RPM", downloaded and tried to install with "sudo rpm -ivh jdk-8u65-linux-x64.rpm". Now that gives me the following:
Preparing... ################################# [100%] Updating / installing... 1:jdk1.8.0_65-2000:1.8.0_65-fcs ################################# [100%] Unpacking JAR files... tools.jar... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... jfxrt.jar... update-alternatives: warning: forcing reinstallation of alternative /usr/java/latest/bin/java because link group java is broken update-alternatives: error: alternative ControlPanel can't be slave of javac: it is a slave of java warning: %post(jdk1.8.0_65-2000:1.8.0_65-fcs.x86_64) scriptlet failed, exit status 2
Heeeeeelp :-) please...
You have both jre and jdk and they conflict. Remove both (probably with --force) and the install jdk only. jdk always contains jre. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Solved the Java-install part (I hope...) On the page https://en.opensuse.org/Sun_Java (Instead of "Java Development Kit installation using Oracle's RPM" [which I wasn't able to bring to success, even with lots of googling]), I followed "Procedure with development kit included (JDK)". That worked. Of course I had to alter the commands to the actual jdk-file-names, and the ln-commands to 1.8.0 instead of 1.7.0 and, not to forget: before beginning with the new try I de-installed the previous unsuccessful rpm-install using Yast. Thanks for your efforts, friends. See you soon again ;-) Daniel Am 30.10.2015 um 11:32 schrieb Daniel Bauer:
Hi,
I want/must learn android programming. After googling many hours I found I begin with installing eclipse. Done. Already second step fails: installng ADT plugin terminates eclipse with a fatal error, that (according to what I found) is related to openJDK...
Googling about how to install Oracles JDK gives a lot of obviously outdated and many contradictory results, but it seems that before of installing Oracles Java I must remove openjdk. Trying to do this in Yast leads to many many conflicts, which I am not able to resolve in a way that I understand.
Can anybody lighten my way thru the clouds, i.e. pointing me to a step-by-step-howto for dummies on how to set up an Java/android development environment with eclipse?
Thanks for hints!
Daniel
-- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sat, 31 Oct 2015 17:20:08 +0100 Daniel Bauer wrote:
Solved the Java-install part (I hope...)
On the page https://en.opensuse.org/Sun_Java (Instead of "Java Development Kit installation using Oracle's RPM" [which I wasn't able to bring to success, even with lots of googling]),
I followed "Procedure with development kit included (JDK)". That worked.
Of course I had to alter the commands to the actual jdk-file-names, and the ln-commands to 1.8.0 instead of 1.7.0
and, not to forget: before beginning with the new try I de-installed the previous unsuccessful rpm-install using Yast.
Thanks for your efforts, friends. See you soon again ;-)
Daniel
Thanks for the update, Daniel. I thought it'd be nice to have Android Studio installed, too, but after several false starts installing Oracle's JDK rpm version, I ended up rolling '/' back to my previous snapshot and running updates just to be certain no breakage remained. I haven't given up :-) but obviously this is going to take a bit more research, time and planning than I'd originally anticipated. regards, Carl OpenSUSE 13.2 x86_64 KDE 4.14.9 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 31.10.2015 um 19:11 schrieb Carl Hartung:
Thanks for the update, Daniel. I thought it'd be nice to have Android Studio installed, too, but after several false starts installing Oracle's JDK rpm version, I ended up rolling '/' back to my previous snapshot and running updates just to be certain no breakage remained. I haven't given up :-) but obviously this is going to take a bit more research, time and planning than I'd originally anticipated.
I have just installed Android Studio, and it's running (well, I just put the settings to download the minimum things). Soon I'll see more... Daniel -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sat, 31 Oct 2015 19:40:37 +0100 Daniel Bauer wrote:
I have just installed Android Studio, and it's running (well, I just put the settings to download the minimum things). Soon I'll see more...
Daniel, What led you to believe that Oracle's JDK was required, or at least preferred over OpenJDK, for installing and running Android Studio? I have since found several threads (primarily CentOS 7, Mint, Ubuntu discussions) where the only problem with OpenJDK was that 'tools.jar' wasn't being found and this was causing Android Studio to fail to launch. Installing the 'openjdk-devel' package fixed this problem. In our case, that package would be one (or both) of the following: java-1_7_0-openjdk-devel SUSE's implementation of the OpenJDK 7 Development Environment java-1_8_0-openjdk-devel OpenJDK 8 Development Environment These packages, which were already installed on my system, are all runtime packages: ~> rpm -qa | grep jdk java-1_8_0-openjdk-plugin-1.6.1-6.2.x86_64 java-1_7_0-openjdk-headless-1.7.0.85-10.2.x86_64 java-1_8_0-openjdk-1.8.0.60-15.2.x86_64 java-1_7_0-openjdk-plugin-1.6.1-6.1.x86_64 java-1_8_0-openjdk-headless-1.8.0.60-15.2.x86_64 java-1_7_0-openjdk-1.7.0.85-10.2.x86_64 - - - - - 8< - - - - - java-1_8_0-openjdk-plugin Java Web Start and plugin implementation java-1_7_0-openjdk-headless OpenJDK 7 runtime environment without X, audio and video support java-1_8_0-openjdk OpenJDK 8 Runtime Environment java-1_7_0-openjdk-plugin Java Web Start and plugin implementation java-1_8_0-openjdk-headless OpenJDK 8 Runtime Environment java-1_7_0-openjdk SUSE's implementation of the OpenJDK 7 runtime environment - - - - - 8< - - - - - After learning this, I installed the '-devel' package for both OpenJDK versions on my system: # zypper in java-1_7_0-openjdk-devel java-1_8_0-openjdk-devel Loading repository data... Reading installed packages... Resolving package dependencies... The following 2 NEW packages are going to be installed: java-1_7_0-openjdk-devel java-1_8_0-openjdk-devel 2 new packages to install. Overall download size: 23.6 MiB. Already cached: 0 B After the operation, additional 58.1 MiB will be used. Continue? [y/n/? shows all options] (y): y Retrieving package java-1_7_0-openjdk-devel-1.7.0.85-10.2.x86_64 (1/2), 15.3 MiB ( 20.0 MiB unpacked) Retrieving: java-1_7_0-openjdk-devel-1.7.0.85-10.2.x86_64.rpm ...........................................[done (362.0 KiB/s)] Retrieving package java-1_8_0-openjdk-devel-1.8.0.60-15.2.x86_64 (2/2), 8.3 MiB ( 38.1 MiB unpacked) Retrieving: java-1_8_0-openjdk-devel-1.8.0.60-15.2.x86_64.rpm ...........................................[done (362.0 KiB/s)] Checking for file conflicts: ..........................................................................................[done] (1/2) Installing: java-1_7_0-openjdk-devel-1.7.0.85-10.2 ..............................................................[done] Additional rpm output: update-alternatives: using /usr/lib64/jvm/java-1.7.0-openjdk/bin/javac to provide /usr/bin/javac (javac) in auto mode update-alternatives: using /usr/lib64/jvm/java-1.7.0-openjdk to provide /usr/lib64/jvm/java-openjdk (java_sdk_openjdk) in auto mode update-alternatives: using /usr/lib64/jvm/java-1.7.0-openjdk to provide /usr/lib64/jvm/java-1.7.0 (java_sdk_1.7.0) in auto mode (2/2) Installing: java-1_8_0-openjdk-devel-1.8.0.60-15.2 ..............................................................[done] Additional rpm output: update-alternatives: using /usr/lib64/jvm/java-1.8.0-openjdk/bin/javac to provide /usr/bin/javac (javac) in auto mode update-alternatives: using /usr/lib64/jvm/java-1.8.0-openjdk to provide /usr/lib64/jvm/java-openjdk (java_sdk_openjdk) in auto mode update-alternatives: using /usr/lib64/jvm/java-1.8.0-openjdk to provide /usr/lib64/jvm/java-1.8.0 (java_sdk_1.8.0) in auto mode After running 'updatedb' (find-utils): # locate tools.jar /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/lib/tools.jar /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/lib/tools.jar I'll install Android Tools tomorrow to see if my experience matches the positive results reported in those threads. regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 01.11.2015 um 02:33 schrieb Carl Hartung:
What led you to believe that Oracle's JDK was required, or at least preferred over OpenJDK, for installing and running Android Studio?
When I installed Eclipse it crashed with some "fatal errors". I searched for these errors and what I found told me I must install Oracle's JDK. I believed it easily because somewhere in my mind I believed to have heard earlier that openJDK has it's problems... I now installed Android Studio instead of Eclipse because of your message in this thread... Fact is, that I don't know anything about Java, not a tiny bit. So I depend on search results and in new things I tend to take the "standard" way, also in the hope that searching for problems later will be easier when I use what most use... My programming skills come from COBOL on IBM and NCR hosts, thousands of years back... html, php, CSS and simple, more or less procedural JavaScript added, but all the object oriented stuff is still a black hole for me. So my decision to install Oracle's Java is not based on any knowledge... I just hope, it serves (and I'll understand it) :-) Daniel -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 1 Nov 2015 09:55:51 +0100 Daniel Bauer wrote:
When I installed Eclipse it crashed with some "fatal errors". I searched for these errors and what I found told me I must install Oracle's JDK. I believed it easily because somewhere in my mind I believed to have heard earlier that openJDK has it's problems...
I now installed Android Studio instead of Eclipse because of your message in this thread...
Fact is, that I don't know anything about Java, not a tiny bit. So I depend on search results and in new things I tend to take the "standard" way, also in the hope that searching for problems later will be easier when I use what most use...
My programming skills come from COBOL on IBM and NCR hosts, thousands of years back... html, php, CSS and simple, more or less procedural JavaScript added, but all the object oriented stuff is still a black hole for me. So my decision to install Oracle's Java is not based on any knowledge... I just hope, it serves (and I'll understand it) :-)
Daniel
Thanks for the context, Daniel, and wish you the best on this learning adventure. :-) FWIW, I got Android Studio running after installing the OpenJDK '-devel' package, but the process wasn't 'seamless' and there were several discouraging warnings / error messages along the way. I have to agree with your assessment to run with Oracle's JDK in this case. regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Carl Hartung
-
Carlos E. R.
-
Daniel Bauer