Right you are. Pardon the typo.
Also, WinRAR is a pretty good GUI tool for snooping around in jars.
--Tim
----- Original Message ----
From: Axton <***@GMAIL.COM>
To: ***@ARSLIST.ORG
Sent: Friday, January 4, 2008 9:24:54 AM
Subject: Re: [ARSLIST] ARS Java API 7.1 configuration error
**
jar -tvf will give a list of the files without unpacking the jar, if you are just looking for a class within. If only the Remedy clients were platform agnostic, I would no longer use it; vmware helps with this though.
Axton
On Jan 4, 2008 2:27 AM, Tim Widowfield <***@yahoo.com> wrote:
When it's a BMC class, searching on the Internet for answers probably won't help much.
Here's one way to find which class holds a jar.
Using a real shell (in this case bash) navigate to the directory where the Remedy API libs are stored. Then...
tawlap4$ grep Catalog *.jar
Binary file arcmn71.jar matches
tawlap4$ jar xvf arcmn71.jar | grep Catalog
inflated: com/bmc/arsys/utils/CatalogReader.class
Let's hear it for Cygwin. It makes Windows almost tolerable.
--Tim
----- Original Message ----
From: Chintan Shah <***@YAHOO.COM>
To:
***@ARSLIST.ORG
Sent: Thursday, January 3, 2008 5:57:44 PM
Subject: Re: [ARSLIST] ARS Java API 7.1 configuration error
** Hi Tim,
Thanks for quick reply.
I am using Eclipse IDE and through its "Import" utility i have added external jars to the classpath.
I have all of the following jars in my classpath, This is for ARS 7.1
commons-logging-1.1.jar;commons-configuration-1.3.jar;commons-beanutils.jar;
commons-codec-1.3.jar;commons-collections-3.2.jar;commons-digester-1.7.jar;
commons-lang-2.2.jar;log4j-1.2.8.jar;arapi71.jar;
and now i am seeing this error
Exception in thread "main" java.lang.NoClassDefFoundError: com/bmc/arsys/utils/CatalogReader
at com.bmc.arsys.api.Config.a(Unknown Source)
at com.bmc.arsys.api.Config.a(Unknown Source)
at com.bmc.arsys.api.Config.getInstance(Unknown Source)
at com.bmc.arsys.api.ARServerUser.startRecording(Unknown Source)
at com.bmc.arsys.api.ARServerUser.do(Unknown Source)
at com.bmc.arsys.api.ARServerUser.createEntry(Unknown Source)
at CreateEntry.main(CreateEntry.java:27)
Thanks for your time.
Chintan.
Tim Widowfield <***@YAHOO.COM> wrote: You can see by the exception that the class, org/apache/commons/configuration/ConfigurationException, is missing from your CLASSPATH. If you look around, you'll find places on the web that will identify what jars contain which classes. In your case, I believe the jar in question is:
commons-configuration-1.5.jar (or whichever version you happen to have).
I'm not sure what you mean by "imported the arsapi71.jar." You might want to look into some free Java tutorials on the web.
--Tim
----- Original Message ----
From: Chintan Shah
To: ***@ARSLIST.ORG
Sent: Thursday, January 3, 2008 4:13:40 PM
Subject: [ARSLIST] ARS Java API 7.1 configuration error
** Hi all,
I am trying to do a "CreateEntry" through API and getting this error message.
I have imported the arsapi71.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
at
com.bmc.arsys.api.ARServerUser.startRecording(Unknown Source)
at com.bmc.arsys.api.ARServerUser.do(Unknown Source)
at com.bmc.arsys.api.ARServerUser.createEntry(Unknown Source)
at CreateEntry.main(CreateEntry.java:27)
Any help greatly appreciated.
Regards,
Chintan
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. __Platinum Sponsor:
www.rmsportal.com ARSlist: "Where the Answers Are" html___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
Never miss a thing. Make Yahoo your homepage. __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:
www.rmsportal.com ARSlist: "Where the Answers Are"
__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"