How to shorten classpath?

Why the dot in CLASSPATH?

  • http://www.leepoint.net/notes-java/background/13files_and_directories/20classpath.html The link above ask me to put dot as the first entry in the CLASSPATH variable in the enviroment variable menu. Why do we need to add the dot when..when I run java [ProgramName] it already searches for the classes in the current directory?

  • Answer:

    It probably refers to the current directory. ... You must be signed in to read this answer.Connected to GoogleConnected to FacebookBy continuing you indicate that you have read and agree to the .  Loading account...Complete Your ProfileFull NameChecking...EmailChecking...PasswordChecking...By creating an account you indicate that you have read and agree to the .

Quora User at Quora Visit the source

Was this solution helpful to you?

Other answers

When you override the classpath, to add other directories, the default classpath of "." gets overridden.  See the following example:

Scott Danzig

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.