Java 8 auf Linux / openSUSE 13 installieren

Java 8 bringt interessante neue Sprachfeatures mit — beispielsweise Lambda-Expressions, eine komplett neue Date-Time-API oder auch die neue Möglichkeit, Interfaces mit statischen Methoden auszurüsten. Starke neue Werkzeuge und echte Weiterentwicklungen.

Einen kompletten fundierten Überblick zu allen Neuerungen in Java 8 findet ihr hier:
» Everything about Java 8

Probleme beim Java-Upgrade?

Die Installation von JDK 8 oder OpenJDK 1.8 funktioniert nicht immer ganz problemlos — insbesondere dann, wenn bereits ein oder mehrere JDK oder JRE vorhanden sind. Ein Blick ins Netz verriet dann auch: Ich stehe damit nicht allein.

Zunächst folgt nach der Installation eine erste Prüfung, direkt in einer frisch geöffneten Konsole:

$ java -version

Wird dabei etwa folgendes ausgegeben (abhängig vom installierten Java), ist alles in Ordnung:

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) Server VM (build 25.25-b02, mixed mode)

Wenn aber das Kommando java -version gar nicht gefunden wird, ist entweder die Umgebungsvariable JAVA_HOME nicht gesetzt oder Java befindet sich nicht im exportierten PATH. Überprüfen lässt sich das mit einem $PATH sowie einem $JAVA_HOME in der Konsole.
Falls JAVA_HOME nicht auf das neue Java zeigt oder es nicht im PATH enthalten ist, könnte ein vorheriges bash in der Konsole oder eine Neuanmeldung am System helfen. Ändert auch das nichts, fehlen diese Pfade wahrscheinlich in der ~/.profile.

Die typischen Fehlermeldungen nach der Installation und dem Aufruf von java -version lauten allerdings:

java: error while loading shared libraries: libjli.so: 
cannot open shared object file: No such file or directory

oder

Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.

Diese Fehlermeldungen führen meist in die Irre. Zumindest wenn ein vorher vorhandenes Java fehlerfrei lief, liegt es wahrscheinlich nicht an fehlenden Dateien oder Zugriffsrechten. Ursache sind meist Versionskonflikte, hervorgerufen durch unpassende Java-Dateien oder Symlinks zur alten Java-Version in /usr/bin.

Hier nun eine kurze praktische Anleitung zur Umschiffung dieser Hindernisse:
Auf einem openSUSE 13.1. mit openJDK 1.7 wird beispielhaft ein zusätzliches JDK 8 installiert und aktiviert. Dieses JDK habe ich gewählt, weil ich genau das benötigte. Die hier vorgestellte manuelle Installation wird jedoch mit einem OpenJDK oder einer anderen Java-Version ebenso funktionieren.

4 einfache Schritte zu Java 8

    • JDK als passendes TAR downloaden, zB jdk-8u25-linux-i586.tar.gz von
      Java SE Development Kit 8 Downloads
    • TAR nach /usr/lib/jvm/jdk1.8.0_25 entpacken:
      $ cd ~/Downloads
      $ sudo tar -xzf jdk-8u25-linux-i586.tar.gz -C /usr/lib/jvm/ 
      

       

