• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to install JMF?  RSS feed

 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a 32 bit jdk 7 on WIndows 7. Currently I am using Spring. How can I install JMF and use it with Spring? I tried to download the jmf and installing it using the executable jar file. The CLASSPATH was automatically set. My jdk did not come with javax.media package but the jar file for jmf when extracted shows the javax.media package. Still when I'm trying to use the classes present in the javax.media package, Spring is finding itself unable to resolve the imports related to javax.media package. It also says that the javadocs for the media API are missing I tried to attach the source by directly providing the path of the jmf executable jar i.e. C:\Java\lib\ext. Nothing happened. I then extracted the JMF jar file to a folder on desktop and copied the media folder into C:\Java\Src\Javax folder and attached this path as a source for the media API. Still nothing happened. Please tell me a simple solutionto overcome this problem.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not Spring that is not finding those classes - it's the JRE, probably in the shape of the "javac" or "java" executables.

I don't think there's anything Spring-specific you need to do. All the JMF jar files need to be in the classpath, regardless of how the code is run. How that happens depends a bit on how the code is run, what kind of application this is, and how you want to install it (for all apps to see permanently, or just temporarily available).

Since you mention "attaching the javadocs" - that sounds like you're using an IDE. Is that the case? If so, the process could be yet different.
 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jdk did not come with JMF. I'm trying to install the jmf permanently for the application I'm coding for now and for future use as well. The current application is a Gesture Recognition System for which I need to capture videos. I was trying to use JMF for the same purpose. I'm using the Eclipse IDE as well as the Spring framework but both of them are showing the same error. For your convenience, the location of my jdk is c:\java\jdk1.7.0_45 and the JRE is located at c:\java\jre. I have already set the path of their bins in the environment variables. I installed the JMF, using the executable jar file, C:\Program Files. The CLASSPATH was automatically set. An executable jar began to be shown in my c:\java\lib\ext folder. Both Eclipse and Spring came with source files for APIs already attached with them. Unfortunately none of them have the docs for the Media APIs. Coud you please elaborate the JRE problem that might be there. Can you tell me how to solve this problem step by step?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have already set the path of their bins in the environment variables.

Any executables would be specified in the PATH, not the CLASSPATH, so that makes no difference.

I'm not too familiar with the setup of Windows JREs, but the ultimate tutorial and reference to adding extension libraries is http://docs.oracle.com/javase/tutorial/ext/basics/install.html

Anything to do with source files or javadocs must be set up in whatever IDE you use, and is independent of installing the libraries.
 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I appreciate your response. The bins I was talking about are the bins of the JDK and the JRE. The CLASSPATH was automatically set when I installed the JMF using the executable jar. Do I need to set the path variable for the JMF executable jar. I have installed it at a location different from my JDK. Does that matter? Is JMF supported by specific JREs? If so what version should I use. The JRE I have got installed with the JDK itself.
Please help me out with this. I am really stuck.
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could not understand from your post if you're getting compile error or runtime error.

If compile error, did you add the jar file to your app (like other jars of spring etc.)?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said, the PATH has nothing to do with this. It's the CLASSPATH that is involved - does it include all the jar files?

Also, what have you learned from the link I posted about where the jar files need to go?
 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry......I could not refer to that link because I'm in my office right now but I'll have a look at it and then get back to you. I will have to check whether the CLASSPATH includes all the jars. Thank you for your response.

 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I tried adding the jmf.jar file in both Eclipse and Spring but nothing happened. As the IDEs could not find the javadocs for the Media API, I also tried to attach the source by giving the path of the folder where the jmf.jar is located i.e. C:\Java\lib\ext
I also tried to extract the jar file and then copy the Media folder from it and pasted it in C:\Java\src\javax because my IDE was unable to locate the javax.media package but still I got no result. If you can tell me a step by step solution, I can give it a fresh start. I appreciate you response. Thank you.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I advise to solve the issue of the missing classes first, because that is what is holding you up right now.

That the IDE does not have the javadocs or the source files is an inconvenience, but not germane to the issue. you should start a new topic about that in the IDE forum.

I would also urge you to talk to your manager about your inability to access the oracle.com site. For a Java developer that is a major impediment to productivity that he needs to fix ASAP. You are apparently allowed to access JavaRanch/CodeRanch, after all.
 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are absolutely right but currently I am working in a different industry. I use java on my personal system. How can I resolve the issue of missing classes. The javax.media package did not come along with my jdk. I am trying to install it using JMF. When I extract the JMF jar file, I can see the javax.media package in one of the folders. I even tried to copy and paste the media folder C:\Java\src\javax and then specify the src folder as a source for the javadocs....but it did not work. Can you tell me a step by step solution so that I can give it a fresh start?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I resolve the issue of missing classes.

I've asked before whether the CLASSPATH contains those jars; you have not answered that. I've also asked what you have learned from the link I posted earlier; there is no point in me writing down here everything that you can read there.

The javax.media package did not come along with my jdk. I am trying to install it using JMF. When I extract the JMF jar file, I can see the javax.media package in one of the folders. I even tried to copy and paste the media folder C:\Java\src\javax and then specify the src folder as a source for the javadocs....but it did not work. Can you tell me a step by step solution so that I can give it a fresh start?

Don't extract any jar files, just put them where they need to go - maybe in the CLASSPATH (which may need to be adapted to accommodate them), maybe in one of the extension lib dirs. About both points, see above. As to any source or javadoc files, simply forget about them, they have nothing whatsoever to do with the problem at hand. (I have said this 3 times now, I will not mention it again.)
 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey....I told you my problem. I'll check the site and the jar files included in the CLASSPATH in the evening when I get home and then get back to you. Thank you for your help.
 
Mayuresh Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thank both of you for your responses. Can anybody please tell me the step by step process of capturing a video in Java? I also want to know, how I can extract particular frames from a streaming video?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!