How To Display Environment Variables In Java

java-thumbnail

If you call getenv() method in the class System, it will return the map containing all the environment variables configured in your system. If you just iterate the map, it will display all the details. This example shows the simple program to print the environment variables. I have executed this example in the Ubuntu Linux OS, […]

How To Update Clipboard Content In Java

java-thumbnail

If you are working on the tools development or similar product developments , then system level programming or OS interaction operations are necessary to access the native data. One of the most frequently used operation is the clipboard data. In particular, if you write program to develop own editors like notepad, clipboard operation is very […]

How To Run External Application From Java

java-thumbnail

If you are working on system programming in Java, it is very common to run the processes for starting some external applications. Runtime class defines a method to execute the external applications. This example shows how to open another eclipse instance from the Java program. This example opens the eclipse IDE, and the closes the […]

How To Get Java System Properties Values

java-thumbnail

Java’s System class maintains a property object which contains the various details of the current user, Java version, operating system, etc. These are predefined values and can be easily accessed by calling the System class level methods. This utility is very useful to get the native operating system details. Lets look at the below example […]

How To Get Screen Resolution In Java

java-thumbnail

This post highlights the one of the feature of Toolkit class in Java. If you are working on web application or desktop development, the common standard is to render the screen for the user’s current resolution. Each user may have the different resolutions and screen sizes. It is very simple to get the current screen size […]