bmkmanoj / checkthread

Automatically exported from code.google.com/p/checkthread
0 stars 0 forks source link

Class Loader can not load classes to be analyzed. #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using the attached analyze.xml
2. I get all the errors reported in the attached results file.
3. Basically every class that I have in the directory is reported as class not 
found by the class loader.  
4. I'm using the following command line:

C:\development\apps\apache-ant-1.7.0\bin\ant -f analyze.xml -lib ../dist -lib 
../lib > results

In the C:\checkthread-1.0\examples> directory.

I know the check thread class are found because I can run the example.

What is the expected output? What do you see instead?
I would like a report of threading issues.  Instead I see a long list of class 
loader exceptions.

What version of the product are you using? On what operating system?
1.0.9 from the Windows command prompt

Please provide any additional information below.

Original issue reported on code.google.com by CosmoSc...@hotmail.com on 24 Jun 2010 at 1:23

Attachments:

GoogleCodeExporter commented 9 years ago
A class not found exception most likely is due to an invalid classpath.

In the attached analyze.xml, I see the following:

<property name="classDir" 
value="${rootDir}/classes/com/mindspark/webapp/vicinio/model/active"/>

Should that be the following instead? This would explain the failure mode.

<property name="classDir" value="${rootDir}/classes/"/>

Original comment by joe.jco...@gmail.com on 24 Jun 2010 at 11:19

GoogleCodeExporter commented 9 years ago
Doesn't work.  I think I'm missing something.  Is the targetpath the location 
of the classes that I would like analyzed?  Is the classpath the location of 
the jar files that those classes use to compile and run?  Is it required to set 
rootDir and classDir?  Just want to see if I at least understand what is 
suppose to be set and how.

Original comment by CosmoSc...@hotmail.com on 29 Jun 2010 at 12:56