I’ve downloaded the JAVA Eclipse IDE and started learning Java. I have a good experience with PHP, C, C++ and AS3 programming languages so the concept of OOP is known to me, now I’ve decided to learn and use Java.
I’d like to test some examples of Apache’s MINA framework but I still can’t figure out how to set up the MINA framework with Eclipse. First I’ve tried to copy the whole MINA 2.0 RC1 directory to my work directory, but now how can I use the framework?
Since I’m new to Java, I don’t understand very well the directory structure. In Eclipse I’ve created a new Java Project with the name “org.myself.server” since I guess this is the way code is structured in Java. Then I’ve created a package with the same name and the Class “TestServer” inside the package. I can code inside the main function of the class, compile, run and everything like a charm. But how do I use MINA inside my TestServer class? How do I import MINA and test the echoback server example?
In Eclipse you should modify the project properties to place the appropriate MINA jars on the project build path. Then, you should be able to use the MINA classes and it should build and run correctly.