Running Application developed using JMF
I have made a small mp3 player using jmf and the mp3 plugin. Now since I have installed jmf and the mp3 plugin I am able to run the jar file. But when I run it in some other system then it doesn't run...
Can you guide me how should I perhaps send my project to somebody else ensuring that the jmf.jar files and all .jar files that are necessary for the player to run which are under my application folder\lib then on running they are used for the client as well who has the normal jre installed on his system?
What needs to be done in order for the user to be able to run my application without any problems?
Should I edit the classpath in the batch file calling java source.MyPlayer
?
# 1
...
> What needs to be done in order for the user to be
> able to run my application without any problems?
The easiest way for the end-user, is to launch
using web-start. Web-start launch can work
off the internet, or a disk.
Here is an example that simply provides the
JMStudio application of the JMF.
http://www.javasaver.com/testjs/jmf/#test3
Note, of course, that any installation method
has its 'failings' in that there will always be
PC's that lack both the Java Plug-In, and the
permissions to install it.
Otherwsie, a well designed web-start based
installation is a reliable and user-friendly way
to install the JMF.
# 2
No but all the relavant jmf jar's are there in my application's lib folder...isn't there a way that the user even if he doesn't have jmf be able to run them as the classes are there in my lib folder after all...?
# 3
> No but all the relavant jmf jar's are there in my application's lib folder...
Yes, I understand that, but I am not sure I
understand the relevance of you mentioning it.
Those jars (or just the classes relevant to playing
the media types of interst - see customizer.jar)
need to be on the classpath of the application
on the client's machine - for the JMF and your
project to run on the client's machine.
There are a variety of ways to get the classes
to the user, one is to get them to install the
JMF first, then your application, another is to
launch the whole lot using web-start.
> isn't there a way that the user even if he doesn't have jmf
> be able to run them as the classes are there in my lib
> folder after all...?
...sure. The user can always come over to your place!(!!)
# 4
:) Thanks for you reply again, but I might add, right in my first post I mentioned the fact that can I change his classpath and then make sure that his classpath has the correct path for the jmf jar's?
Well if just by changing the client's classpath will work then ofcourse I can do that by making either a shell script (for linux) or a batch file (for windows) and then make sure he get's things straight...
What I was also wondering about is the fact that can I maybe perhaps export my application into a jar file (using eclipse) such that the classpath is set for the jar file and hence when the user will double click on the jar file it will work absolutely fine...That's just what I want to know...
Am I thinking correctly or is there something wrong with this idea?It is possible this way right?
# 5
I have to admit, that I was not on clear on the fact
that you have direct access and 'admin. privileges'
on the end user's machine.
Based on that new understanding, I can add..
> It is possible this way right?
Most probably, unless your local (development)
set-up is depending on some settings enabled
at JMF installation, it would (as you seem to already
understand) require setting up classpaths & such
on the client's computer.
Having said that. It is an odd, quirky, and
not very 'scalable' way of going about the
install, and I doubt many people will have
experience (& be able to help) with such
an installation.
# 6
> What I was also wondering about is the fact that can I
> maybe perhaps export my application into a jar file (using eclipse)
Yes. If you are using loose class files at the moment,
that is the first thing that has to change, jar's
are (almost) essential for deployment.
>..such that the classpath is set for the jar file and hence
> when the user will double click on the jar file ..
Generally, if you add a manifest file that identifies
the main() class, it will become 'double click - launch'.
Another way to achieve it, is to launch using
web-start - that is another path you might investigate.
So long as all classes are in that one jar, it
should become a single 'executable' of your
MP3 player, for anyone that already has a
suitable Java plug-in.
>it will work absolutely fine...
Yes, now that I understand the problem better,
and thought about it a little more, it is becoming
clear that this is sure 'doable'.
First, get that Jar happening..
# 7
Mr. Sagar...
I am attempting to accomplish a similar feat with the JMF. I've wrote a small app for audio file conversion. I'm trying to export a jar, and it runs fine on my machine, but fails to run on other machines ( I have admin rights on both machines).
Did you have any success on providing a single jar to run cross-platform?
Jonathan
# 8
> I am attempting to accomplish a similar feat with the JMF. ..
Hope you achieve it. Since you seem to be a
'first time poster', I will offer some tips.
1) Start a new thread titled something like..
'Make small distributable for .aaa to .bbb conversion'
This gets straight to the point of what you are trying
to *achieve* while leaving the means open.
(replace .aaa and .bbb with the file types/compression
types or codecs of interest)
2) Describe exactly which boxes you ticked when
running customizer.jar.
3) Give copy/pasted output of the failure text
(a stacktrace?).
# 9
No I am still trying, somehow I think I will get it, sometimes with determination one can achieve anything, and this seems quite achievable to me...I will definitely post the way if i get it...soon.