Install + launch java


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Install + launch java
# 1  
Old 10-07-2014
Install + launch java

Hi

I want to write a very short bash script for doing the following action (on Ubuntu):

First, install java
Second, launch at a specific time (e.g. 4.30 pm) a java ANT program.

How can I do this?

Last edited by rbatte1; 10-07-2014 at 06:26 AM.. Reason: Correct spelling in title and main body
# 2  
Old 10-08-2014
Is this JAVA system-wide or just under your id?
# 3  
Old 10-08-2014
Hmmm I don't know. I will run it on a Amazon EC2 instance with Ubuntu on it.

By the way, the script should also install Ant.
# 4  
Old 10-09-2014
You could do it in autoexpect and then just rerun the expect script. Launching at specific time sounds like 'at', little sister of 'cron'.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Fedora

Fedora: Uninstall Java JDK 1.8 and install Oracle Java 1.7.15

Hi All, I have just downloaded fedora 27 iso and set it up in virtual box. I want to learn Hadoop so trying to install Apache hadoop. Before all those I have to install Oracle Java 1.7.15 (as mentioned in the Apache hadoop page). Can you please help me how to Uninstall currently installed... (6 Replies)
Discussion started by: TechGyaann
6 Replies

2. Gentoo

Java install

Hi Guys I have installed latest java version 8.0, but now when I use java -version I still get an old version. How do I correct this ? Thanks in advance... (3 Replies)
Discussion started by: Phuti
3 Replies

3. Solaris

Java Install Failure

Hello Everyone, I am trying to install a new version of Java on Solaris 10 but I am unable to install. The server is a SPARC 64bit machine. I downloaded Java SE Runtime Environment 8u101 (jre-8u101-solaris-sparcv9.tar.gz), then changed the directory to /usr/java. Copied the tar.gz... (5 Replies)
Discussion started by: dhiralall
5 Replies

4. Solaris

How to install java (jdk-74) on solaris 10?

What kind of required java type for installed? which address link, i need to download the package. i have zcat this version jdk-7-solaris-sparc.tar.Z and then installed each the packages with pkgadd -d . , but my java version still java full version "1.5.0_24-b02".is it need doanything after... (1 Reply)
Discussion started by: aagusman
1 Replies

5. Debian

Java won't install

I am using VirtualBox if this helps. btw, I am quite new, and have just started using Linux (It is pretty good I guess) So, to use the self extracting binary-file "jre-6u22-linux-i586.bin" for Java so I can play on FICS (Free Internet Chess server) I had to use the consol command "chmod a+x... (1 Reply)
Discussion started by: ClarkN
1 Replies

6. Debian

How to install Java in Debian Lenny

Hi all im trying to install Java in Debian lenny with apt-get install but can find the packages...anyone can help me on this one? thanks (2 Replies)
Discussion started by: ro0t3d
2 Replies

7. AIX

Trying to install Java 5

I am not an AIX admin, but the guy that usually is has left and I am now the default person to do this stuff (scary for them). I am trying to install Java 5 on AIX 5.3, and am getting MISSING REQUISITES: The following filesets are required by one or more of the selected filesets listed... (5 Replies)
Discussion started by: Kirath
5 Replies

8. Solaris

java install sheild

dear all there is any one can help me in a document about java install sheild in solaris (0 Replies)
Discussion started by: murad.jaber
0 Replies

9. AIX

License issue on Java install

I'm a AIX novice - please bear with me.. I'm trying to install Java14_64_sdk on an Aix 5.2 server (P690) I've copied the ff files to a separate directory: Java14_64.ext Java14_64.license Java14_64.sdk I then run smitty installp, point to the above directory and choose the Java14_64.sdk... (0 Replies)
Discussion started by: morgan_g
0 Replies
Login or Register to Ask a Question