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

  • Home
  • SEARCH
  • 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 6729809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:20:03+00:00 2026-05-26T10:20:03+00:00

java -cp . name – string to put it in command-line. What is -cp

  • 0

“java -cp . name” – string to put it in command-line.
What is -cp in this string? Google just does not want to search it.

  • 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-05-26T10:20:04+00:00Added an answer on May 26, 2026 at 10:20 am

    It’s the classpath:

    -classpath classpath

    -cp classpath

    Specify a list of directories, JAR archives, and ZIP archives to search for class files. Class path entries are separated by semicolons (;). Specifying -classpath or -cp overrides any setting of the CLASSPATH environment variable.
    If -classpath and -cp are not used and CLASSPATH is not set, the user class path consists of the current directory (.).
    For more information on class paths, see Setting the Class Path.

    From http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/java.html

    A single full-stop means the current working directory – so in your above call, it’s setting the classpath as such.

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

Sidebar

Related Questions

in java is the name of a method a string? why or why not?
I want city name from IP address using Java is there any idea to
My Java application has got a package structure similar to this: src/com/name/app src/com/name/app/do src/com/name/utils/db
In a java serialization problem, I want to save some classes name and I
Possible Duplicates: Does Java have a limit on the class name length? Max name
My friend Google told me I should put the classname.hbm.xml to where classname.java stays
This is closely related to, but is not the same question as: Java -
Our code has something like this: @Resource(name = java:comp/resource/foo/bar/ONE_QUEUE) private Queue queue; However, in
Why this doesn't works local filepath = Name : Java DB 10.5.3.0 Vendor :
I have a symbolic name java or jre or jre1.5 or jre1.6 or java1.5

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.