Decrease swappiness whereby the use of swap is curtailed$ cat /proc/sys/vm/swappiness <enter>returns the value of swappiness which is 60 initially. Make this 20 as follows:$ sudo xed /etc/sysctl.conf <enter>Add a line to the end of the filevm.swappiness=20Save the file. Disable Java in LibreofficeOpen Libreoffice Writer.Go to Tools -> Options -> Advanced -> Java OptionsUncheck Java … Continue reading How to improve speed or performance of Linux Mint XFCE on old computer
Tag: java
Error running Income Tax India ITR utility on Fedora 32 Linux
India income tax returns filing utilities are created using Java 8 SDK and use Java FX. These can only be run using Java 8 as Java FX was bundled with it. Newer versions of Java from Oracle do not bundle Java Fx anymore. Therefore, when running the Java income tax utilities, the following error (in … Continue reading Error running Income Tax India ITR utility on Fedora 32 Linux
How to fix Android Studio error message – Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance
Android Studio upon being freshly installed displayed the below error message in the event window: Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance This error is due to the Vulkan APIs that are not needed if the computer has no graphics card. To overcome this error, open a terminal window and do the following: … Continue reading How to fix Android Studio error message – Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance
IntelliJ IDEA displays error that Java SDK is not installed
When IntelliJ IDEA is installed, Kotlin applications cannot be compiled or run unless the Java SDK is installed. Choose to get the Oracle Java SDK or install the OpenJDK SDK corresponding to the OpenJDK Java Runtime Environment that has been installed. By default, the Linux distribution will just install the Java Runtime Environment (JRE). To … Continue reading IntelliJ IDEA displays error that Java SDK is not installed
How to use India income tax Java utilities on Linux Mint 19
To run the Indian income tax Java utilities on Linux Mint 20 or Fedora 32 or Ubuntu 20.04 LTS, refer to this link https://askmeaboutlinux.com/2020/07/30/how-to-run-india-income-tax-java-utilities-on-linux-mint-20-or-ubuntu-20-04-lts/ Upon download and execution of the income tax India utilities for the ITRs for Java, the following error is display when the utility is run using Java 11 on Linux. "Error: … Continue reading How to use India income tax Java utilities on Linux Mint 19
How to install Oracle Java 12 on Ubuntu
See https://www.linuxuprising.com/2019/03/how-to-install-oracle-java-12-jdk-12-in.html Simply put, open a terminal window and enter following commands: $ sudo add-apt-repository ppa:linuxuprising/java <enter> $ sudo apt update <enter> $ sudo apt install oracle-java12-installer <enter> After the installation is complete, you can verify that the Java plugin has been installed by starting your Firefox web browser and typing about:plugins in the URL … Continue reading How to install Oracle Java 12 on Ubuntu
How to code multiple line tooltips with bold text
Many Java programs use tool tips in Java Swing to display more information when the mouse cursor hovers over a button or text field. There is a method of making text within that tool tip bold, italics, colored and more. Below is an illustration of the command that uses HTML tags to display that formatting … Continue reading How to code multiple line tooltips with bold text
How to close the program in Java completely in Swing
A Java Swing application can be closed using the following code segment to retrieve the parent of the container, check if it is a JFrame and then dispose the JFrame: public class btnCancelListener implements ActionListener { public void actionPerformed(ActionEvent ev) { Container bframe = btnCancel.getParent(); bframe = bframe.getParent(); while (! (bframe instanceof JFrame)) { System.out.println("Done"); … Continue reading How to close the program in Java completely in Swing
How to disable File Name Input in JFileChooser in Java
JFileChooser is a very powerful Component in Java. It even enables filtering of file names. However, there is no direct method to prevent a user from entering the File Name input in it. The following method disables the JTextField File input text box inĀ JFileChooser, by basically taking the JFileChooser as a Component, looking for … Continue reading How to disable File Name Input in JFileChooser in Java
Error building Java Program in Eclipse Mars after changing Java version
Right Click on the Project in the Package Explorer. Select Build Path -> Configure Build Path -> Libraries. Now remove JRE System Library 1.7 and add the one for java-8-oracle by clicking on Add Library -> JRE System Library -> Click Execution Environment and set that to JavaSE-1.8 (java-8-oracle). Click Finish. This resolves the error … Continue reading Error building Java Program in Eclipse Mars after changing Java version