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,607
  • 13
  • 62
  • 96
wojciech_rak
  • 2,276
  • 2
  • 21
  • 30

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
  • 19,001
  • 4
  • 46
  • 72
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
  • 6,020
  • 30
  • 82
  • 110