NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
pelutxe
Joined: 20 May 2012 Posts: 1
|
Posted: Sun May 20, 2012 5:36 pm Post subject: netbeans and xuggle, problem with JAR |
|
|
Hi, I'm pretty new to both Netbeans and Java and right now I'm trying to test a small video player using Xuggle in order to use it into a bigger application.
I'm using Netbeans 7.0.1 and JDK 1.6 and I have imported the xuggle-xuggler-5.4.jar using the Properties>Libraries>Add JAR/Folder.
The code is pretty simple and I copied it from Xuggler's wiki, so I guess it should be alright, it goes as follows:
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
IContainer container = IContainer.make();
if (container.open("input.flv", IContainer.Type.READ, null)<0)
throw new IllegalArgumentException("Could not find");
}
Basically it's just a JFrame with a Button that theoretically should pop up a player window with the input.flv video when pressed.
Now, my problem is that I get the following error message:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
I really don't know what I'm doing wrong. As far as I know that exception has to do with classpath issues, which should be related with the xuggler JAR I've imported, but I don't if that's really the problem and, if it was, I don't know how to fix it. Could anyone please help me here?
Thanks a lot
I attach project print with the libraries and the classes. The JFrame and the button are both in the PruebaPuntero.java file.
[/img]
| Description: |
|
| Filesize: |
23.47 KB |
| Viewed: |
826 Time(s) |

|
|
|
| Back to top |
|
 |
Javier Ortiz Posted via mailing list.
|
Posted: Tue May 22, 2012 12:42 pm Post subject: netbeans and xuggle, problem with JAR |
|
|
Looks like Xuggle has some dependencies. Try adding log4j jar to your application. It should address that error.
Senior Software Quality Engineer
ArthroCare Corporation
7000 William Cannon Drive
Austin, TX 78735
Phone: 512-358-5996
email: address-removed
-----Original Message-----
From: pelutxe [mailto:address-removed]
Sent: Sunday, May 20, 2012 12:37 PM
To: address-removed
Subject: [nbusers] netbeans and xuggle, problem with JAR
Hi, I'm pretty new to both Netbeans and Java and right now I'm trying to test a small video player using Xuggle in order to use it into a bigger application.
I'm using Netbeans 7.0.1 and JDK 1.6 and I have imported the xuggle-xuggler-5.4.jar using the Properties>Libraries>Add JAR/Folder.
The code is pretty simple and I copied it from Xuggler's wiki, so I guess it should be alright, it goes as follows:
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
IContainer container = IContainer.make();
if (container.open("input.flv", IContainer.Type.READ, null)<0)
throw new IllegalArgumentException("Could not find");
}
Basically it's just a JFrame with a Button that theoretically should pop up a player window with the input.flv video when pressed.
Now, my problem is that I get the following error message:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
I really don't know what I'm doing wrong. As far as I know that exception has to do with classpath issues, which should be related with the xuggler JAR I've imported, but I don't if that's really the problem and, if it was, I don't know how to fix it. Could anyone please help me here?
Thanks a lot
I attach project print with the libraries and the classes. The JFrame and the button are both in the PruebaPuntero.java file.
[/img]
Attachments:
http://forums.netbeans.org//files/captura_103.jpg
**********
The information contained in this e-mail message, together with any
attachments thereto, is intended only for the personal and confidential
use of the addressee named above. The message and the attachments
are or may be privileged or protected communication. If you are not the
intended recipient of this message, or authorized to receive it for the
intended recipient, you have received this message in error, and you
are not to review, use, disseminate, distribute or copy this message,
any attachments thereto, or their contents. If you have received this
message in error, please immediately notify us by return e-mail
message, and delete the original message.
Pursuant to Circular 230 issued by the United States Treasury
Department and relating to practice before the Internal Revenue
Services, any comment or opinion in this communication relating to a
federal tax issue is not intended to be used, and cannot be used, by a
taxpayer for the purpose of avoiding tax-related penalties that may be
imposed on the taxpayer.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|