Mac OSX Switch Java Version

/usr/libexec/java_home -V this will list all the Java Versions on the machine select the specific version using: export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_125` or just specify the major number export JAVA_HOME=`/usr/libexec/java_home -v 1.8` Now run java -version

Advertisements

Downloading Files using Camel and SFTP

In this example, we will download files from a Server using SFTP and store them in a local directory. Create a Maven Project Create a Maven Project groupId: com.skills421.examples.camel artifactId:  CamelBasics version: 0.0.1-SNAPSHOT Update Pom.xml pom.xml Edit FTPCopier.java Edit ftpCopier.java to add the method sftpDownload as follows: FTPCopier.java Edit FTPCopierTest.java Edit FTPCopierTest.java to @Ignore the ftp test … Continue reading Downloading Files using Camel and SFTP

Downloading Files using Camel and FTP

In this example, we will download files from a Server using FTP and store them in a local directory Create a Maven Project Create a Maven Project groupId: com.skills421.examples.camel artifactId:  CamelBasics version: 0.0.1-SNAPSHOT Update Pom.xml pom.xml Edit FTPCopier.java Create the FTPCopier.java code as follows: FTPCopierTest.java Note that you will need to define your own FTP Server to … Continue reading Downloading Files using Camel and FTP