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.

Similar Messages

  • How to set ORACLE_HOMES on Windows 2000 for 11i

    How to set ORACLE_HOMES on Windows 2000 for 11i
    As am newbie on windows.
    Its very urgent.

    To set ORACLE_HOME on Windows:
    C:\> set ORACLE_HOME=<location>
    i.e.
    C:\> set ORACLE_HOME=d:\oracle\proddb\10.2.0
    To verify:
    echo %ORACLE_HOME%
    In Apps 11i, you do not have to set it manually, just source the environment file and this will set all environment variables for you.
    - To source the application env file, run envshell.cmd under %APPL_TOP%
    - To source the database env file, run <SID>_<hostname>.cmd under %RDBMS_ORACLE_HOME%

  • 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

  • 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.

  • 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

  • Classpath under Windows 2000 and XP Beta

    I recently installed windows XP Beta and Downloaded jdk1.3.1_01. When you write the example of "Hello World!" it compiles it, but it does not run it. Back when i used win 9x I use to set the classpath with this line
    SET CLASSPATH=.;<NAME OF DIRECTORY WHERE I WORK WITH JAVA>
    and it used to work great. I modified the system variables and added the classpath using many combinations but none seem to work.Also i typed the set classpath to autoexec.bat but it doesn't seem to work at all.
    How can i solve this problem?

    Exception in thread "main" java.lang.NoSuchMethodError:main
    All my java files that i was working fine under windows Me and 98 where in a folder name Proyecto
    This is my Path c:\jdk1.3.1_01\bin
    my JAVA_HOME c:\jdk1.3.1_01
    My CLASSPATH .;c:\jdk1.3.1_01\lib\tools.jar
    I even tried CLASSPATH with the value .;c:\proyecto

  • Error while Installing Oracle 8i on windows 2000 box

    When trying to install the Oracle 8i software, I get the following error from the event log:
    The description for Event ID ( 0 ) in Source ( PctSpk ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: PctSpk error: 1063, StartServiceCtrlDispatcher failed..
    If anyone have suggestions to solving my problems, please advise.
    Note: I've started all possible services that I could think of.

    Definitely 8i won't work with windows vista. 10gR2 (10.2.0.1.0) was not certified to run against vista, Oracle had to release an specific 10.2.0.3.0 for Windows Vista. Previous releases are Not supported at all and there are no plans to support them.
    If you are planning to use 8i on your Vista OS, it won't be possible, but you can create a Virtual Machine with a supported guest OS for 8i, Windows 2000 is certified for 8i, Windows XP is not supported for 8i, but I have been working with it for years without any issue (this is not a suggestion for production environments).
    ~ Madrid

  • 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]

  • Windows 2000 connection problems (solved)

    I have a Windows 2000 box that was working fine with DSL and cable but when we moved and got FiOS, it didn't work.  It has a RealTek RTL 8139(a) PCI fast controller built in to the motherboard that is connected to the port of the back of the Westell 9100em router.  The symptoms were very strange: I could ping the router and load the router web page.  However, I could not load any webpages outside of the router.  DNS was working (lookups were fine and fast) but it seemed like no packets ever came back to me - it was like the TTL was set too small or something - they just died in the ether.  Traceroutes would get about a dozen hops out and then time-out.  I figured there was a problem with the ethernet controller, so I switched to a 10/100 Hawking USB-to-ethernet adapter.  However, this showed the same problem.  Then, I switched to a USB wireless adapter.  Again, same problem.  At this point, it was a total mystery.  There didn't seem to be a problem with a particular adapter and I knew it wasn't a problem with FiOS since I had multiple wired and wireless machines (XP,Mac,Linux) in the house with no problems whatsoever.
    I had read on these forums some problems people were having with RealTek 8139 adapters: http://forums.verizon.com/t5/FiOS-Internet/Problems-with-the-Fios-20-5-connection-speed-in-my-area-d... so I did a google search on "windows 2000 realtek fios" and found this:  http://www.testmy.net/t-19923  This was exactly the same problem I was having, so I did what was suggested: Uninstall TCP/IP and the Microsoft services/clients from the ethernet adapter, reboot, then reinstall the protocols and services...  And it worked!  I can now load up web pages with no problems.
    Even though I was a 25/15 customer, I was pretty happy to get a 7/7 service (according to Verizon's speed tests) after not being able to get any http connection at all previously.  For the heck of it, I tried the speed optimizer tool: http://www2.verizon.net/help/fios_settings/optimizer/  After rebooting the machine, I am now getting 25 down and 23 up on Verizon's test and 26 down and 13 up according to the speakeasy test.
    I guess the lesson for me is that FiOS is unlike DSL or cable - you might not be able to just plug your computer in and have it work optimally or work at all.  But if you tweak it just right, it works pretty well

    crichter, Welcome to the discussion area!
    Sorry, I don't know what type of encryption (if any) is supported by Windows 2000.
    You may want to post in the AirPort > AirPort for Windows discussion area.

  • Trouble installing iDS 5.1 on Windows 2000

    I'm having real trouble getting iPlanet Directory Server installed on a Windows 200 Server machine. Every time I install it, no matter what options I choose, I get this series of popup boxes at the end:
    - Setup is unable to store configuration data in the LDAP directory
    - Unable to create Administration Server configuration
    - Could not authenticate ldap connection, "Unknown error"
    - Unable to set ACI in Configuration Directory Server
    I've spent quite a bit of time looking on this Forum, and the only suggestion I've found that I can't implement is to remove all the iPlanet-related entries from the registry. Every time I try to delete the associated keys, it gives me an error.
    I think the DNS settings are correct... I have a static IP address, I have a DNS server specified... The options "Append primary and connection specific DNS suffixes" and "Append parent suffixes of the primary DNS suffix" are selected, and also "Register this connection's address in DNS". I don't have a WINS server defined, but I wouldn't think that would make a difference.
    Any suggestions?
    Thanks,
    Jeff

    Hi Jeff,
    I've experienced the same problem with my Windows 2000 box. All the normal spots were configured for correct DNS and everything functioned great on the box, but the Admin Server couldn't be started. Here's
    what you'll need to do, to set the Hostname on the
    Windows 2000 box.
    It's in a seperate area then you would setup the TCP/IP properties, which is probably why it is commonly missed.
    1. Right Click on "My Computer" and select "Properties"
    2. Click on "Network Identification" Tab
    3. Click on "Properties" button
    4. Verify that the correct Computer Name is listed.
    I have "happysoul".
    5. click on Properties
    6. This is where the Domain Name suffix is specified.
    I have "sfbay.sun.com", which wasn't there by default.
    This is for my box "happysoul.sfbay.sun.com". Once setting this, it may ask you to reboot and from there
    you can install the iDS server and the Admin Server will install correctly.

  • ..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

  • Discoverer 10.1 and Windows 2000

    Hello,
    We are currently running Discovere 9.0.2 on Windows 2000 box (client not server) and about to upgrade to 10.1 and
    wanted to check that 10.1 will install, work and be supported on Windows 2000 ?
    Regards,
    Lawrence

    Which specific version of 10.1 ? I believe you will need SP3 or higher on Win 2000.
    http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html
    HTH
    Srini

  • Setting the DNS Suffix in Windows-2000:

    This is a solution for the frequent problem that arises during installation of iPlanet Application Server on Windows-2000 platform.
    <b>Problem:</b> After installation completes, the installation directory remains empty, there is no entry of iAS in "Windows start menu". It doesn't install anything.
    <b>Remedy:</b> Set the DNS Suffix.
    <b>Procedure:</b>
    Right click on <b>My computer</b> (icon on desktop or in windows-explorer), then click on properties, go to <b>Network identification</b> Tab, Click on properties, then click the more button, set the <b>Primary DNS suffix</b> (like india.sun.com), and also check the <b>Change Primary DNS suffix when domain membership change</b> check box, click all Ok buttons.
    <b>Note:</b>
    1. Make sure that it is added to the windows registry:
    Just run regedit and click on the <b>My Computer\HKEY_LOCAL_MACHINE\SYSTEM \ControlSet001\Services \Tcpip\Parameters</b> key, you will see the <b>Domain</b> key value set to your domainname, otherwise enter the domain name into this key value, and than <b>reboot the m/c</b>, and than reinstall the iAS. It should work.
    2. Make sure you are using static IP address.

    Thanks Sanjeev Agarwal

Maybe you are looking for