Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to create a video display using netbeans. For that I have downloaded jmf-2_1_1e-alljava.zip and added to library(Tools->Library->path of jmf.jar)

But I am still getting error while import javax.media. Also I tried "java JMStudio" in command.
Then I am getting as,
Exception in thread "main" java.lang.NoClassDefFoundError: JMStudio
Caused by: java.lang.ClassNotFoundException: JMStudio
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: JMStudio. Program will exit.

How to rectify this error?
Please guide me.
Thank you.
Posted
Updated 4-Sep-14 21:22pm
v2

1 solution

You do not install it.

Go to your file explorer, add the lib to your application and add the reference in the project settings.
You might need to mark that "export" option, as the lib will otherwise not be part of the compiled code.

http://www.oracledistilled.com/netbeans/adding-java-libraries-to-netbeans-6-9/[^]
 
Share this answer
 
Comments
Kavi Sro 9-Sep-14 0:15am    
Thank you. I got it.
Now I am trying to run video file using JMF.jar
But I couldn't able to open video.
Please guide me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900