usr.lib.jvm

  • PATH und JAVA_HOME ergänzen, beispielsweise im Profil des eigenen HOME-Verzeichnisses:
    $ vim ~/.profile
    

    Hier sollten PATH, JAVA_HOME, JAVA_ROOT, JAVA_BINDIR und JRE_HOME eingetragen werde. Das kann etwa so aussehen:

    PATH="$PATH:/usr/lib/jvm/jdk1.8.0_25/bin:
           /usr/lib/jvm/jdk1.8.0_25/jre/bin"
    JAVA_HOME="/usr/lib/jvm/jdk1.8.0_25"
    JAVA_ROOT="/usr/lib/jvm/jdk1.8.0_25"
    JAVA_BINDIR="/usr/lib/jvm/jdk1.8.0_25/bin"
    JRE_HOME="/usr/lib/jvm/jdk1.8.0_25/jre"
    export PATH JRE_HOME JAVA_ROOT JAVA_BINDIR JAVA_HOME
    

    Wenn sich im Pfad noch Verweise auf ältere Java-Versionen befinden, sollten die natürlich entsprechend entfernt bzw. angepasst werden. Wirksam werden diese Änderungen beim nächsten Login oder einfach durch Eingabe von:

    $ source ~/.profile
    

    Anschließend können die neuen Einstellungen gleich direkt geprüft werden, mittels Eingabe von $JAVA_HOME, $JAVA_ROOT, $JAVA_BINDIR, $JRE_HOME und $PATH.

    Manche Howtos empfehlen, den Pfad in ~/.bashrc einzutragen. Das ist jedoch nicht empfehlenswert. Die .bashrc greift beim Öffnen interaktiver Shells. Profil- oder systemrelevante Pfadangaben gehören dort nicht hin. Zur Vermeidung von Konflikten empfiehlt sich also auch ein Blick in die ~/.bashrc, um darin enthaltene Pfadangaben möglichst zu entfernen.

  • Nun werden noch die Java-Referenzen in /usr/bin aktualisiert. Wenn hier noch eine ältere Java-Version referenziert wird, ist das zum einen unrichtig und kann außerdem zu diesem Fehler führen:
    java: error while loading shared libraries: libjli.so: 
    cannot open shared object file: No such file or directory
    

    Zunächst werden die alten Dateien oder Referenzen gelöscht (sofern vorhanden):

    $ sudo rm /usr/bin/java
    $ sudo rm /usr/bin/jar
    $ sudo rm /usr/bin/javac
    $ sudo rm /usr/bin/javaws
    

    Es werden neue Symlinks angelegt, die auf die neue Java-Version verweisen:

    $ sudo ln -s /usr/lib/jvm/jdk1.8.0_25/bin/java /usr/bin/java
    $ sudo ln -s /usr/lib/jvm/jdk1.8.0_25/bin/jar /usr/bin/jar
    $ sudo ln -s /usr/lib/jvm/jdk1.8.0_25/bin/javac /usr/bin/javac
    $ sudo ln -s /usr/lib/jvm/jdk1.8.0_25/bin/javaws /usr/bin/javaws
    

    Das war schon alles. Der abschließende Test mit

    $ java -version
    

    sollte nun ergeben:

    java version "1.8.0_25"
    Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
    Java HotSpot(TM) Server VM (build 25.25-b02, mixed mode)
    

Hinweise, Ergänzungen, Korrekturen dazu gern willkommen!

