I am working online application and while working , some of my ip are banned . After that i came to know about Tor and i want to know how to add the tor services in java applications.
Please do needful on this.
You could try and use jtorctl which is a
A Java library for controlling a Tor instance via its control port. It is used in the Android app Orbot as well as others.
Orchid is a Tor client implementation and library written in pure Java.
It was written from the Tor specification documents, which are available here.
Orchid runs on Java 5+ and the Android devices.
There are also other solutions written but it is written Python such as:
Stem is a Python controller library that you can use to interact with Tor. With it you can write scripts and applications with capabilities similar arm.
txtorcon is a Twisted-based Python asynchronous controller library for Tor, following control-spec. This would be of interest to anyone wishing to write event-based software in Python that talks to (and/or launches) a Tor program.
They seems to be more comprehensive than
jtorctl. If the Java libraries doesn't work, maybe you can integrate these Python libraries into your Java project using Jython. Goodluck!