Skip to Content
author's profile photo
Former Member

Classpath problem

Hi,

got a par file and imported into nwds and decompiled the .class files of jar file that came with par using DJ decompiler and I placed those .java files in folder "src.core" of project.

and used classlocator to set the classpath. all the compilation errors are resolved except one which is as follows

-


This compilation unit indirectly references the missing type com.sapportals.portal.prt.service.hook.ICacheResourceValidatorHook (typically some required class file is referencing a type outside the classpath)

-


This is shown at the beginning of all the .java files at the first line. I see the same when doing with a different par too..

could someone help me in this regard.

Regards

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 05, 2005 at 06:33 PM

    Hi Shiva,

    instead of right-clicking on some explicit named class within the source (and choosing ClassLocator search then), here you have to call ClassLocator manually (for ease of use, add the icon to the icon bar: right-click with the mouse on the icon bar, choose Customize Perspective (for the Java and the Resource perspective, I would suggest), choose ClassLocator icon).

    So, when ClassLocator has been opened, manually type "ICacheResourceValidatorHook" and choose the corresponding JAR, as usual.

    If you're unlucky, a small bug of ClassLocator leads to - nothing; which means, after "adding" the JAR to the classpath, in fact it hasn't been added. In this case, open the resource perspective and open the .classpath file. Now do the same thing again. And then it would work.

    It might be that adding such an indirectly needed reference leads to new directly needed references again, but that's the process.

    Anyhow, once you got used to this, you won't need more than 10 minutes even for the biggest project...

    Hope it helps

    Detlev

    Add comment
    10|10000 characters needed characters exceeded