20 Kommentare

  • As you will inevitably learn on your path to losing weight, effective weight loss is not only about watching what you eat, but much more about changing your lifestyle. This means changing your habits and how you approach your day-to-day life. Read this information to help you throughout the process.

  • Sleep apnea is a very difficult thing to live with, both for the sufferer and for people living and sleep with him or her. If you fit into either of these categories, then you know just how frustrating it can be. Read through the tips found in this article to learn the best way to survive this problem!

    If you suffer from sleep apnea, you should use a Continuous Positive Airway Pressure machine while sleeping. This will help you treat your sleep apnea and get you on the path to having a full nights sleep. This machine uses either a face or nasal mask to pump air while you sleep.

    Adjust your CPAP machine. Most machines come with default settings that might not correspond to your needs. You should be able to regulate the airflow: try different settings and choose one that seems to work for you. If you feel like your machine is not working like it should, try changing the settings again.

    If you suffer from sleep apnea and you use a CPAP, carry your medical ID. If you need medical attention, it’s vital that the people treating you know about your condition and that you use a CPAP machine. Your ID should tell people about your sleep apnea, your use of a CPAP, and the proper pressure level for it.

    If you tend to snore a lot and have difficulties staying asleep, you should go see your doctor right away. You might have a condition known as sleep apnea: find an effective treatment so you can get enough sleep and go through your daily activities without being held back by your health problem.

    Check if a corrective device can help alleviate your sleep apnea symptoms. Having an overbite, an undersized jaw or a recessed chin can cause your airway to be more narrow because of how your jawbone is set. These devices help create proper alignment of your jaw while you sleep, opening up your airway more. As a result, you experience fewer sleep apnea symptoms.

    Sleep apnea does not go away on its own; patients need treatment. Some treatments work better for different people. If you lose weight you will help your sleep apnea, but this is not always the cause. CPAP machines are considered non-invasive, and many people use them successfully. Others prefer surgery to relieve their sleep apnea. Choose whichever method you think will work for you so you may begin to live a happy and comfortable life.

    Drink one cup of caffeinated coffee a few hours before you go to sleep. It may seem silly to drink a caffeine drink at night, but this can actually help keep your throat open while you sleep. You may have to play around with what time you drink the coffee to avoid restlessness.

    People who use alcohol, sedatives, and sleeping pills are far more likely to suffer from sleep apnea. This is because these drugs will relax the throat and cause their breathing to be impaired. Using these drugs before bedtime is more likely to cause sleep apnea than using these drugs during the day.

    These tips were written especially for people who suffer from apnea, whether directly or indirectly as a bed partner. While it can be quite difficult to completely remove apnea from your life, there are ways to live with it, and these were touched on in this useful sleep apnea article.

    viagrasansordonnancefr.com

  • Do you feel the pain of acid reflux? Do you feel a fire inside your chest? Are you miserable? Are you ready for the issues to stop? Continue reading to find out how. Keep reading to learn to control acid reflux for good and to end the misery for good.

    You may need to balance out hydrochloric acid amounts in your body if you want to reduce acid reflux and its symptoms. You can do this, for instance, by using sea salt rather than table salt. Sea salt has chloride and minerals that are good for the stomach and prevent acid.

    https://www.viagrasansordonnancefr.com/achat-de-viagra-en-suisse/

  • Do you feel the pain of acid reflux? Do you feel a fire inside your chest? Are you miserable? Are you ready for the issues to stop? Continue reading to find out how. Keep reading to learn to control acid reflux for good and to end the misery for good.

    You may need to balance out hydrochloric acid amounts in your body if you want to reduce acid reflux and its symptoms. You can do this, for instance, by using sea salt rather than table salt. Sea salt has chloride and minerals that are good for the stomach and prevent acid.

    https://www.viagrasansordonnancefr.com/acheter-sildenafil-pfizer-conditionnement/

  • Последние новости здесь mybiysk.ru

  • Новая информация об автомобилях autoisauto.ru

  • Новая информация о строительстве distroy.ru

  • Полезная информация о строительстве и ремонте montazhnik02.ru

  • Читайте много информации о стройке и ремонте teletap.org

  • Читайте много информации о моде, красоте здоровье и прочее shoptrip.ru

  • Читайте много интересных рецептов блюд zonakulinara.ru

  • Строительство и ремонт, читайте сайт roofor.ru

  • Много информации о строительстве на даче sovet-sadovody.ru

  • No matter how you do it, losing weight is an individual thing. Friends can help you but they can’t lose the weight for you. You’ve got to take charge of your weight loss from the beginning if you want to get serious about losing weight. The following tips will help.

  • If you have been feeling stressed lately, but you are not sure how to deal with it, the advice in this article can help. Feelings of stress are increasingly common in today’s world, but there are ways to help. This article will teach you some easy ways to overcome your stress.

    acheter viagra en ligne en suisse

  • Writing doctoral dissertation is a prerequisite before a PhD degree conferred to you. It usually entails conducting some form of research. Dissertation writing is therefore not among the simplest form of writing you will come across. Dissertation writing process will normally begin by selecting of a topic or a concept. The topic should be on a relevant field and that which would lead to development of new knowledge in the field. While selecting a topic for dissertation writing, ensures that your topic is simple, realistic and attainable. After you have decided on a topic, you need to embark on writing a dissertation proposal. A dissertation proposal is a detailed work plan that provides specific details on how your dissertation project will be conducted. The proposal should contain; an introduction of the topic, the problem statement of your dissertation, objectives, research questions and hypothesis of your study and research methods you plan on using. A proposal in dissertation writing should also contain a literature review. A literature review is a detailed analysis of what other authors have said about your topic of study. The dissertation proposal should also include a work schedule and a budget plan for your dissertation project. After writing your proposal the next step is the collection and analysis of data. There are many approaches for collecting and analyzing data and the choice of these will dependent on the study. Then next is the actual dissertation writing. Dissertation papers should contain all those details included in the proposals. It should also encompass chapters that present the results and finding of the study. Dissertation writing should follow specific structure and style of formatting. This again will vary depending on your study type, institution or field of study. This process of dissertation writing consumes a lot of time and requires a lot of expertise and experience. These sometimes present a challenge to many students when it comes to dissertation writing. We are now providing dissertation writing services. We are offering dissertation papers for a variety of academic fields including; history, sciences, business, psychology and literature among many others. We have highly experienced writers who are also experts in dissertation writing. These dissertation writers are all PhD graduates who have years of practice in writing and have never disappointed when it comes to writing dissertation papers. Our writers will ensure that all the standards for your dissertation writing are adhered to. Though some standard requirement will vary from one dissertation papers to the other, there are some dissertation writing standard requirements that apply to all dissertation papers. One of them is the use of correct language, sentences, spelling and punctuations. Errors committed in such areas my completely alter what you intended to communicate in your dissertations. Another requirement is that your dissertation papers should be original and plagiarism free. To ensure that our papers remain 100 percent original and non-plagiarized we have instructed our writers to always start the writing process from scratch. We also scan all our papers using plagiarism checking software before we hand them over to our client. When you purchase our dissertation writing services, you receive papers that are guaranteed to satisfy your individual needs. This is because all our dissertation papers are custom written which ensures that we are able to adhere to our customers’ concerns and focus in meeting their expectations. Our dissertation writing services are also available at affordable prices.

  • Some people, especially those running on busy daily schedules tend to use the pills to help maintain weight since they can not afford to follow all the diet programs. This is not advised. It is recommended that one seek advice from a professional in this field before using the pills. This can save one from many dangers associated with the misuse.

    The diet pills should always be taken whole. Some people tend to divide the pills to serve a longer period of time. This is not advised and can lead to ineffectiveness. If it is required that one takes a complete tablet, it means that a certain amount of the ingredients are required to achieve the desired goal. It is also recommended that one does not crush the pill and dissolve it in beverages. Chemicals found in beverages have the potential of neutralizing the desired nutrients in the pill thereby leading to ineffectiveness. The best way to take the tablets is swallowing them whole with a glass of water.

    The diet pills speed up the metabolic processes. This is the key factor that leads to the burning of all the fats in the body. This means that one passes out lots of urine, which subsequently leads to dehydration. It is imperative that the user take lots of water round the clock. This will help curb dehydration, which can lead to health problems. In addition to that, water offers the required medium for the function of the nutrients and elimination of the fats.

    When buying the review of diet pills, it is imperative that one gets the most recommended dose. People tend to compromise the quality and effectiveness of the tablets due to the variation in cost. The low priced pills depict poor quality, which means their effectiveness is not reliable. Some have also been found to cause health problems. The dose should also be taken as recommended. Over dose will not speed up the process but rather lead to complication. This will increase risk of side effects. If the taking of the pill is forgotten, do not take more to compensate for the lost time.

    The diet plan enclosed with the diet pills has also to be followed. According to the requirements, the termination of the diet must be done even with no results. This means your body is irresponsive.

  • Writing a medical thesis or dissertation is a task done by almost all postgraduate and master’s medical students. Dissertation is derived from the Latin word disserto which means discuss. It is essential to write successful medical papers such as medicine essays and medical thesis papers. There are several reasons as to why students write medicine essays. One of the reasons is to promote enhancement of critical judgment, research skills as well as analytical skills. Moreover, medicine essay writing produce students with the ability to 4evaluate and analyze data critically.

    The initial step for writing medicine essays is to choose a topic. A writer should have at least three topics to choose from. The topic has to be interesting, feasible and relevant. It is essential to write quality medicine essay. Hence, students need to have analytical skills and perfect writing skills. The writing skills will enable them write outstanding essay papers that can be highly regarded by instructors and professors. Teachers often require a lot and expect a lot from their students in terms of medicine essay writing. for this reason, students find essay writing to be an extremely difficult task and hence resort to buying custom medicine essays.

    A custom medicine essay has to be written by professional writers who are qualified in the field of nursing. Moreover, the custom medicine essay has to be original and plagiarism free. This means that it has to be written from scratch by experts with many years experience. The many years experience should enable a writer to write any form of medical paper including medical thesis, medicine essay and even medicine research paper. Moreover, experience will enable a writer to write a medicine essay that can guarantee academic success.

    Students get custom medicine essays from custom writing company. It is essential to choose the best company so that one can get the best custom medicine essay. The best and the most reliable medicine essay writing company should have some unique characteristics such as affordability and the ability to provide original and superior quality medicine essays. The other quality is that the company has to hire expert writers who can write quality medicine essays and other types of medical papers. The essays should not only be quality but also plagiarism free and free of grammatical and spelling mistakes.

    A custom medicine essay has a similar structure to any other academic essay assignment. It has an introduction that introduces the topic and tells the reader what the essay is all about. The second section is the body that has many paragraphs supporting the main topic. Finally there is the conclusion that briefly summarizes what has been discussed in the body section of the essay. Students should choose reliable writing companies so that they can get quality custom papers on several fields such as technology, sociology and law in addition to medicine field.

    Our custom writing company is the best company that all clients should rely on when in need of any given type of medicine paper. We provide quality papers that not only plagiarism free but also original. Moreover, our custom papers are affordable and able to guarantee academic excellence at all times. All our medical papers are reliable and sure of satisfying clients at all times.

     

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *