Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do I package my program?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
riveryu




PostPosted: Mon Aug 17, 2009 7:33 pm   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
btiffin




PostPosted: Tue Aug 18, 2009 11:08 pm   Post subject: RE:How do I package my program?

You want to look at Jars.

http://java.sun.com/docs/books/tutorial/deployment/jar/

Cheers
riveryu




PostPosted: Thu Aug 20, 2009 11:21 am   Post subject: 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




PostPosted: Fri Aug 21, 2009 9:14 am   Post subject: 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




PostPosted: Tue Aug 25, 2009 11:26 pm   Post subject: RE:How do I package my program?

Thanks guys, my problem is solved. Jared.
Vermette




PostPosted: Wed Aug 26, 2009 2:13 pm   Post subject: Re: RE:How do I package my program?

Vermette @ August 21st 2009, 09:14 wrote:
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




PostPosted: Wed Aug 26, 2009 8:28 pm   Post subject: RE:How do I package my program?

Sorry, but googlin' Jared didn't do it for me. Wink 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




PostPosted: Fri Aug 28, 2009 10:19 am   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
btiffin




PostPosted: Sat Aug 29, 2009 8:21 am   Post subject: RE:How do I package my program?

Thanks riveryu.

Cheers
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 9 Posts ]
Jump to:   


Style:  
Search: