Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.