Search code examples
javajspservletsmp4parser

Use external project in JSP


I downloaded a project from Google Code named 'mp4parser'.

Now I want to use it in my JSP page (specifically in a servlet). How do I import it?

I use Netbeans.

In my project's properties I added a Library (Add JAR/Folder).

Then, in my servlet code I wrote

import com.googlecode.mp4parser.*;

But I get an error 'package don't exist'.

SOLVED

First I had to compile the mp4parser project, and then MANUALLY indicate the JAR file. Netbeans couldn't find it on its own.


Solution

  • You should create jar of the project you downloaded and the add it to the class path and then you will be able to use it.