Share on Google+Share on Google+

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

what is classpath?

Ads

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
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
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 question
java question  what is the difference between path and classpath in java
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
Tutorials   
Java Spring Hibernate Struts Training What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized how to convert war file into .exe file using java code

Ads

 
Advertisement null

Ads