I need to find out how to set up classpath. I am rather new to programing and I have never been doing this before, so I would really apreciate any help I can get =)
I have installed JMF and FOBS. But i am stuck on how to set classpath. JMF is installed in folder "c:\Program Files (x86)\JMF2.1.1e and FOBS in folder "c:\Program Files (x86)\Fobs4JMF". Due to manual, now I am to "Include $FOBS_ROOT/dist/jmf/fobs4jmf.jar into your java classpath environment variable", but I am not really sure how to do that. I am really sorry for bothering, but I cant figure this out without help.
Thanks for reading
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the end, I have managed to set CLASSPATH, correctly i hope. But i am still not able to add plugins, codecs etc. Everytime i try, i get this: java.lang.ClassNotFoundException. I have copied the .dll file into c:\Windows\System32 and even tried to copy the jar files from the fobs folder into myJmfFolder\lib along with .dll and properties file, but the only result was
"Fobs4JMF - Native shared library NOT found
java.lang.UnsatisfiedLinkError: no fobs4jmf in java.library.path" i tried to google it out, and it seems that many people has similar issue, but as far as a solution is concerned I was not able to find any.
My OS is Windows 7(64 bit) and java 1.6.0_25, 64bit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I have accidentally figured this out. Along with help of Netbeans IDE.
Create new project and two java classes, use the code for example from here. http://www.deitel.com/articles/java_tutorials/20060422/PlayingVideowithJMF/
as a next step, you should install this http://en.sourceforge.jp/projects/sfnet_fobs/downloads/fobs4jmf%20binaries/Fobs4JMF-0.4.1/fobs4jmf-0.4.1-win32-installer.exe/
Please keep in mind, it is for windows, but I guess, that downloading tar.gz file from https://sourceforge.net/projects/fobs/files/fobs4jmf%20binaries/Fobs4JMF-0.4.2/
should do the trick too. Nevertheless, after unpacking/installing fobs, you will have to right click your project ->properties->libraries icon in the top left corner ->then click add JAR/folder -> browse to the folder, where you unpacked or installed fobs, and pick fobs4jmf.jar and jmf.jar and add them.
As a last step, you will have to copy the fobs4jmf.dll file into the folder, where your project is. Do this manually, i.e. with total commander, win explorer etc. Then launch the code, and enjoy =) It should work. If anything goes wrong, please feel free to contact me, cause I am not really sure, If these steps are sufficient. During last four days, which I have spent trying to get it work, the only thing I didnt do, was sacryfying cattle to gods, so it is possible that this works because of something i have done before, though I dont think so =) Hope this helps. To sum it up.
In netbeans ide,
1)Add fobs4jmf.jar to your project(form fobs folder)
2)add jmf.jar to your project(from fobs folder)
Manually
3) copy fobs4jmf.dll into your project folder
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you create new project in NetBeans, a new folder is created. In my case, its in c:Users\Kubick\Documents\NetbeansProjects\MyProjectFolder. So you just copy "fobs4jmf.dll" into that folder =) To your second question. When you add the .jar files with NetBeans interface, it automatically add these into classpath, so you dont have to worry about it at all. I hope this helps
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tks 4r ur reply…. did this works 4r u..do u have any sample code of this actually I dont have no idea about this I was newly joined my project leader assingnd mee to work on jmf and the main requrement is to convert input file to MP4.Please help regarding this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
good evening,
i am really sorry, but i cant help you with that :( I am using it only as a really simple player, so I can not tall you how to do that :( Good luck though, hope you will figure it out. Try browse this forum or google, i think I saw something about converting here or on the internet, but dont remember, sorry about that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good evening,
I need to find out how to set up classpath. I am rather new to programing and I have never been doing this before, so I would really apreciate any help I can get =)
I have installed JMF and FOBS. But i am stuck on how to set classpath. JMF is installed in folder "c:\Program Files (x86)\JMF2.1.1e and FOBS in folder "c:\Program Files (x86)\Fobs4JMF". Due to manual, now I am to "Include $FOBS_ROOT/dist/jmf/fobs4jmf.jar into your java classpath environment variable", but I am not really sure how to do that. I am really sorry for bothering, but I cant figure this out without help.
Thanks for reading
In the end, I have managed to set CLASSPATH, correctly i hope. But i am still not able to add plugins, codecs etc. Everytime i try, i get this: java.lang.ClassNotFoundException. I have copied the .dll file into c:\Windows\System32 and even tried to copy the jar files from the fobs folder into myJmfFolder\lib along with .dll and properties file, but the only result was
"Fobs4JMF - Native shared library NOT found
java.lang.UnsatisfiedLinkError: no fobs4jmf in java.library.path" i tried to google it out, and it seems that many people has similar issue, but as far as a solution is concerned I was not able to find any.
My OS is Windows 7(64 bit) and java 1.6.0_25, 64bit
Well, I have accidentally figured this out. Along with help of Netbeans IDE.
Create new project and two java classes, use the code for example from here. http://www.deitel.com/articles/java_tutorials/20060422/PlayingVideowithJMF/
as a next step, you should install this http://en.sourceforge.jp/projects/sfnet_fobs/downloads/fobs4jmf%20binaries/Fobs4JMF-0.4.1/fobs4jmf-0.4.1-win32-installer.exe/
Please keep in mind, it is for windows, but I guess, that downloading tar.gz file from https://sourceforge.net/projects/fobs/files/fobs4jmf%20binaries/Fobs4JMF-0.4.2/
should do the trick too. Nevertheless, after unpacking/installing fobs, you will have to right click your project ->properties->libraries icon in the top left corner ->then click add JAR/folder -> browse to the folder, where you unpacked or installed fobs, and pick fobs4jmf.jar and jmf.jar and add them.
As a last step, you will have to copy the fobs4jmf.dll file into the folder, where your project is. Do this manually, i.e. with total commander, win explorer etc. Then launch the code, and enjoy =) It should work. If anything goes wrong, please feel free to contact me, cause I am not really sure, If these steps are sufficient. During last four days, which I have spent trying to get it work, the only thing I didnt do, was sacryfying cattle to gods, so it is possible that this works because of something i have done before, though I dont think so =) Hope this helps. To sum it up.
In netbeans ide,
1)Add fobs4jmf.jar to your project(form fobs folder)
2)add jmf.jar to your project(from fobs folder)
Manually
3) copy fobs4jmf.dll into your project folder
Hi,
how to copy fobs4jmf.dll in to my folder..plz explain mee ..i was not understood that.
hi,
My another doubt was will i follow the step directly which u posted above with out setting the classpath.lyk(1 nd 2 above)…….
When you create new project in NetBeans, a new folder is created. In my case, its in c:Users\Kubick\Documents\NetbeansProjects\MyProjectFolder. So you just copy "fobs4jmf.dll" into that folder =) To your second question. When you add the .jar files with NetBeans interface, it automatically add these into classpath, so you dont have to worry about it at all. I hope this helps
hi,
Tks 4r ur reply…. did this works 4r u..do u have any sample code of this actually I dont have no idea about this I was newly joined my project leader assingnd mee to work on jmf and the main requrement is to convert input file to MP4.Please help regarding this.
good evening,
i am really sorry, but i cant help you with that :( I am using it only as a really simple player, so I can not tall you how to do that :( Good luck though, hope you will figure it out. Try browse this forum or google, i think I saw something about converting here or on the internet, but dont remember, sorry about that.