Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-11-2013, 12:47 PM   #1
LQ Newbie
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Linux application to install...

Hi Guys,
I am completely new to Linux.
I have the following requirement.

I need to create an installer which:
1. Installs java
2. Installs Adobe Reader
3. Copy paste's my application to a certain location.
4. Creates a desktop icon to launch my java based application.

I tried using installjammer to accomplish task number 3 and 4, however, the desktop icon it creates does not launch my .sh which in-turn launches the jar file.

How do I go about creating this ?

Old 03-12-2013, 05:55 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 136Reputation: 136
Welcome to LQ sanket2612!
I don't get what you intend to do. Do you want to dístribute a java program that needs Adobe Reader?

Depending on the distribution of linux there are different ways to install java or other programs. If you explain your intention more detailed then it will be more likely that someone can help you.
Old 03-12-2013, 07:54 AM   #3
LQ Newbie
Registered: Mar 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi J-Ray,
Thanks for the reply
Here is what I need to do:

I have a java application which is basically a simple http server. Once launched, it starts listening at port 8080 and launches the default browser and points to http://localhost:8080/index.html.
This html page has links to pdf, videos, flash files etc that I need to display.
All these files will be shipped with the jar and will be encrypted. The http server will decrypt these files and post them to the output stream.
I am using java, as this needs to run on Windows as well.
I am able to package it well for windows and I need to package it for Ubuntu.
Old 03-12-2013, 08:42 AM   #4
LQ Newbie
Registered: Jun 2004
Location: Denton, Texas
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 5
bash shell scripts and gzip.
Just gzip and unzip your files to the appropriate directory.
You could tie this to cron and have the bash shell do this at timed intervals.
It will take you manually coding he shell script, but that's not too complicated.
Old 03-12-2013, 08:58 AM   #5
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 136Reputation: 136
Here is a link to info about packaging for debian based distributions as ubuntu

You may keep in mind that linux users often use other programs than AdobeReader for viewing pdf, like GhostView or similar. There are a couple of browers that are not very well known outside of the linux world, like epiphany. If you want to write an install script that keeps care of the dependencies you may want to get familiar with
apt-get install

Hope this helps

Last edited by j-ray; 03-12-2013 at 09:06 AM.
Old 03-12-2013, 01:24 PM   #6
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 419

Rep: Reputation: 82
If you're talking about offering this as some kind of install package, I think you're barking up the wrong tree. Linux systems don't allow the kind of access you need to do this anything like transparently. There would have to be user interaction to get root access to do this. People generally don't like giving root access without knowing exactly why. Both Java and Adobe Flash have security concerns and many users don't allow their installation. Also, different distributions have different ways of handling installations of these components, if they are even available on a given distribution. Some people only use free software, and Java and Flash are both encumbered, to say the least. They may not even be in the repositories the end use has enabled. You would do far better to package your program and have it check for prerequisites like Java or Flash capability, then give the end user the option of what to do.

As far as the Windows side goes, that is a completely different environment, you can't build any kind of installer that's going to run on both Windows and Linux systems, they're too different. A lot of Windows users don't have Java installed, either, and it's kind of a cumbersome install anyway. A sure way to annoy your end users is to offer some kind of program that tries to install a bunch of different things at once. I know it annoys me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux R-U-On / Serveron Application Refuses to Install xioc1138 Linux - Software 4 02-23-2013 10:39 PM
[SOLVED] Install application on Linux Centos rewards Linux - Newbie 5 12-25-2010 06:20 AM
how can i install a application in red hat linux awnishkumar Linux - Desktop 3 11-06-2009 12:31 PM
Help - Linux application install Alex@Synergy Linux - General 5 08-22-2007 09:30 AM
How to install a windows application in Linux ? wlaw Linux - Software 8 09-18-2004 08:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration