
-----------------------------------
riveryu
Mon Aug 17, 2009 7:33 pm

How do I package my program?
-----------------------------------
I made a program that uses Java Media Framework (JMF) which seems to be separate from JDK. I had to download JMF.
How do I make a package that could be ran from any computer? The program also uses a .avi video.
My program is a JApplet, I don't know if this matters.

-----------------------------------
btiffin
Tue Aug 18, 2009 11:08 pm

RE:How do I package my program?
-----------------------------------
You want to look at Jars.

http://java.sun.com/docs/books/tutorial/deployment/jar/

Cheers

-----------------------------------
riveryu
Thu Aug 20, 2009 11:21 am

RE:How do I package my program?
-----------------------------------
I know about Jars. However, I am using JMF, and when  I tried to run my app on another computer without JMF, it crashed. 

I don't want people having to install JMF to run my app. I'm trying to find a solution to this problem( yes, i googled it ).

Thanks

-----------------------------------
Vermette
Fri Aug 21, 2009 9:14 am

RE:How do I package my program?
-----------------------------------
There are utilities out there to bundle any external dependencies along with your application into a single JAR.

jarjar:
http://code.google.com/p/jarjar/

One-JAR:
http://one-jar.sourceforge.net/

You should be fine in the case of the JMF, but if you need to do this in the future make sure you're not violating any licences with those external dependdencies.

Hope this helps.

-----------------------------------
riveryu
Tue Aug 25, 2009 11:26 pm

RE:How do I package my program?
-----------------------------------
Thanks guys, my problem is solved. Jared.

-----------------------------------
Vermette
Wed Aug 26, 2009 2:13 pm

Re: RE:How do I package my program?
-----------------------------------
but if you need to do this in the future make sure you're violating any licences with those external dependdencies.

Oh man, that's a great typo I made there!  Can't edit the post either...

-----------------------------------
btiffin
Wed Aug 26, 2009 8:28 pm

RE:How do I package my program?
-----------------------------------
Sorry, but googlin' Jared didn't do it for me.  ;)  And I don't feel like wading through the hits on jared java jar bundle

Do you simply mean the app has been Jar'ed?  Is Jared a Jar builder?

Just for my own future reference.

Cheers

-----------------------------------
riveryu
Fri Aug 28, 2009 10:19 am

RE:How do I package my program?
-----------------------------------
By "Jared", I meant made into a jar.

Just on a side note for people out there, JMF is an api dealing with media files like audio/video. From my experience and another article i read, don't use JMF if your gonna have Java play the latest media file formats. JMF's file support is very outdated. The project seems to be knocked into a coma by Sun.

-----------------------------------
btiffin
Sat Aug 29, 2009 8:21 am

RE:How do I package my program?
-----------------------------------
Thanks riveryu.

Cheers
