1

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.

Thor
  • 6,545
  • 13
  • 61
  • 94
wojciech_rak
  • 2,120
  • 2
  • 20
  • 28

2 Answers2

2

So you get compile time error ? The only problem that is happeing is your Jar is not in the Build Path. Please check How to add jar in netbeans

Community
  • 1
  • 1
Amit Deshpande
  • 18,731
  • 4
  • 43
  • 70
2

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.

Community
  • 1
  • 1
NoNaMe
  • 5,686
  • 30
  • 78
  • 104