Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7998743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:17:58+00:00 2026-06-04T15:17:58+00:00

I am trying to scan my webapplication classpath for all classes which implimenting certain

  • 0

I am trying to scan my webapplication classpath for all classes which implimenting certain interface.

My current application is working fine in stand alone version but failing in the web enviornment.

this is the portion of my code

public String[] getClassPathRoots() {
        String classPath;
          classPath = System.getProperty("java.class.path");
        }
        String[] pathElements = classPath.split(File.pathSeparator);
        return pathElements;
    }

i am not sure how to use java.class.path in my application so as i should be able to get the classpath root.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:18:00+00:00Added an answer on June 4, 2026 at 3:18 pm

    That property is set to the classpath that the JVM used at launch time. But a typical web container constructs the classpath (i.e. classloader hierarchy) for each webapp dynamically, and doesn’t update the property to reflect this. (And it can’t really, given that a web container may run multiple webapps, and each one will have a different class loader hierarchy. How are you going to represent that in the JVM’s global System properties object?)

    In short, you will need to find another way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an application with BLE and am trying to constantly scan every known
I am trying to scan my page on document load and convert all links
I am currently trying to set up a WiFi Scan in my Android application
I am trying to build a web application that will take an scan paper
I'm trying to scan my application (window based with xib) for memory leaks, but
I'm trying to improve upon a utility that basically scan through all our reports
I am trying to scan memory of a 3rd party application. I have already
I am trying to create a php file that would scan a directory, make
I'm trying to utilize setDebugFlags as recommended here to scan for opengl errors: http://developer.android.com/resources/articles/glsurfaceview.html
ok, so what i'm trying to do is to scan the previous folder. $scanned

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.