Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


mohd yaseen ansari
CLasspath
3 Answer(s)      3 years and 8 months ago
Posted in : Java Beginners


what is classpath?


Advertisement
View Answers

November 9, 2010 at 3:16 PM


The <B>Classpath is an argument:

set either on the command-line, or

through an environment variable.

That tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs.



November 10, 2010 at 12:48 PM


Hi Friend,

Classpath is Environment Variable that tells JVM or Java Tools where to find the classes. In CLASSPATH environment you need to specify only .class files (i.e., jar, zip files ? Inside jar, zip files you will find only java classes) i.e. you are helping java Virtual Machine (JVM) to find java class files.

Thanks



July 20, 2012 at 1:47 PM


hi all Friends

I am stuck using the java servlets and problem raise for classpath.

I had a problem with servlet to call a class because when i complied my servlet class file it give me error that it didn't found any java class (which is java class calling from servlet).

but i solved this problem by putting the path of classes to the classpath and then it worked fine after doing that and my all files compiled fine and my project worked.

But now i am again trying another project and trying to compile this project but got same problem again. Now this time i doing the all procedure for setting the classpath to solve the problem as i solved for previous project. but this time my classpath solution is not working for this project and i am trying this procedure again and again but i don't know i am stuck please help me friends

thanks in advance SANTBIR SINGH



