Classpath in Windows NT 4.0

My employer has recently had IBM VisualAge for Java installed on my Windows NT box. Prior to this installation, Java 1.3.1_01 worked perfectly.
The classes which used to work are now generating NoClassDefFoundError messages.
If I run from the command line with the -classpath option set, they work again.
I suspect that my classpath environment variable has been overwritten, but don't know where it is set. Can anybody help me find this pesky setting?

In Windows NT, U can find the CLASSPATH settings @ Start -> Control Panel -> Systems -> Environment -> System Variables
Hope this helps U
Sam

Similar Messages

  • 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

  • Classpath in Windows ME

    I cannot seem to find where to set the classpath in Windows ME. Shouldn't the J2SDK installer set something up in the autoexec.bat if that is where you are supposed to do it. Is it necessary after my first installation of the JDK to manually set a classpath for the standard libraries? Thanks for any help on this.

    The java compiler knows were to find the standard core libraries you use the class path to define where you have stored your own extensions that you may want to include (import).

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

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

  • How do you change the CLASSPATH in windows XP

    How do you add a *.jar file to you CLASSPATH on Windows XP?
    I can see the PATH variable but there is no CLASSPATH variable

    Your CLASSPATH should be under -users variables-, if it's not there, just create it. Click on New, then next to Variable name, type in CLASSPATH, and next to variable value, type in your .jar file....
    That should be enough...hopefully!!
    Good luck!
    Sylvie

  • 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

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

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

  • JDBC drivers for  postgres+classpath for windows

    I've written an application for university last year, that connects to a postgres database. It worked perfectly on the Debian, but I'm trying to run it on Windows 2000 now.
    I've downloaded the driver http://jdbc.postgresql.org/download/postgresql-8.0-311.jdbc3.jar but now what do I need to write in the "Class.forName(String name)" line , as I've put the jar in c:\ ?
    Other question while I'm typing : my other java applications run correctly althought no classpath variable exists in the system. How can I set it easily and how can I add the postgres drivers to it ? ( I know how to under Linux, not windows )

    You write Class.forName() using the name of the PostgreSQL driver class, just like you always do.
    As far as classpath goes, you set that the same way, too: using the -classpath option when you run java.exe.
    You shouldn't have a CLASSPATH variable in the system. One size does not fit all. You should know how to set it every time you compile and run using the -classpath option for javac.exe and java.exe. Read the javadocs for these tools.
    %

  • 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

  • Any easy way to set *.jars classpath in windows

    Is any easy way to set the classpath for serveral jars in windows?
    for example, if I have 1000 jars in a folder "C:/MyJar", is this the only way to set the classpath with:
    CLASSPATH=C:/MyJar/Jar0001.jar; C:/MyJar/Jar0002.jar; C:/MyJar/Jar0003.jar; .........; C:/MyJar/Jar1000.jar
    ?

    Is any easy way to set the classpath for serveral jars
    in windows?
    for example, if I have 1000 jars in a folder
    "C:/MyJar", is this the only way to set the classpath
    with:
    CLASSPATH=C:/MyJar/Jar0001.jar; C:/MyJar/Jar0002.jar;
    C:/MyJar/Jar0003.jar; .........; C:/MyJar/Jar1000.jar
    ?You shouldn't have a system CLASSPATH environment variable.
    You don't add every JAR for every project to a system CLASSPATH. You should be doing it on a project-by-project basis, preferrably with a script or an Ant build.xml.
    Doing it with a system environment variable makes your apps less portable, because now you depend on the target machine being set up in a particular way. You should figure out how to package your apps appropriately so clients don't have to worry about that setup issue.

  • 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

  • 8.3 filenames on classpath under Windows XP

    Hi,
    I have an application where the classpath may include paths with unicode characters. Since there is no obvious way to pass such paths to the JVM at startup, I have tried to convert the paths to the short (8.3) format prior to passing them to the JVM (as this format seems to be free of unicode characters). However, any paths supplied to the JVM in this way seem to be ignored e.g. having AClass inside jar C:\classp~1\My.jar means the jar won't be found. I'm running under WinXP.
    The system property java.class.path correctly contains the short name and File objects created with such a path correctly resolve. Can anyone tell me which classloader to look at to see where the items on the classpath are being examined and how to actually debug this? I'm thinking the only way around this is to implement my own classloader :(
    Thanks in advance,
    James.

    OK - have investigated this a little further; it turns out that the URLClassLoader first resolves the full path and then converts it to a URL; the URL conversion code changes the unicode entries into hex characters which the file system does not recognise. To summarise the code, the conversion that takes place is effectively:
    File pathEntry = new File(pathString);
    File canonicalFile = pathEntry.getCanonicalFile(); // path contains unicode characters
    URL pathEntryURL = sun.net.www.ParseUtil.fileToEncodedURL(canonicalFile); // URL now contains hex characters; e.g. c:\classp~1\My.jar resolves as c:\classpath%ce%af%ce%b1\My.jarClearly the use of the ParseUtil class is at fault here as it does not encode the path in a way that is fully compatible with the OS filesystem.
    Personally I think this is a bug - can anyone else offer me an opinion on this??

Maybe you are looking for

  • Webutil upload file problem

    I use webutil_file_transfer.Client_To_AS_With_Progress( c:\temp\mytxt.txt, '\\192.234.43.233\d$\myFolder' ,'Upload to Application Server in progress' ,'Please wait' ,false ,null); but I can't upload the file it always returns boolean false

  • Does Siri work on iPhone 4 os6.1.1

    Hello peeps!....I use an iPhone 4 and recently update my O'S to 6:1:1.....does Siri work on it ( my iphone4)?

  • Problem with HMI tutorial

    I am trying to run the HMI tutorial.  Everything is just like the TPC getting started guide (including the successful test of the NI TPC service), until I try to build Touch Panel Tutorial.lvproj. It starts to build then I get: *.c is a missing VI or

  • Purge page group

    Hi, I develop an uploader for item in portal with the version 9.0.4 of PL/SQL API. Items can be deleted by user. Deleted items cannot be set as active items through the API (expired items can be set as active). I need to re-create deleted items. The

  • Update Installation messed up existing Adobe Acrobat application

    I was using my Adobe Acrobat 9 Pro Extended when a message window popped-up for an update installation. Dumb me I clicked yes and went ahead with the installation. After it was all done I tried to continue work but my Adobe Acrobat now doesnt work. I