Saturday, May 20, 2017

Be ready and prepare Raspberry Pi for Java 9

   Java 9 is coming soon with many new features. Aside of continued discussion about Project Jigsaw impact, it's time to get prepared.
This article helps you to prepare your RaspberryPi environment with multiple installed JDKs.
Whole process is quite straight forward: 

The first step is to download the last stable release of java jdk-9. 
In the article we use the most recent build: jdk-9+170


You can download JDK directly into your RapsberryPi or your local machine and then by using $scp command upload it to your RaspberryPi machine
$scp ./jdk-9-ea+170_linux-arm32-vfp-hflt_bin.tar.gz pi@<raspberrypi_ip>/home/pi

The next step is to login into your RaspberryPi machine  
$ssh pi@<raspberry_ip>

To unzip the downloaded JDK file execute following command:
$ sudo tar zxvf jdk-9-ea+170_linux-arm32-vfp-hflt_bin.tar.gz -C /opt

The command extracts the jdk-9 into the /opt folder

Now link java and javac with newly available JDK
$ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk-9/bin/javac 1
$ sudo update-alternatives --install /usr/bin/java java /opt/jdk-9/bin/java 1

by using following command we select the jdk-9 available for us under the number 1
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java

at the end we verify our current java version by:
$ java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+170)
Java HotSpot(TM) Client VM (build 9-ea+170, mixed mode)

$ javac -version
javac 9-ea


Congratulation your RaspberryPi is now running on Java 9 and you can switch between JDKs.

