How to create a service from a jar file.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to create a service from a jar file.
# 1  
Old 08-28-2009
Data How to create a service from a jar file.

Hi,

I am new to Linux. I have a executable jar file which I need to run even before the user logs in. The problem is since I don't have good information about the services in Linux its very difficult to understand the same topic posted at other forums.

I have tried many things like java service wrapper and reading about /etc/init.d folder but nothing has worked so far.

Please share if someone has any example or experience.

please HELP!

Thankz is advance.

Ankush Pandit.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Getting the version from jar file

Hi, I am trying to retrieve the "Implementation version" from one of the .jar file The command which tried is as below. find /usr/local/platform -name "platform.jar" -exec zipgrep "Implementation-Version:" '{}' \;|awk -F ': ' '{print $2}'I am able to get the version as below 2.9.0-29But... (2 Replies)
Discussion started by: nextStep
2 Replies

2. Programming

Altering a jar file

I have a script I am trying to test and run but it runs against a jar file. I wrote an external property file so it would redirect with my script, but it keeps going in search of the previous property file. Is there any way to externally over write the jar file and if not how do you go about... (7 Replies)
Discussion started by: risarose87
7 Replies

3. Shell Programming and Scripting

Want to write all the jar name in single with delimiter ":" in beween the jar name

Hi All, I am having 7 jar files in a dir. abc like listed below bash-3.00$ cd abc bash-3.00$ ls 123.jar 23wdawd.jar dfsa23.jar dsa.jar wew234.jar adsd234234.jar dfsda423.jarNow i want to assign all this jar files to a variable in the below format ... (6 Replies)
Discussion started by: natraj005
6 Replies

4. Shell Programming and Scripting

Create Jar using shell script

Hi Folks I came up with peculiar requierement ..:) I have to jar special files types only from a number of child folders , and also exactly same as the child file path...sorry i will give an example suppose i have following folder structure # cd HTML/ total 0 drwxrwxr-x 2... (1 Reply)
Discussion started by: johnycage
1 Replies

5. Solaris

Apache 2 doesnt create SMF service at installation

Hello everybody, I intended to use Apache 2 first time on my S10 U7 box. But the package (V2) is not ok for the developpers and they need 2.2.12 somehow. I removed Apache 1.3 and installed 2.2.12 with the stream package which I downloaded from Sunfreeware.com It's running perfectly if I start... (2 Replies)
Discussion started by: shadowfaxxxx
2 Replies

6. Shell Programming and Scripting

Need to capture the service name from tnsnames.ora and create connect string

ghkjkjoj (4 Replies)
Discussion started by: chetankelvin
4 Replies

7. UNIX for Dummies Questions & Answers

down in JAR file

Hello sir, I have created a jar file having some code in java.What it does is that it calls a shell code (a.sh) which is in the same directory. Now my requirement is that I want to jar the a.sh also along with the other files and want to call the a.sh which is now inside the jar file and not... (1 Reply)
Discussion started by: nsharath
1 Replies

8. Solaris

Howto create new service bundle

Hi, I have created a service referring the below link. https://www.unix.com/tips-tutorials/32987-creating-solaris10-service.html Now am able to import and enable the service. I have placed my xml file under /var/svc/manifest/site The service name is <service ... (3 Replies)
Discussion started by: kalpeer
3 Replies
Login or Register to Ask a Question
JH_MANIFEST(1)							    Javahelper							    JH_MANIFEST(1)

NAME
jh_manifest - Adds or/and modifies manifests for jars SYNOPSIS
jh_manifest [debhelperoptions] [options] jar1 ... jarN jh_manifest [debhelperoptions] [options] DESCRIPTION
Javahelper tool to add or update manifests in a jar file. It can be used in two modes. If passed jar files, it will only process these jar files. Otherwise it will update all jar files in the packages it acts on. When processing a package, the debhelper(7) exclude option will make jh_manifest ignore matching jar files. FILES
debian/package.manifest (or debian/manifest) This file consist of a list of jar files and values to add to their manifests. Values in this file will take precedence over values in the original manifest (and command line arguments over values in this file). It is allowed to list a link in this file instead of an actual jar file, provided that the link can be resolved when jh_manifest processes it. If a jar file is listed here cannot be found, jh_manifest will print a warning, unless the jar file has been excluded. As of javahelper >= 0.32, you may add comments in this file. If the line starts with a "#" it is completely ignored. This file is ignored if jh_manifest is passed jar files via command line. OPTIONS
-c classpath, --classpath=classpath Sets the Class-Path attribute of all processed jar files to classpath. If not passed, then the CLASSPATH environment variable will be used in the given jar file do not have a Class-Path attribute. -m class, --main=class Sets the Main-Class attribute to class in all processed jar files. -o options, --javaopts=options Sets the Debian-Java-Parameters to options in all processed jar files. This attribute is used by jarwrapper to start java with extra options (e.g. to make more memory available). -j /path/to/java/home, --java-home=/path/to/java/home Sets the Debian-Java-Home attribute to /path/to/java/home in all processed jars. This attribute is used by jarwrapper to determine which JVM to use. EXAMPLES
An example debian/manifest file: # use the symlink so we do not have to update with the next upstream release. usr/share/java/my.jar: Class-Path: dep1.jar dep2.jar Main-Class: some.awesome.Class usr/share/java/dep2.jar: Class-Path: dep1.jar SEE ALSO
debhelper(7) This program is a part of javahelper and uses debhelper as backend. There are also tutorials in /usr/share/doc/javahelper. AUTHOR
Niels Thykier <niels@thykier.net> COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier This tool is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2. 0.43 2012-03-12 JH_MANIFEST(1)