Change OpenJDK to Oracle JDK in openSUSE

Published on March 18, 2017 by Daniel Lanza

 opensuse  java

When installing openSUSE, OpenJDK is installed by default. This tutorial will explain how to change to Oracle JDK.

dalanz@linux-geij:~> java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (IcedTea 3.3.0) (suse-8.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

Requirements

You will need the following:

Steps

comments powered by Disqus

See also

Share transient folder in openSUSE with VirtualBox

This tutorial will explain how to share a host holder into your guest virtual machine. Requirements You will need the following: An openSUSE virtual machine with VirtualBox (Check this link Steps Make transient folder Mount folder Copy and paste files Make transient folder Go to share folder settings and create a new transient folder. Create a new transient folder Give the name to the transient folder New transient folder created It is important to remember the transient folder name.

Read more

How to install openSUSE Leap 42.2 in VirtualBox

This tutorial will explain how to install openSUSE 42.2 Leap in VirtualBox. Requirements You will need the following: VirtualBox openSUSE Leap 42.2 ISO file Steps Preparing the virtual machine Installing openSUSE Post-installation tasks Preparing the virtual machine Open VirtualBox and create a new virtual machine. Select Linux type and openSUSE version. New openSUSE virtual machine Select the amount of memory RAM. The recommendation is 4096 MB (4 GB).

Read more

How to get parameters from XML Properties File

Parameters are read from XML properties file and printed on console. XML Properties File The content of XML Properties File is the following: <?xml version="1.0"?> <properties> <name>Daniel</name> <lastName>Lanza</lastName> <age>29</age> </properties> And the file is located in the desktop: /Users/dalanz/Desktop/person.xml User Java class package com.dalanz.file; import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.NodeList; public class ReadPropertiesXML { private File fileSource; public ReadPropertiesXML (File fileSource) { this.fileSource = fileSource; } public String getProperty(String key) { try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.

Read more