How to compare two lists equal in java How to compare two lists either equal or not by using list equal method in java. If two lists are equal then it will true else it will return false. List following the index order and comparing the data. String type List following Case Sensitive. So be […]
Category: Java Blog
JSON File to Java Example
JSON File to Java Example In this article, I am going to show how to parse the JSON file to java object. Suppose we have a JSON file and we need to parse the JSON data into java object to perform the operations Pre-Requisites Java 1.8 Google JSON Eclipse IDE Maven In the eclipse create […]
Java SFTP Connection Shell Script Execute
Java SFTP Connection Shell Script Execute In this article, I am going to explain how to connect the SFTP server from Java API, how transfer files from the local system to remote SFTP server and how to execute remote shell scripts from java? Pre-Requisites Java 1.8 JSch.jar Eclipse IDE Maven SftpShellChannel.java To get SFTP […]
Java SFTP Connection Files Transfer
Java SFTP Connection Files Transfer In this article, I am going to show SFTP connection with java, transfer files from the local system to the remote system. Here we are going to using the JSch library to connect SFTP/STP server. Pre-Requisites Java 1.8 JSch.jar Eclipse IDE Maven SftpChannel.java We need to get SFTP server […]
Format JSON Online
How to Create a JAR file in Linux
Create a Jar File Created 3 sample files as file1.txt, file2.txt and file3.txt -bash-4.1$ ls file1.txt file2.txt file3.txt -bash-4.1$ jar -cvf test.jar * added manifest adding: file1.txt(in = 5) (out= 7)(deflated -40%) adding: file2.txt(in = 5) (out= 7)(deflated -40%) adding: file3.txt(in = 5) (out= 7)(deflated -40%) -bash-4.1$ ls file1.txt file2.txt file3.txt test.jar Unjar a Jar […]
Version 1.7.0_67 of the JVM is not suitable for this product. Version 1.8 or greater is required
Eclipse Jee 2018-09 will be launched by using java 1.8 and above. So we need to install java 1.8 or above versions, either 32 bit or 64 bit according your system supports. After installing, you need to set system environment PATH variable of JDK path like C:\Program Files\Java\jdk<version>\jre\bin Error Screen Go to –> Right Click […]
No compiler is provided in this environment
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project <project-name>: Compilation failure No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? Solution Go to Windows –> Preferences –> Java […]
Java compiler level does not match the version of the installed Java project facet
Java compiler version and project facet selected java version not matching. So we need to change java project facets version according java compiler. Solution Change java project facets java version according java compiler. Select Project –> Right Click –> Project Facets –> Select version in version drop down. NarayanaswamyHello! I am Narayanaswamy founder and admin […]
Cannot refer to the non-final local variable productname defined in an enclosing scope
Probably you are using java 8 and the other computer is using java 7. Java requires references to variables from inner classes to be final variables. Java 8 will make them effectively final if you don’t reassign. Probably you are using java 8 and the other computer is using java 7. Java requires references to […]