Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8631
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How to print out the currently used JAR file path to verify it is using right JAR? |
| Date | Fri, 7 Oct 2011 08:47:31 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 22 |
| Message-ID | <3339288.679.1318002451499.JavaMail.geo-discussion-forums@prmi2> (permalink) |
| References | <4d7daeb4-7da7-47c0-a4cf-d3c5d1be2ef0@gd10g2000vbb.googlegroups.com> <13afa738-1198-4569-84be-9fc6627c52d6@t16g2000yqm.googlegroups.com> <j6n6ft$9uh$1@dont-email.me> |
| Reply-To | comp.lang.java.programmer@googlegroups.com |
| NNTP-Posting-Host | 216.239.45.130 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1318002881 9188 127.0.0.1 (7 Oct 2011 15:54:41 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Fri, 7 Oct 2011 15:54:41 +0000 (UTC) |
| In-Reply-To | <j6n6ft$9uh$1@dont-email.me> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=216.239.45.130; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8631 |
Show key headers only | View raw
markspace wrote:
> www wrote:
>> Just to add more details about my question:
>>
>> In my code, I am using class Abc, which is from 3rd party JAR
>> file(MyJAR.jar). I hope to print out Abc's class path to see it is
>> from a/b/MyJAR.old.jar or from c/d/MyJAR.new.jar
>>
>> I understand the correct way is to check the classpath
>
> Shouldn't you just be setting this from the command line or in the main
> Jar file? I'm a little confused by your question. You should know the
> class path before the program starts executing.
>
> Can you just search the existing class path for occurrences of this
> class "Abc"?
System.getProperty("java.class.path")
<http://download.oracle.com/javase/7/docs/api/java/lang/System.html#getProperty(java.lang.String)>
--
Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to print out the currently used JAR file path to verify it is using right JAR? www <xsli2@yahoo.com> - 2011-10-07 06:56 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? www <xsli2@yahoo.com> - 2011-10-07 07:25 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-10-07 10:18 -0500
Re: How to print out the currently used JAR file path to verify it is using right JAR? www <xsli2@yahoo.com> - 2011-10-07 08:30 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? markspace <-@.> - 2011-10-07 08:39 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? Lew <lewbloch@gmail.com> - 2011-10-07 08:47 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? www <xsli2@yahoo.com> - 2011-10-07 09:37 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? markspace <-@.> - 2011-10-07 11:17 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? www <xsli2@yahoo.com> - 2011-10-07 11:37 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? Roedy Green <see_website@mindprod.com.invalid> - 2011-10-07 10:50 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? www <xsli2@yahoo.com> - 2011-10-07 11:00 -0700
Re: How to print out the currently used JAR file path to verify it is using right JAR? Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 17:42 -0500
csiph-web