Help setting Class Path

hi,
I just downloaded and installed JDK 5 update 7 and need help setting the class path. Can someone give me instructions on how to do this in windows XP please.
Cheers

thanks for the replies guys.
I'm still having problems. What I want to be able to do is compile a .java file using the Command Prompt in windows XP.
Currently, when I type javac I get the message:
'javac' is not recognized as an internal or external command, operable program or batch file.I set the classpath to C:\jdk1.5.0_07\bin\ but when I type path in the command prompt this path doesn't appear.
If I change the directory in the command prompt to C:\jdk1.5.0_07\bin\ then type javac it works (I get a list of commands) but I need it to work from within any folder.
Have I set the classpath incorrectly or is it something else?
Thanks

Similar Messages

  • How can i set class path in ubuntu JAVA_HOME ?

    how can i set class path in ubuntu <JAVA_HOME>?

    Note that on *nix
    environment variable names are case sensitive.
    Also, you are again being vague; is it [this it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html] or [that it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html]

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • Need help setting java paths?

    I have a number of java files set up like this:
    com.pogo.chess2.Applet, com.pogo.chess2.game.Applet, etc
    Now each class file uses the keyword: package followed with its associating directory, for example Applet.class would look like this:
    package com.pogo.chess2;
    import com.pogo.game.external.b;
    How do I create a new java project and properly set the path?
    Basically I have all of my java code in a folder called com, which has subdirectories with java files as well. What is a package? How do I set it up using a gui such as JCreator Le? Is there a way to drag the folder com to the project and all the files will load?
    Thanks in advance.

    For package, see
    http://java.sun.com/docs/books/tutorial/java/concepts/package.html
    The rest of your questions involve details of editor/IDE usage. None of them relate to Java. Read the information or Helps from the product you're using.

  • Need help with Class-Path and NCDFE

    This isn't a new issue, but I'm getting a variation of a problem a lot of people seem to have had. I was hoping someone out there can help me out.
    I have a jar file (imex.jar) sitting in c:\temp\imextest. I also have another jar file, commons-cli-1.0.jar sitting in c:\temp\imextest\lib.
    I want to run the jar in a standalone manner. My manifest has the following entries.
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.5.3
    Created-By: 1.4.2_01-b06 (Sun Microsystems Inc.)
    Main-Class: com.foo.imex.DirectoryImportExport
    Class-Path: lib/commons-cli-1.0.jar
    I am invoking it using the following command (from c:\temp\imextest)
    java -jar imex.jar -i -f c:\matt\RRBus\jiyun.xml -v
    I get this result:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
    It seems to me that I have my directory structure and manifest set up correctly, but maybe I don't (as it's not working). Does anyone see what I'm doing wrong here? (the "missing" class is in commons-cli-1.0.jar).
    Thanks,
    Matt

    perhaps jar file needed for parsing is not there in classpath...set it...in the classpath..

  • How do I set class path for 3rd-party classes?

    Hello, I need to know how to set the classpath so that I can use the apache's third-party lang classes. I downloaded commons.apache.org/lang/download_lang.cgi. And I need to know next steps. Move the unzipped files to which location? And type what commands?
    Thanks, Melissa

    Hi, it's not the server that I am running. My instructor told me to download an apache class file for the Apache Lang library and then set my class path to point to the executable. Her instructions are for Windows users, however. I need to do something in the terminal shell but I don't know precisely what.
    mg

  • Help: manifest class path attribute - OC4J 9.0.3

    I have tried everything I can think of. I have even downloaded the developers version of JRun to ensure my code does deploy under the J2EE spec.
    Per compleating deployment under JRun, I have migrated back to OC4J and made the approperate modifications to orion-web.xml to include the following entry:
    <web-app-class-laoder include-manifest-class-path="true" />
    Even with this entry I get the same class not found statements. I am out of ideas.
    Anyone got some sugestions?
    Info: Ear deployment, static pages deploy under all wars...
    Thanks.
    Andrew
    [email protected]

    I have tried everything I can think of. I have even downloaded the developers version of JRun to ensure my code does deploy under the J2EE spec.
    Per compleating deployment under JRun, I have migrated back to OC4J and made the approperate modifications to orion-web.xml to include the following entry:
    <web-app-class-laoder include-manifest-class-path="true" />
    Even with this entry I get the same class not found statements. I am out of ideas.
    Anyone got some sugestions?
    Info: Ear deployment, static pages deploy under all wars...
    Thanks.
    Andrew
    [email protected]
    Hi Andy -
    Can you check the attribute and make sure it's the following:
    <web web-app-class-loader include-war-manifest-class-path="true"/>
    ^^^
    You have have just typed it in quickly, but I noticed there's a typo in the entry you have above and you are missing the WAR piece of the attribute name.
    There's a how-to document on OTN which has an example of this.
    http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-servlet-warmanifest.html
    cheers
    -steve- Hi Steve
    Where can I find the zip file I went through the link but doesn't have any link to zip file
    Thanks
    Ritesh

  • Help displaying/ setting class path

    On a Windows 2000 system, from the command line, how can I
    1. display the classpath
    2. add a search directory to the classpath
    thanks,
    Eric

    On a Windows 2000 system, from the command line, how
    can I
    1. display the classpathecho %CLASSPATH%
    I believe.
    2. add a search directory to the classpathI think it's
    set CLASSPATH=%CLASSPATH%;yourExtraClassPathPartHere
    Also you can do it by going to Settings / Control Panel / System / Advanced tab / Environment Variables button.

  • How to set (class)paths for a Managed server?

    How does one configure the PATH and CLASSPATH and pass definitions (like "-Djava.library.path=c:\p\bea\wlserver6.1\bin")
    to a remotely-started managed server?
    The section in the WLS 6.1 AdminGuide.pdf that talks about configuring a managed
    server's Remote Start tab says on pages 3-9 to 3-10 that, "If you don't specify
    values for these fields and attempt to start the target server from the Administration
    Console, the Node Manager will attempt to start the target server with the values
    for these attributes that were used when starting the Node Manager. The Node Manager
    will be able to start the Managed Server in that case if you specified the required
    values on the command line when starting the Node Manager."
    So it sounds as if I can get the java.library.path definition and CLASSPATH sent
    to the server via the Node Manager startup command.
    Does that work when using the Node Manager as an NT Service? Here is my Win2K
    command file for setting up the Node Manager as an NT Service. Note that I'm trying
    to tell it where to find the Windows native libraries (wlserver6.1\bin for wlntio.dll)
    and the JDBC drivers (C:\SHADOW\jdbc\... and C:\Orant\jdbc\... ) :
    ========== BEGIN installNMNtService.cmd ================ @echo off
    SETLOCAL
    cd C:\p\bea\wlserver6.1\
    rem *** Set Classpath to load Weblogic Classes
    set CLASSPATH=.;C:\p\bea\wlserver6.1\lib\weblogic_sp.jar;C:\p\bea\wlserver6.1\lib\weblogic.jar;C:\SHADOW\JDBC\scjd12.jar;C:\orant\jdbc\lib\classes111.zip
    rem *** Set Command Line for service to execute
    rem *** %JAVA_HOME%\java will automatically be prepended.
    set CMDLINE=" -ms16m -mx16m -classpath \"%CLASSPATH%\" \"-Dbea.home=C:\p\bea\"
    \"-Djava.security.policy==C:\p\bea\wlserver6.1/lib/weblogic.policy\" \"-Dweblogic.nodemanager.weblogicHome=C:\p\bea\wlserver6.1\"
    \"-Dweblogic.nodemanager.reverseDNSenabled=true\" \"-Djava.library.path=c:\p\bea\wlserver6.1\bin\"
    \"-Dweblogic.nodemanager.listenAddress=111.111.111.123\" \"-Dweblogic.nodemanager.trustedHosts=./config/nodemanager.hosts\"
    weblogic.nodemanager.NodeManager"
    rem *** Install the service
    "C:\p\bea\wlserver6.1\bin\beasvc" -install -svcname:EDANodeManager -javahome:"C:\p\bea\jdk131"
    -execdir:"C:\p\bea\wlserver6.1" -extrapath:"C:\p\bea\wlserver6.1\bin" -cmdline:%CMDLINE%
    ENDLOCAL
    ================= END installNMNtService.cmd ==================
    But when I start a server remotely, it can't find the native libraries and it
    can't find the JDBC libraries in the CLASSPATH. Otherwise, it can serve up HTML
    pages at the correct port number so I know it's running.
    When starting a managed server remotely via the WLS 6.1 console, how do I tell
    the managed server where the native libraries and JDBC libraries are?
    Thanks!

    Hi,
    The memory setting on the WC_Spaces managed servers can be seen as mentioned below.
    ps -eaf | grep Spaces
    Above command shows something like this at the top of the output:
    /a01/app/oraweb/middle/jrrt-3.1.2-1.6.0/bin/java -jrockit -Xms512m -Xmx1024m -Dweblogic.Name=WC_Spaces1 ...
    Regards
    Sreedhar

  • Setting class path poi API...

    Hi,
    Please help me where to set the classpath for poi jar in my application?????

    If you're talking about a web application context, then just put the JAR file in one of the default classpath paths, e.g. /WEB-INF/lib.

  • Setting Class Path

    I recently installed 1.4.2_01 on my computer with Windows 98. I have a previous version 1.1.2_01 installed. Everything worked fine until I went to update classpath. I have changed autoexec.bat to the new version
    but when I run a "path" coomand in DOS it still reflects the old 1.1.2_01 in the PATH=. I have uninstalled everything and reinstalled but that seemed to be of no help. Any suggestions? Steve

    I recently installed 1.4.2_01 on my computer with
    Windows 98. I have a previous version 1.1.2_01
    installed. Everything worked fine until I went to
    update classpath. I have changed autoexec.bat to the
    new version
    but when I run a "path" coomand in DOS it still
    reflects the old 1.1.2_01 in the PATH=. I have
    uninstalled everything and reinstalled but that seemed
    to be of no help. Any suggestions? StevePath and Classpath are two different variables. In your autoexec.bat, put a line at the endset Path=c:\j2sdk1.4.2_01\bin;%path%[pre](I am assuming c:\j2sdk1.4.2_01 is where you installed java.)  If your autoexec does not contain any line with "set Classpath=..." then don't worry about it for now.  If you do have a Classpath setting, post it if you are having trouble.

  • Hi, i'm new to java. need help setting the path in win XP

    hi all,
    i'm new to java technology. i've just downloaded the JDK and ran my first java program (hello world). i love it. java's gr8. i need help. i run win XP and how can i setup the path sothat i can execute my programs from the root dir??? any help in this direction will be greatly appreciated. please email me @ [email protected]
    Best regards
    Mrinal

    Go to Start menu and select Control Panel. In the Control Panel, double click on System. In the System dialogue, choose the Advanced tab. Then click on Environmental Variables. Select Path and Edit. Put ;c:\j2sdk1.4.0\bin at the end of the Path (or c:\j2sdk1.4.0\bin;) at the start of the Path. That's it.

  • Class Path, Set Path

    Imm new to Java Techology...plz tell me in detail bout how to "Set Class path", ....In Detail...Bye

    To set class path
    we type
    set classpath= c:\j2sdk folder\lib;.;
    set path = c:\j2sdk folder\bin;.;
    setting these both will work out. in this .; ending means the class path will be available throught otu the command prompt where ever which ever folder it is..
    well for setting permanent in the system for win2000 OS
    right click on myComputer icon there from that option you select properties
    then you get a pop up window where you have few tabs in which last one is advanced -- click on it
    then you get there button placed vertically .... in which there is button callled Environment variables
    click on it... you will get an window...
    in that see the user variables box
    In this if there is a variable to see as classpath then append the path of j2sdk folder\lib;.;
    if not present then create a variable and set the name to classpath and value to the pathof folder\bin;
    similalry path in that also if exist then edit it and give path to bin folder of j2sdk folder..
    this will work out for you..
    All The BEst

  • Class path win me

    Hey there. I've installed java on a system with windows me, I followed the instructions on the homepage and got java working but I cant get my class path to work.
    the file is located in my c:\ST151CLASSES\classes
    I put "SET CLASS PATH c:\ST151CLASSES\classes" in my autoexec.bat. Is there something I'm missing? any help would be nice thanks.

    if you set your classpath in autoexec.bat, i think the line should go like this:
    set classpath = %classpath%;c:\ST151CLASSES\classes
    but it'd be a better way to add it to the CLASSPATH environment variable in your system properties (My Computer -> Properties -> Environment Variables)

  • Class path probelm

    Hi guys I brought new machine with xp operating system. I installed j2re1.4.1
    I am confused while setting class path, Any one help me...
    How to do that...

    Follow this link and then folow the thread through - it has it all.
    http://forum.java.sun.com/thread.jsp?forum=54&thread=297394&start=15&range=15#1195467

