Java comes with lots of utilities. In this tutorial we will go over simplest way to generate log files using SimpleFormatter and XMLFormatter. On Crunchify, we have published few tutorials about logging some time back. Configured log4j.properties right way Ready to use Log4j utility for your production project Create your own logging level Today I… […]
Microsoft Azure Translator Text API Java Tutorial (v3.0) & Azure SignUp Process
Have you ever wondered how realtime text translation works? Google, Microsoft Machine learning algorithm is one of the best out there. With the popularity of Google Home, Amazon’s Echo, Cortana and Alexa I’m sure you know how those home gadgets translates your voice and questions in realtime and gives you an answer. Same way realtime… […]
How to fix java. lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext Exception?
Are you facing java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present exception? Today while running my RESTful service on my Eclipse I noticed javax.xml.bind.JAXBContext error in my eclipse console. The same program was running perfectly fine since last year without any issue. I started thinking about the changes happened on my local environment. There wasn’t any code checkin happened… […]
Java 11 and How to fix java.lang. TypeNotPresentException: Type javax.xml.bind.JAXBContext Exception?
Are you facing java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present exception? Today while running my RESTful service on my Eclipse I noticed javax.xml.bind.JAXBContext error in my eclipse console. The same program was running perfectly fine since last year without any issue. I started thinking about the changes happened on my local environment. There wasn’t any code checkin happened… […]
Getting Ready for Java 11/JDK 11 and Deprecated Java EE Modules JAXB, JAX-WS, JAF, JTA, CORBA
Hello all! It’s time for us to upgrade to Java 11. Sometime back Java 11 was launched on September 25, 2018. Today we got chance to upgrade our JDK to Java11 on my Macbook Pro. Do you have any of below questions? All You Need To Know For Migrating To Java 11 It’s time! Migrating… […]
Memcached Java Client Tutorial using whalin.Memcached-Java-Client and googlecode.xmemcached Libraries
This is continued tutorial on Memcached which is distributed memory object caching server. Here are previous two tutorials before you go over this one 🙂 . How to Install and Configure Memcached Memcached Java Client Tutorial using net.spy.spymemcached Library In this tutorial we will go over Memcached Java Client using below two approaches: com.whalin.Memcached-Java-Client Library com.googlecode.xmemcached… […]
Memcached Java Client Tutorial using net.spy.spymemcached Library
Few days back I’ve written an article on how to setup and start MemCached Server locally on you Mac OS with few simple steps. There are three different ways to create Memcached Java Client. net.spy.spymemcached method com.whalin.Memcached–Java–Client method com.googlecode.xmemcached method In this tutorial we will go over how to write simple Java Client using net.spy.spymemcached library…. […]
How to stop/kill long running Java Thread at runtime? timed-out -> cancelled -> interrupted states
Have you ever wondered how to kill long running Java thread? Do you have any of below questions? Kill/Stop a thread after certain period of time Killing thread after some specified time limit in Java How to Kill a Java Thread How To Stop A Thread In Java With An Example how to stop thread in java […]
PayPal Java SDK Complete Example – How to Invoke PayPal Authorization REST API using Java Client?
PayPal is one of the best online Payment transfer service out there. There is no doubt it’s growing day by day with crazy numbers. I personally have hands on experience with PayPal Java Developer APIs and would like to share my experience with all my Crunchify readers. In this tutorial we will use PayPal Java […]
In Java best way to Convert File into a Bytes (Array of Bytes)
Sometime back I’ve written some articles on convert Byte[] Array To String, Convert Char Array to String, convert String to Char Array, convert Arrays to Set, etc. In this tutorial we will go over on how to convert any file to Array of Bytes in Java? We will scan this file: <?php // Silence is golden. This is Crunchify’s […]