Results 1 to 4 of 4
  1. #1
    debu37 is offline Member
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    0

    Default checking runtime classpath in Eclipse

    Hi All,

    Just wanted to know if there is any way to check the runtime classpath in Eclipse 3.2.

    I want to check if all the jars(some external added) are present in the classpath or not.

    Thanks in Advance.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,412
    Rep Power
    25

    Default

    There is a System property that has the classpath.
    System.out.println("classpath=" + System.getProperty("java.class.path"));

  3. #3
    leaosou is offline Member
    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Default Re: checking runtime classpath in Eclipse

    In the Eclipse SDK, the command line used to launch a Java application can be viewed by selecting the associated process or debug target in the Debug View, and selecting Properties from the context menu. This displays a dialog containing the command line (including the classpath option) generated to launch a Java application. Examining the command used to launch a process can be useful when diagnosing launch problems.

    Source: Launching Java Applications Programmatically
    Launching Tomcat from Eclipse - Specifying a Classpath
    Launching Java Applications


    Debug View
    Help - Eclipse Platform
    The Debug View allows you to manage the debugging or running of a program in the workbench. It displays the stack frame for the suspended threads for each target you are debugging. Each thread in your program appears as a node in the tree. It displays the process for each target you are running.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,412
    Rep Power
    25

    Default Re: checking runtime classpath in Eclipse

    Why post on a 4 year old thread?
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 5
    Last Post: 09-03-2008, 05:29 PM
  2. checking if there are equal numbers
    By nalinda in forum New To Java
    Replies: 1
    Last Post: 11-18-2007, 06:21 AM
  3. Adding JARs to the classpath at runtime?
    By johann_p in forum Advanced Java
    Replies: 1
    Last Post: 06-26-2007, 10:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •