Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23044

Re: Getting path to jar passed on command line

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-16.dc1.easynews.com.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Getting path to jar passed on command line
Organization Canadian Mind Products
Reply-To Roedy Green <see_website@mindprod.com.invalid>
Message-ID <iqtmk8hmilobjo1k4e2psk2goug3cm82sl@4ax.com> (permalink)
References <98cfa140-0b4a-476a-bf1c-9cc2c39f22d8@googlegroups.com>
User-Agent ForteAgent/7.00.32.1200
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Lines 12
X-Complaints-To abuse@easynews.com
X-Complaints-Info Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date Thu, 21 Mar 2013 14:11:05 -0700
X-Received-Bytes 1372
Xref csiph.com comp.lang.java.programmer:23044

Show key headers only | View raw


On Thu, 21 Mar 2013 03:55:50 -0700 (PDT), raphfrk@gmail.com wrote,
quoted or indirectly quoted someone who said :

>Is there a way to get the path of the jar file that was passed on the command line?

You can use -cp to specify the classpath or fully qualify the jar
name.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Every method you use to prevent or find bugs leaves a residue of subtler 
bugs against which those methods are ineffectual. 
 ~ Bruce Beizer  Pesticide Paradox

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Getting path to jar passed on command line raphfrk@gmail.com - 2013-03-21 03:55 -0700
  Re: Getting path to jar passed on command line lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 12:37 +0000
    Re: Getting path to jar passed on command line Arne Vajhøj <arne@vajhoej.dk> - 2013-03-21 08:49 -0400
  Re: Getting path to jar passed on command line Arne Vajhøj <arne@vajhoej.dk> - 2013-03-21 08:55 -0400
  Re: Getting path to jar passed on command line lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 13:41 +0000
    Re: Getting path to jar passed on command line raphfrk@gmail.com - 2013-03-22 09:57 -0700
  Re: Getting path to jar passed on command line Roedy Green <see_website@mindprod.com.invalid> - 2013-03-21 14:11 -0700
    Re: Getting path to jar passed on command line Arne Vajhøj <arne@vajhoej.dk> - 2013-03-21 17:31 -0400

csiph-web