Maybe you are looking for

  • Large blotch appears on display

    I have an iBook G4 which Apple replaced for my G3. The G3 was part of the extended logic board program; they tried to repair it three times but were unsuccessful. I've had the G4 for less than 12 months. I've never had a problem with it until today.

  • Connecting to a Samsung TX-R3079WH HDTV w/Mini-DVI to HDMI

    Greetings, I have a Samsung TX-R3079WH 30" HDTV that has an HDMI input (which works just fine via cable box input), and I have a Rev C Powerbook G4 12" 1.33 GHz with an nVIDIA GeForce FX Go5200 64 MB AGP graphics card with the mini-DVI output (which

  • Problem adding audio to slideshow

    I created a slideshow in Elements 8 with no problem.  I added several tracks of audio that fit well.  I learned that I needed to have Elements Premier to publish it to a DVD.  I downloaded the trials of Photoshop Elements 10 and Photoshop Elements Pr

  • Error -200429 DAQmx read (counter u32 1ch 1samp).vi -append- Edge count in for loop

    I am receiving error -200429 DAQmx read (counter u32 1ch 1 samp).vi <append>. This is occuring on the second loop of a for loop. I have a sequence inside the for loop that is using four DAQmx assistant vi's for edge count at various times in the sequ

  • How can I make a backup of my iPhoto Library on disk grouped by events

    Dear fellow iPhoto users, I have a 2008 Macbook, which has a big 40 gig iphoto library. Unfortunaly my Macbook is (literaly) starting to fall apart and I'm afraid it's lifespan is reaching its end. Also I don't have enough money to buy a new Mac. I s