Related Tutorials/Questions & Answers:
CLasspath
CLasspath  what is classpath?   The <B>Classpath... and packages when running Java programs.   Hi Friend, Classpath.... In CLASSPATH environment you need to specify only .class files (i.e., jar, zip files
CLasspath
CLasspath  what is classpath?   Hello, Classpath is Environment Variable that tells JVM or Java Tools where to find the classes. In CLASSPATH environment you need to specify only .class files (i.e., jar, zip files
Advertisements
CLASSPATH
, but the above is by far the most common. CLASSPATH is explained below in more detail. CLASSPATH tells Java where to search for programs Where to look... they are located. CLASSPATH. For Windows the easiest way is to set
Java classpath
Java classpath  What is the difference between classpath and path variable
path classpath
path classpath  EXPLAIN PATH AND CLASSPATH ? DIFF send me ans plz.  ... be in path. While Classpath is Enviroment Variable that tells JVM or Java Tools where
Java ClassPath
Java ClassPath       Question: What is the meaning of PATH and CLASSPATH ? How it is set... numerous directories and JAR archives. The -classpath option to javac and java
STRUCT CLASSPATH - Struts
STRUCT CLASSPATH  What is the STRUCT CLASSPATH
Classpath - Java Beginners
Java classpath setting command line  Is there any command line to set the classpath in Java
Installing the Driver and Configuring the CLASSPATH
Installing the Driver and Configuring the CLASSPATH  What is the procedure to Installing the Driver and Configuring the CLASSPATH mysql jdbc connector? the jar file
classpath and path for structs1.3.8
classpath and path for structs1.3.8  How to set classpath and path for structs1.3.8 ?   just add struts-core-1.3.8.jar file to CLASSPATH or ext folder of jdk installation(\jre\lib\ext folder) and add 10 jar files(main
running java with classpath in cygwin
running java with classpath in cygwin  The following command works in cmd.exe but failts in cygwin shell. java -cp .;oracle.jar;mysql.jar Executecmd query value; how should i alter the command to run in the bash shell?thanks
JAVA CLASSPATH PROBLEM
JAVA CLASSPATH PROBLEM  hi all Friends I am stuck using the java servlets and problem raise for classpath. I had a problem with servlet to call... solved this problem by putting the path of classes to the classpath
What is difference between Path and Classpath?
What is difference between Path and Classpath?   hi What is difference between Path and Classpath? thanks   Hi, The Path & Classpath are used for operating system level environment variales. We mostly use Path
Checking Classpath Validity - Java Tutorials
Checking Classpath Validity 2001-12-13 The Java Specialists' Newsletter [Issue 037] - Checking that your classpath is valid Author: Sydney Redelinghuys... Classpath Validity The classpath - like most programmers, I really
setting classpath of tomcat - Java Beginners
setting classpath of tomcat  hello i am giri. I Installed the Tomcat6 in my system and the problem is, How to set the classpath, Please give...;System->Environment Variables-> and set the CLASSPATH C:\Program Files
java classpath prbm in windows 7
java classpath prbm in windows 7  i have a problem to set the classpath in windows7 in my system oracle is not there. environment variables under that user variables i set them like this: CLASS .;C:\Program Files\Java\jdk1.6.0_32
getting an error when set classpath
getting an error when set classpath  Hello Everyone! i have used hssf model for reading excel sheet in my project & i have set classpath for that jar file but when i compile the program it will compile correctly but when i
ClassPath Helper
ClassPath Helper     ... with the classpath. Usually it doesn't take long to generate your first... and easily understood. For example if your classpath reads C:\lib\jar1.jar;C:\lib
Set classpath and "commons-fileupload.jar" - JSP-Servlet
Set classpath and "commons-fileupload.jar"  Hi, Thanks...)..where should i place it, and also confuse at the setting classpath, please guide... Files\Apache Software Foundation\Tomcat 5.0\" After set the classpath
Class path
; The Classpath is an argument that is path through the command line. Classpath can also be though an environment variable. Classpath specify the location of the user... the -classpath option when calling an SDK tool (the preferred method) or by using
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
path - Java Beginners
meaning of path and classpath  what is the meaning of path and classpath. How it is set in environment variable.  Path and ClassPath in in JAVAJava ClassPath Resources:-http://www.roseindia.net/java/java-classpath.shtml
java
java  what is classpath?describe various levels of access protection
java - Java Beginners
java  why we use classpath.?  Hi Friend, We used classpath to tell the Java Virtual Machine about the location of user-defined classes and packages in Java programs. Thanks
Query
Query  how can i set path and Classpath or Environmental Variable for jsp/servlet program to compile and run
hibernate
hibernate  hi what are the necessary jar files that we need to set in the classpath to execute a hibernate application
JDBC
JDBC  how to set classpath for eclipse, java, where to copy jdbc connector
Java
Java  What is class path and path in java   Hi Friend, Classpath is Environment Variable that tells JVM or Java Tools where to find the classes. In CLASSPATH environment you need to specify only .class files. Path
Hi... - Struts
Hi...  Hello Friends, installation is successfully I am instaling jdk1.5 and not setting the classpth in enviroment variable please write the classpath and send classpath command   Hi, you set path = C
Difference b/w jdk 1.1 and 1.2 - Development process
is the industry following currently.  Hi friend, Changes to CLASSPATH and -classpath The class path has a default value and can be set by -classpath or CLASSPATH. In 1.1, it worked as follows: * Class path default
struts setup
struts setup  to run a struts application what are the necessary steps required i mean how to set classpath and directory structure
Reg struts - Struts
have the struts jar also in your classpath, it should be like this:CLASSPATH=$CLASSPATH:/path-to-strutsjar/struts.jar:.This is from memory so I don't remember
tomcat - JSP-Servlet
the classpath of the servlet-api.jar file in the variable CLASSPATH inside... the values as Variable Name: CLASSPATH Variable Value: C:\Program Files\Java\Tomcat
java - Java Beginners
java   what is the difference between classpath and path   ... files While Classpath is Enviroment Variable that tells JVM or Java Tools where... .bat,.exe(Executable files that Operating System Uses). In CLASSPATH
Environment variables
Environment variables  How to set Environment Variables in JAVA 6 n Tomcat 6 CLASSPATH, JAVA_HOME, PATH, & CATALINA variables plzzz plzz help me
javax.servlet not found error
javax.servlet not found error  why iam getting javax.servlet error while running my servlet program...after setting the classpath also i am finding that problem
Duplicate name in Manifest - Struts
, check ur classpath settings : How to modify the CLASSPATH? Under window... --> Edit the Classpath. Under Linux, modify your .bashrc or .zshrc or related profile. Clean up the classpath for some older versions of Java/related JARs
ClassPathResource class is not working - Spring
ClassPathResource class is not working  Hi, Below is a sample code... ClassPathResource("hello.xml");BeanFactory factory = new XmlBeanFactory(res); Hello... parsing XML document from class path resource [classpath:hello.xml
Junit download & installation.
to as%JUNIT_HOME%. Step2 Add JUnit to the classpath: set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar. Ex,- CLASSPATH=C:\Program Files\Java\junit4.8.1
java - JSP-Servlet
preconfigured tomcat hw to set CLASSPATH. i hv set path for jdk .  Hi Friend, Re-install your tomcat and set the classpath: Go to Start menu->... the classpath: CLASSPATH= C:\apache-tomcat-6.0.16\lib\servlet-api.jar; For more
Downloading and installing JUnit 4.3.1 s
the JUnit4.3.1.zip file. Add junit-4.3.1.jar to the CLASSPATH. or we can create a bat file "setup.bat" in which we can write "set CLASSPATH=.;%CLASSPATH%;junit-4.3.1.jar;". So whenever we need to use JUnit in our
MySQL connectivity - JDBC
" not exits or not set the classpath. If not exits download it and set in the classpath environment variable. Thanks   thanks friend...i got
javservlet compilation error - Servlet Interview Questions
javservlet compilation error  hello sir I set the classpath in environment variables but I got the same error.what have to do can u plz help me.   if u had set classpath in environment variables then it doesnt
wlinitialcontextfactory instantiation exception - EJB
wlinitialcontextfactory instantiation exception  I am using weblogic8.1 &jdk1.6 and also included weblogic.jar file in classpath but unable... WLInitialContextFactory not initialized. I have set path in classpath WL_HOME & WL_CLIENT
java compilation error - Java Beginners
java compilation error  how to set path and class path for java.. why is it necessary  Hi Friend, Classpath specifies the location... visit the following links to know more about setting classpath in Java. http
Java Servlet - Development process
Java Servlet  Hello Sir how to set Classpath for Java Servlet.  Hi Friend, Put servlet-api.jar file into the lib folder of apache... Variables. Select classpath from system variable and set variable value to C
 

 

 

DMCA.com