92 comments:

  1. I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.
    Java Training in Marathahalli

    ReplyDelete
  2. That was a very nice and interesting post.

    Please click on the link below.
    Advanced Excel Courses in Bangalore

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Hi Thanks for the nice information its very useful to read your blog. We provide best Software Services

    ReplyDelete
  5. I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.

    white label website builder

    ReplyDelete
  6. wow...nice blog, very help full information. Thanks for sharing.
    Best Mobility Services | Austere Technologies

    ReplyDelete
  7. The administration robots are divided into expert and administration robots in view of their item writes. کوادکوپتر

    ReplyDelete
  8. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.nebosh fire certificate in chennai

    ReplyDelete
  9. Really great blog, it's very helpful and has great knowledgeable information. Thanks for sharing.

    Best Software Company | Austere Technologies

    ReplyDelete
  10. Nice blog with excellent information. Thank you, keep sharing.

    Quality Managment Services | Austere Technologies

    ReplyDelete
  11. I strongly believe that there will be great opportunities for those who looked into this area...
    Best Online Software Training Institute | Java Training

    ReplyDelete
  12. Great blog created by you. I read your blog, its best and useful information. You have done a great work. Super blogging and keep it up
    Java training in chennai

    ReplyDelete
  13. I think this is the best article today. Thanks for taking your own time to discuss this topic, I feel happy about that curiosity has increased to learn more about this topic. Keep sharing your information regularly for my future reference.
    Java Courses in chennai

    ReplyDelete
  14. Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.

    Best chartered accountant course in Hyderabad | Avinash college of commerce

    ReplyDelete
  15. Its quite interesting! Informative and Impressive blog. Thanks for sharing such useful information.

    Java training in Chennai

    ReplyDelete
  16. Hi Thanks for the nice information its very useful to read your blog. We provide best System Integration Services

    ReplyDelete
  17. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book best Andaman honeymoon packages

    ReplyDelete
  18. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book ANDAMAN TRIP @ 7999

    ReplyDelete
  19. Hi Thanks for the nice information its very useful to read your blog. We provide best financial education

    ReplyDelete
  20. The young boys ended up stimulated to read through them and now have unquestionably been having fun with these things.
    fire and safety course in chennai

    ReplyDelete
  21. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance the knowledge. Excellent post.

    aws training in bangalore

    java training in bangalore

    ReplyDelete
  22. You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us

    java training in chennai

    ReplyDelete
  23. You rock particularly for the high caliber and results-arranged offer assistance. I won't reconsider to embrace your blog entry to anyone who needs and needs bolster about this region.
    nebosh course in chennai
    offshore safety course in chennai

    ReplyDelete
  24. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us.
    Selenium online training
    Selenium certification training
    Selenium online course
    Selenium training course

    ReplyDelete
  25. Wow! Really a nice blog. Thank you so much for you effort.
    Best online training

    ReplyDelete
  26. Thank for this blog are more informative contents step by step. I here attached my site would you see this blog.

    7 tips to start a career in digital marketing

    “Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

    we have offered to the advanced syllabus course digital marketing for available join now.

    more details click the link now.

    https://www.webdschool.com/digital-marketing-course-in-chennai.html

    ReplyDelete
  27. Amazing article useful information.

    Web designing trends in 2020

    When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

    we have offered to the advanced syllabus course web design and development for available join now.

    more details click the link now.

    https://www.webdschool.com/web-development-course-in-chennai.html

    ReplyDelete
  28. Effective blog with a lot of information. I just Shared you the link below for Courses .They really provide good level of training and Placement,I just Had Data Science Classes in this institute,Just Check This Link You can get it more information about the Data Science course.

    Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

    ReplyDelete
  29. Hey guy's i have got something to share from my research work
    Sickrage
    Louiz
    Foundation

    ReplyDelete
  30. This comment has been removed by the author.

    ReplyDelete
  31. content is very informative keep sharing

    ReplyDelete
  32. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot.

    MongoDB Online Training

    MongoDB Classes Online

    MongoDB Training Online

    Online MongoDB Course

    MongoDB Course Online

    ReplyDelete

  33. ظهور نخستین سایت های شرط بندی
    اما نخستین سایت های شرط بندی چگونه شکل گرفتند؟ قبل از اینکه به مبحث اصلی مقاله یعنی معرفی سایت بازی انفجار نیترو بپردازیم، بد نیست کمی با ظهور نخستین سایت های شرط بندی آشنا شویم. اگر فراموش نکرده باشید اشاره کردیم بازی های شرط بندی در گذشته محدودیت های زیادی را داشتند.
    حضرات نیترو
    حضرات
    بازی رولت

    اما امروزه قدرت اینرنت باعث شده تا این بازی به سایت های شرط بندی کوچ کنند و از محدودیت مکانی خارج شوند. تاریخ دقیق ظهور سایت های شرط بندی در دسترس نمی باشد.
    بتخته نرد آنلاین نیترو
    تخته نرد آنلاین
    بلک جک نیترو

    اما با رجوع به تاریخچه بعضی از این سایت های از جمله سایت نیترو، خواهیم دریافت که پیشرفت تکنولوژی، بزرگترین ترغیب کننده برای ایجاد این سایت ها بوده است. البته مطالب گفته شده تمامی اطلاعات درباره این سایت های نمی باشد.
    پوکر آنلاین نیترو
    پوکر آنلاین
    بلک جک

    شمار سایت های شرط بندی امروزه رو به افزایش می باشد. برای مثال می توانیم به سایت نیترو اشاره کنیم. این سایت معتبر یکی از پیشگامان در این عرصه می باشد که قصد داریم در این مقاله شما را بیشتر با آن آشنا کنیم.
    پاسور آنلاین نیترو
    پاسور آنلاین

    ترفند برد و آموزش بازی انفجار آنلاین و شرطی، نیترو بهترین و پرمخاطب ‌ترین سایت انفجار ایرانی، نحوه برد و واقعیت ربات ها و ...
    Visit https://www.wmsociety.org/
    here for more information

    ReplyDelete
  34. Thanks for this informative blog please keep posting more often as it might help someone who is looking to gain more knowledge.
    This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.Java training in Chennai

    Java Online training in Chennai

    Java Course in Chennai

    Best JAVA Training Institutes in Chennai

    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    Java Training

    Java Online Training

    ReplyDelete

  35. I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.Your post is just outstanding! thanks for such a post,its really going great and great work.You have provided great knowledge

    Azure Training in Chennai

    Azure Training in Bangalore

    Azure Training in Hyderabad

    Azure Training in Pune

    Azure Training | microsoft azure certification | Azure Online Training Course

    Azure Online Training

    ReplyDelete
  36. Thank you so much for these kinds of informative blogs.We are also a digital marketing company in gurgaon and we provide the website design services,

    AWS training in Chennai

    AWS Online Training in Chennai

    AWS training in Bangalore

    AWS training in Hyderabad

    AWS training in Coimbatore

    AWS training

    ReplyDelete
  37. Great Article with excellent information and fantastic writing found very useful thank you.
    typeerror nonetype object is not subscriptable

    ReplyDelete
  38. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Data Science Course In Hyderabad

    ReplyDelete
  39. The work of every single one of these individuals vary widely and are heavily interdependent on each other- you may call it a symbiotic relationship with multiple entities. Talking strictly about data scientists though, the major part of their workload can be broadly categorized into 3 subsections- data science course syllabus

    ReplyDelete
  40. This comment has been removed by the author.

    ReplyDelete
  41. Thanks for sharing this valauble informaion.

    Full stack classes in indore

    ReplyDelete
  42. Thank you so much for sharing all this wonderful information !!!! It is so appreciated!! You have good humor in your blogs. So much helpful and easy to read!
    Java Course in Indore

    ReplyDelete
  43. Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. data analytics course in mysore

    ReplyDelete
  44. Your music is amazing. You have some very talented artists. I wish you the best of success. data science training in kanpur

    ReplyDelete
  45. Python is an object-oriented, analytic programming language. Classes, dynamically typed, high-level volatile data types, exceptions, modules, and exception management are all included. It supports various programming paradigms, including primary and reactive programming and object-oriented programming. Python Training in Chennai

    ReplyDelete
  46. React Native was developed to make the development of mobile apps easier after ReactJS. The answer is straightforward: life is made much simpler if you can create an app once in JavaScript and release it to both Android and iOS. With React Native, you can create fully functional apps for both platforms in less time and with only one code language. To learn more about react native, join react native course in chennai at FITA Academy.react native course in chennai

    React native online course

    ReplyDelete
  47. Swift is an open-source programming language created specifically for App Store software. It has a large community of iOS developers who work hard to advance the language's native development. Swift is a potent scripting language designed specifically for iOS applications. Its extensive selection of development tools makes it perfect for creating mobile applications.
    To learn more about swift, join Swift Developer Course In Chennai at FITA Academy.

    Swift Developer Course In Chennai

    ReplyDelete
  48. Immerse yourself in the realm of ethical hacking and elevate your cyber security skills with Indian Cyber ​​Security Solutions' premier training program. Unleash your potential as you acquire the skills to identify vulnerabilities, protect networks, and respond responsibly to cyber threats. Our practical courses, led by industry experts, provide hands-on experience in a supportive environment. From penetration testing to secure coding, our comprehensive curriculum covers all aspects of ethical hacking. Join Indian Cyber ​​Security Solutions today and seize the opportunity to protect the digital landscape, strengthen defenses and become a trusted gatekeeper in the ever-evolving field of cyber security.Take the leap and grab the knowledge to make a difference.

    ReplyDelete
  49. The greatest ethical hacking training is provided by Indian Cyber Security Solutionsin Chennai. They provide a top-notch learning experience with professors that have experience in the field, hands-on practical training, a thorough curriculum, industry-recognized certificates, and placement aid. Don't pass up the chance to register and get the expertise needed to succeed in the field of cybersecurity. If you're looking for the top ethical hacking school in Chennai, pick Indian Cyber Security Solutions.

    ReplyDelete
  50. Your article is a valuable resource for Raspberry Pi enthusiasts and Java developers alike. Thanks for sharing this informative guide!
    Java has endured over time

    ReplyDelete
  51. infomative blog, keep posting . If you want to learn about java web developer then checkout java course in pune

    ReplyDelete
  52. Great experience I got good information from your blog. Say goodbye to the search for "online tuition for class 1 – Ziyyara Edutech program addresses parent pain points head-on.
    For more info visit online tuition for class 1 near me

    ReplyDelete
  53. Good information Thank you..

    ELearn Infotech offers Java Training in Hyderabad by Industry Experts. Our realtime Java Course includes from Basic to Advanced Level concepts. We have designed our Java course content based on students Requirement to Achieve their Goal. We offer both Java classroom training in Hyderabad and Java online training with real-time projects. We are one of the leading Java Training Institutes in Hyderabad.

    ReplyDelete