Sponsored Content
Top Forums Programming Finding a way to load appropriate jars in different OSs as per requirement. Post 302841669 by Just Ice on Wednesday 7th of August 2013 06:21:28 PM
Old 08-07-2013
my java is significantly non-existent but try running a java shell call instead of using the getProperty API so you get around the permission issue ...
Code:
Process p = Runtime.getRuntime().exec("/bin/hostname");

 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

2. UNIX for Advanced & Expert Users

Beowulfing and running dual OSs

Hi, I was thinking about beowulfing some computers... but I was wondering, is it possible to run a dual OS like Windows and BSD simultaneously and still get the same effect, as all these computers running together like one system? And of course I do mean running the same way in an OS like Windows.... (1 Reply)
Discussion started by: heliotos
1 Replies

3. BSD

FreeBSD 8.1 and OSS: system freezing

Hey all, This is my first post and I'm a brand new unix user. Just to let ya know, my technical knowledge consists of windows and linux(Ubuntu, Fedora, Sabayon, and Arch Linux), so I'm not a complete NOOB at using unix-like OSes. Anyway, I installed FreeBSD 8.1 yesterday and everything is... (0 Replies)
Discussion started by: nathanbrownitt
0 Replies

4. Red Hat

Repacking a file inside a java archive with nested .jars

Hello, I need to repack a file inside several java archives (nested .jar files) with or without overwrite. I am using a manual approach with mc, but it's painfully slow progress. For example I want to refresh a file deep inside a java archive (with nested .jar files): I have a java... (0 Replies)
Discussion started by: Laurentiu
0 Replies

5. UNIX for Dummies Questions & Answers

Find a file in group of jars

Hi, jar -tvf tools.jar | grep LinkInfoImpl Output: 4968 Fri Feb 22 02:34:52 EST 2008 com/sun/tools/doclets/formats/html/LinkInfoImpl.class However, i need the similar output for all jar files under /apps/lib/ directory and its subdirectories. Can you please help format my command to... (3 Replies)
Discussion started by: mohtashims
3 Replies

6. UNIX for Dummies Questions & Answers

VPS has load 200, httpd load no activity, netstat nothing

Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections. tail -f /var/log/httpd/access_log shows no activity /var/log/messages ;... (1 Reply)
Discussion started by: postcd
1 Replies
MAVEN(1)							   User Commands							  MAVEN(1)

NAME
Maven - Creates links in /usr/share/maven-repo for all jars. SYNOPSIS
mh_linkjars [option]... DESCRIPTION
Reads the file debian/$package.poms and create links for each jar file generated by a POM listed in the .poms file. OPTIONS
-h --help: show this text -V --version: show the version -p<package> --package=<package>: name of the Debian package which will contain the jar files -e<version>, --set-version=<version>: set the version for the jars, do not use the version declared in the POM file. -r<rules> --rules=<rules>: path to the file containing the rules to apply when cleaning the POM. Optional, the default location is debian/maven.rules -v --verbose: show more information while running -n --no-act: don't actually do anything, just print the results The <package>.poms file should contain the list of POM files associated with the list of jars to install in the repository, and each pom file should have either the option --usj-name, giving the name of the jar (without the extension) to link to and located in /usr/share/java, or the option --artifact, which should contain the full name of the source jar to link to. See also: mh_linkjar(1), mh_install(1) Maven Repo Helper version 1.7.1 January 2012 MAVEN(1)
All times are GMT -4. The time now is 08:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy