Setting Classpath on windows platform

Hello
I was trying to set classpath of "D:\documentum\config" in my environment variable , i was doing it through command
prompt , the command i was implementing was
set classpath=D:\documentum\config;
but the when i was closing command prompt , the environment variable in windows named as ClassPath was not updating
i have also tried this command
set classpath=%classpath%;D:\documentum\config;
this also having the same result , so how can i set this property through command prompt
Regards

You can permanently set command line environmental variables through the advanced settings in Windows. You have to hunt around for it a bit, it is somewhere behind opening the right click properties of "my computer" (or whatever it is called in your flavor of Windows) and then choosing advanced. An "environmental variables" tab should be present there.
BUT! I would not advise you to set a classpath variable unless you fully realize that is only to make your development life a bit easier when working on the command prompt. When making your application ready for deployment the classpath must be managed without the variable. A script could work, or packaging everything up as an executable jar. When you start to work with an IDE like Eclipse or Netbeans you don't need that variable at all any more.

Similar Messages

  • Setting classpath in windows ME

    how to set it?
    I have placed a file "test.java" in the directory c:\test
    i set the classpath in Dos prompt by:
    set classpath=c:\test;
    however, the following message appear:
    C:\>javac test.java
    error: cannot read: test.java
    1 error
    can anyone help me? is it the way to set classpath in Windows ME is different from other versions of Windows? That's urgent, Thanks!!

    setta le impostazioni in questo modo:
    Avvio --> Programmi --> Accessori --> Utilit� di Sistema --> Microsoft System Infomation.
    Selezionare la voce "Utilit�" di configurazione di sistema dal menu "Strumenti". Selezionare quindi "Ambiente", variabile PATH e premere il pulsante "Modifica";
    Da questa sezione puoi fare il SET DEL PATH E CLASSPATH.
    RESTART PC, E PROVA SE TUTTO FUNZIONA.
    PS. se non riesci a capire l'italiano, posso seguirti in lingua inglese. , fammi sapere anche via mail.

  • Trouble Setting Classpath on Windows XP

    I'm having trouble setting up a classpath on Windows XP for SDK1.3.1_04.
    I've tried Control Panel\Advanced\Environment Variables\System Variables. There was a Path variable present, to which I've added:
    c:\jdk1.3.1_04\bin;
    There wasn't a Classpath variable present though. I've tried adding it myself in System Variables as follows:
    Variable name: Classpath
    Variable value: set classpath=.;
    But no joy. When I run "set" from the command prompt, there's no classpath present.
    I'd appreciate any help.
    Cheers.

    Hi,
    I am running on XP (unfortunately), but also win2000 and win98.
    Setting up the classpath is not a problem, although if you are logged in as root, then it does not always show correctly.
    Try logging back in as yourself and then checking the classpah through the set command.
    Altrnatively, if this is not the problem, actualy try a reboot. which should not be necessary.
    best
    kev

  • Set classpath in Window 95, 98, ME

    Hi,
    Would anybody please show me how to set the class path in windows 95, 98, ME.
    I used: set classpath=c:\ but it did not work
    Thanks

    hi,
    Instead of using 'classpath' try and use just 'path'.
    If JDK is installed in C: then the path would be
    "path=c:\jdk1.3\bin;%path%"
    Regards
    Deepa Datar

  • Setting classpath in Windows XP

    I have read numerous questions and replies pertaining to setting the classpath in Windows XP but have yet to find a clearcut answer. I have JDK 1.4 with the correct PATH set. Generally speaking, what do I type when setting up the CLASSPATH for windows XP? In addittion, what about jar files, libraries, and packages? Thanks

    CLASSPATH contents depend totally on what you establish as your Java environment.
    A classpath value tells Java to look "here" for the files that you create. (It knows where it's "own" files and jars are, we don't any longer have to tell it where to find them.)
    If no classpath variable is set. Java uses a default CLASSPATH of the current directory. Many people can run this way.
    If you set a classpath it cancels the default setting. Therefore, it's necessary to start it with a period, which represents the current directory. Use a semicolon to separate this and subsequent entries.
    Follow that with directory paths that point to directories that you want Java to search to find files and jars that you create or that applications need to use.
    If Java needs a file or jar and it can't find it in one of the classpath entries, it will complain with a "classpath not found" error.
    Here's my SET CLASSPATH statement:
    SET CLASSPATH=.;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.0_01lib\tools.jar;C:\mnrx;C:\NetRexx\NrxRedBk

  • Setting Classpath on Windows 2000 box

    I have written a java application that is deployed to a Windows 2000 box. This application requires that a number of .jar files be included in the classpath, but it appears Windows 2000 imposes a maximum character length on the classpath variable because when I try to include all my .jar files in the classpath variable, the string is getting cut-off after a set number of characters. For example, I would like my classpath set to c:\classes\jar1.jar;c:\classes\jar2.jar;c:\classes\jar3.jar, but Windows 2000 only recognizes c:\classes\jar1.jar;c:\classes\jar2.jar;c:\cl. This causes my application to take java.lang.NoClassDefFoundExceptions since all the .jar files do not get included in the classpath.
    Does anybody know of a way around this issue? I would really like to avoid extracting the contents of my .jar files to a directory structure. Thanks for your help.

    I forget what the limits in Windows are, but they're a lot bigger than the size you need. I just set my classpath to that string in Windows 2000 with no problem. I believe Windows has a limit on the total size of the environment: maybe you have a whole lot of other environment variables set that you could dump. More likely, the problem has nothing to do with a Windows size limit, and you're getting cut off somewhere else.

  • ..CLASSPATH in Windows XP Home Edition..

    Please can anyone tell me how to set CLASSPATH in Windows XP Home Edition OS.
    Thanx
    giminaitis

    hello?
    i really need some help
    my computer is really mucked up and i need to reboot it
    i've done it once by doing something before window logs on but i cant remember how
    i'm not very technical
    can any one help me?
    thank you

  • Help with setting classpath

    Hi All,
    I am new to servlets and JSP. I have a question regarding setting Classpath. My development directory structure is like this c:\..\desktop\java\project1\src\com\eg\web\e1.java. Servlet.jar file is in C:\Program Files\Apache Group\Tomcat 4.1\common\lib. I tried setting Classpath in windows 2000 using control panel=>System utility by this command
    SET CLASSPATH=.;c:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar . I try to compile my program by going into the whole development directory structure C:\..\src\com\eg\web using javac e1.java. But I get the error "package javax.servlet does not exist". Can somebody help me resolve this?
    Thank You in advance
    Jaya

    Question 1: Are you using an IDE?
    [IDEs ignore the system classpath]
    Question 2: Did you try setting the classpath using the -cp option for javac, if you are not using an IDE?
    [you could also try to print the classpath on command line to check if it has taken effect]

  • Patch apply on Windows platforms which bundle one-off patches sets.

    Dear All,
    I need help from urgent basis, If you have document for patch apply on Windows platforms which bundle one-off patches sets.
    For example 10.2.0.3 to Oracle Client patch (7117709) 10.2.0.4 .
    Thanks for all

    Each patch/patchset has a readme file. This file describes how to apply a patch.
    Werner

  • How to set the classpath in windows operating system

    hi,
    how to set the classpath in window operating system
    i want this help for setting the classpath for the tomcat
    please help me
    thank you
    darshan soni

    Open autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
    SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas

  • Setting CLASSPATH's on Windows & Linux

    I am still new Java programming language, but I am coming along in learning the actually language. The one problem I keep running into is how to set a CLASSPATH on a windows machine and Linux machine. I have currently installed j2sdk1.4.2 on the windows machine and jdk1.5.0 on the linux machine. If any one has any suggestions on how to set these CLASSPATH's I would greatly appreicate it.

    Before ammending classpath I recommend checking the
    windows path variable. This variable is a list of
    folders where windows looks for executables.
    Path can be viewed by going to control panel ->
    system _> advanced table -> environmental variables
    and then selecting path and then edit.
    Make sure �C:\Program Files\Java\J2SDK1.5.0\bin� (or
    equivalent)is included.
    Alternative you can enter �path = %path%; �C:\Program
    Files\Java\J2SDK1.5.0\bin� into command prompt each
    session.
    This ensures that you can compile and execute java
    programs from any directory. Ideally the java
    installer should do it but I have found it does not.Indeed.
    Similarly the classpath can be varied from either the
    command prompt or it can be added to the
    environmental variables.I'm one of those that recommends folks not set CLASSPATH using an environment variable.
    IDEs like Eclipse and IntelliJ totally ignore it; so do containers like WebLogic and Tomcat.
    One CLASSPATH does not fit all. Every project is unique. The best way to set it is with the -classpath option on both javac.exe and java.exe.
    For compiling, you should learn Ant. It's a make tool built on Java and XML. That'll help with your compilation issues.
    For running, you'll either run in a container, which has its own idea of CLASSPATH, or you can script the startup of a batch job using a Windows .cmd or *nix .sh.  Set the CLASSPATH in the script.
    If altering it from the command prompt, in windows
    use a �;� between paths variables and a �:� for unix
    systems. Also include a �.� as one of the path
    variable as it includes the pre-existing class path.
    For example, when entered from the command prompt (in
    windows), the following line will add �C:\
    JavaPrograms� to the existing Classpath
    Java �cp .;C:\JavaPrograms
    Alternatively go into environmental variables as
    described above and if a classpath variable does not
    exist, create one and include �.� and your desired
    directory.
    Note: I prefer adding directories to the classpath
    via the environment variables as it is more accepting
    a folders with spaces in the name.Installing software in a folder with spaces in its name is asking for trouble. It's not highly recommended.
    %

  • Setting Classpath and Path on Windows ME

    Hi..How do I set up the classpath and path on windows ME. Do I use DOS or run the autoexec.bat from windows directly. I have jdk1.3.1 abd my classpath and path are:
    set classpath="C:\jdk1.3.1\bin"
    set PATH=C:\windows\xxxx\;C:\jdk1.3.1\bin
    I sometimes can't compile my programs from other directories other than jdk1.3.1\bin. Why? Is there a way I can compile my program just from the C:\ directory like:
    C:\javac myprogram.java
    C:\java myprogram
    Thanks.

    If you put . in the beginning of your classpath, java always searches the folder you are currently in.
    Now to set the classpath try clicking from the startmenu:
    settings/control panel/system. Then click advanced tab and then the Enviroment variables. I'm on win2000 but I think it should be the same on ME.
    Make sure it starts with .;C:\jdk1.3.1\bin;....
    I think installing jdk puts in the essentials, but if you have certain folders you store your classes in you can stick those in there as well.
    If you hava more questions about this, I suggest searching these forums on Keywords like : "set CLASSPATH PATH". Then you'll find a bunch of threads solving this problem.
    Sjur

  • Help -setting long classpath in windows 2003

    i have around 50 jars .
    i have to set classpath for all these jars.
    when i try to set environmentvariables\classpath
    its not taking the classpath completly.
    and errors are thrown when program is compiled ..
    pls help
    arvin

    If you're using Java 6 a new classpath feature may help:
    "As a special convenience, a class path element containing a basename of * is considered equivalent to specifying a list of all the files in the directory with the extension .jar or .JAR (a java program cannot tell the difference between the two invocations).
    For example, if directory foo contains a.jar and b.JAR, then the class path element foo/* is expanded to a A.jar:b.JAR, except that the order of jar files is unspecified. All jar files in the specified directory, even hidden ones, are included in the list. A classpath entry consisting simply of * expands to a list of all the jar files in the current directory. The CLASSPATH environment variable, where defined, will be similarly expanded. Any classpath wildcard expansion occurs before the Java virtual machine is started -- no Java program will ever see unexpanded wildcards except by querying the environment. For example; by invoking System.getenv("CLASSPATH"). "

  • How to compile a form built in forms 10g on windows platform?

    Hi All,
    I have built a 10g form on my local desktop on windows 7 and compiled/deployed it in apps on linux server.
    I need to deploy the same form fmb on oracle apps hosted on windows platform. Please let me know if fmb works fine or not. And also provide how to compile form in windows platform..like frmcmp_batch command
    Thanks,
    Veena

    The fmb, mmb, and pll files are portable to any platform where Forms can be installed. Every installation that supports running Forms comes with the necessary components to generate the executible files (fmx, mmx, plx). On your Windows machine, if you have the Builder installed, you can generate an FMX using the Builder. If not, you can directly use the compiler. The compiler has a gui option and a command line option. If you do not pass any arguments into the executible (frmcmp.exe) the GUI will start. Alternatively you can generate from the command line (DOS). You may need to set PATH, ORACLE_HOME, TNS_ADMIN, and possibily some others in the DOS shell in order for it to work.
    If you have access to MyOracleSupport, refer to the following note:
    <blockquote>Moving Forms Applications From One Platform Or Machine To Another (Doc ID 299938.1)</blockquote>
    Example:
    <blockquote>frmcmp.exe module=myForm module_type=form userid=scott/tiger@orcl compile_all=yes</blockquote>
    More options are discussed in the Builder Online help and the compiler help.

  • Setting Classpath in linux

    Hi !! Can anyone help me in setting classpath in linux to run servlets/? I tried using this command..but didnt work
    export CLASSPATH="$CLASSPATH:/usr/share/tomcat5/server/lib/servlets-common.jar"
    Thanks
    Nive

    in ur autoexec.bat file write the following
    set PATH=C:\jdk1.5.0_04\bin;%PATH%
    set JAVA_HOME=C:\jdk1.5.0_04
    set
    CLASSPATH=.;C:\jakarta-tomcat-5.5.9\common\lib\servlet
    -api.jar;C:\jakarta-tomcat-5.5.9\common\lib\jsp-api.ja
    r;C:\Servlets+JSP;..;..\..;C:\jakarta-struts-1.2.4\lib
    \struts.jarThis response is meaningless. Principally because the OP specifically mentioned the use of LINUX. Not Windows.
    I've taken the advice of other forum users by avoiding a system level classpath variable. I define the classpath each time I compile and run. Working on Linux I tend to use command line argument files ( http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html#commandlineargfile ) which eliminates the need to redefine the classpath each time I compile or run my classes and apps. But others may do things differently.
    Here is a website you might want to check out which pertains to setting the classpath on Solaris and Linux.
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

Maybe you are looking for