Setting Up CLASSPATH variable

Dears,
In PI 7.1 we are getting one error:
We are getting an u201CSAPClassNotFoundException:u201D. The reason for this is as I got we need to set the classpath in the PI Server.
Please do as below:
The following is an example of the CLASSPATH statement that is used for a Unix/Linux application:
CLASSPATH =.:/home/usr1/mssqlserverjdbc/Driver/sqljdbc_2.0/enu/sqljdbc.jar
Please suggest how can I set this path on AIX ,Is it a env variable.If yes then as I am getting aftre setting ones and logging out this variable will get dissaper.
So please suggest how can i set this path.
SHivam

Hi,
Where you are facing problem?? r u facing problem when you using JDBC Communication Chanels??
Regards,
Raj

Similar Messages

  • Novice Trying to Set The CLASSPATH Variable

    I am trying to compile a file (which can be downloaded at http://java.sun.com/docs/books/tutorial/getStarted/QandE/FirstClass.java). Despite being able to successfully compile several other files, this particular one will not compile. According to my JAVA Tutorial book, the problem may lie in the CLASSPATH variable, but I am having a great deal of trouble trying to set/understand it. My operating system is WINDOWS 2000. PLEASE HELP!!!

    in win 2000, the classpath can be set by the following process.
    Right Click My Computer icon and click on properties.
    (This can be done by going to the Control Panel and Double Clicking the System icon too).
    Once you have the properties window of the system click on the 'Advanced' tab.
    There is a button called 'Environment variables'.Click on it.
    You will have a part called 'System Variables' there.
    Here there is an entry called Classpath. Just add the entry of what you want to add to the classpath, separating each entry with a ';' semicolon as mentioned there and click on the Set button.
    That should set the classpath.If that does not take effect immediately, restart the system and it will take effect.
    Tell me if it worx.
    All the best. Bye!
    Cheers,
    Win!

  • Setting my Classpath variable

    Hi
    Could someone please help me get the classpath variable working
    C:\Java\sampledir\Java Game Programming;.;C:\Program Files\s1studio_jdk\j2sdk1.4.1_02\lib\tools.jar
    This is what I have in the Classpath variable now in my Windows 2000 O/S
    Now from what I gather with having this set up in the classpath I should be able to compile anything in the Java Game Programming Folder and I can do it right from the C:\ prompt. Am I correct in thinking this?? or do I need to be in the directory with the file I want to compile??
    The error message I recieve after typing from the C:\ prompt javac GameOver.java
    produces this error message
    error: cannot read: GameOver.java
    1 error
    Now I do know everything within the file is correct because it compiles and runs successfully in Sun One Studio. :)
    Thank you
    Scott

    The classpath is a way for the compiler to resolve class names it encounters in the source files.
    But you still have to give it the exact path to your source file !
    you don't need to be in the directory of the file, you can just give its absolute path from whatever directory you happen to be.

  • How can i figuere out my classpath variable

    the tutorial is saying that i need to create and appropriate class path. i know wer to go to set it but what should i set it to. if that makes any sense. you see im trying to run the hello world program and ive tryed everything but setting the classpath variable so that the os will know were to go to look for the information but i dont really know what state the path is in and i dont know what to set it to. id greatly appreciate the support.

    Open a Command Prompt window and type "echo %CLASSPATH%" on windows or "echo $CLASSPATH" on unix.
    That will show you your existing CLASSPATH.
    Mine looks like this:
    .;C:\program files\j2sdk1.4.2_02\jre\lib\rt.jar
    The Classpath contains all the jars and class folders that your program needs separated by ; (windows) and : (unix). So if your classes are in the folder: myapp\classes, then add
    ;myapp\classes
    to the end of your classpath.

  • Setting the CLASSPATH from the JVM by a class

    Hy experts
    I have an application thats searching a jar file and have to access classes from this jar file.
    There are two ways to do this:
    1.
    Loading the jar file byte by byte and create the classes to load them into memory. This is the hard way.
    2.
    Setting the CLASSPATH variable in the running program! Thats the easy way! May how does it works?
    Is there any possiblity to set the classpath in a running application or only in the shell?
    Thanks for help
    konrad

    the classpath is readin when you run the JVM ie issue the 'java' command, the environment cant be altered to update a new classpath. However, why not just put the files you wish to load at runtime within the current classpath you've setup. If you use the System.loadLibrary(), you should be able to pick up the classes you wish to readin at run time via this approach.
    good luck
    rob

  • CLASSPATH variable problem

    I have downloaded the Java 3D API but the compiler keeps telling me off for the java 3d packages not existing. How can I make it understand where the packages are and how to access them?
    Thanks Rufus,

    you must set the CLASSPATH variable to point to the java3d api jar files. Install the java3d to a jdk, then set the class path to include these jar files, go to the command line and type:
    C:\>SET CLASSPATH=%CLASSPATH%;c:\jdk1.3.0_02\jre\lib\ext\j3daudio.jar;c:\jdk1.3.0_02\jre\lib\ext\j3dcore.jar;c:\jdk1.3.0_02\jre\lib\ext\j3dutils.jar;c:\jdk1.3.0_02\jre\lib\ext\vecmath.jar
    *Assuming that the c:\jdk1.3.0_02\jre\lib\ext is the path to the java3d jars.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Setting classpath variable

    How shld i set class path variable?
    Pls help

    It doesn't work when you have multiple applications which needs different versions of the same classfile(s). E.g. Lets say that you have two applications that try to connect to a database. One requires a driver for oralce 8, and jdk 1.3, and the other requires a driver for oracle 9, and jdk 1.4. What do you do?
    /Kaj

  • How to set the CLASSPATH in Unix Server

    Hi, everyone~
    Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
    I wonder is the hp-ux support jsp and servlet or not?
    In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
    Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
    regards,
    tzeyik

    Tomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
    Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD

  • How to set the CLASSPATH for an  Sql Server 2005 database... help me please

    Hello! Guys I want to access a Sql Server 2005 database from Java.I've downloaded the JDBC 2.0 driver from Microsoft.I've copied the sqljdbc4.jar file to C:\Java\jdk1.6.0_14\db\lib.And I've added this to the classpath C:\Java\jdk1.6.0_14\db\lib\sqljdbc4.jar.The classpath variable is defined as a user variable.Well the point is that I get that nasty exception:Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.So if you know how to help me,please do so.Thank you :)

    Hi Timo,
    My jdev version is 10.1.3.3.0, this is for R12. By PR i mean to say process request and PFR process form request in the controller.
    In the Process request of the controller, i am finding the checkbox bean and assigning the firepartialaction for it.
    Later in the process form request for the fired event, i am trying to handle the rendered property of the messagetextinput. Is this a right approach?
    my code below
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)oawebbean.findChildRecursive("X_FLAG");
    if(oamessagecheckboxbean != null)
    oapagecontext.writeDiagnostics(this, "Message check box Bean found:", 1);
    FirePartialAction firepartialaction = new FirePartialAction("change");
    oamessagecheckboxbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firepartialaction);
    oamessagecheckboxbean.setFireActionForSubmit("change", null, null, true);
    oapagecontext.writeDiagnostics(this, "setting fire event", 1);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    oapagecontext.writeDiagnostics(this, "Inside Process Form Request", 1);
    if("change".equals(oapagecontext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAMessageTextInputBean bean = (OAMessageTextInputBean)oawebbean.findChildRecursive("X_NUMBER");
    if(bean!=null){
    bean.setRendered(Boolean.TRUE);}
    Thanks,
    Malar

  • How can i set the classpath??

    CAN ANYONE PLEASE HELP ME HOW TO SET THE CLASSPATH IN WINDOWS ME ,WHAT IS THE RIGHT CODE TO SET THE CLASSPATH I AM USING JDK1.3 VERSION.
    THANK YOU VERY MUCH
    ERICK LUCCIO

    Try this way Start->Program->System tools-> System Summary>startup .Try to find the variable classpath,make sure the path is correct.The classpath contain the the *.java & *.class you save. I'm also new in java .This path & classpath question is so trouble to me .Now i'm running jdk1.3.1_2 in WINME ,WINNT AND WIN2000 IN no problem.........

  • How to set a CLASSPATH in JBuilder8

    I know it's probably a really easy answer or an incredibly stupid question but how do you set a classpath using JBuilder8 I'm trying to run a web-service and I need no access "axis jar files" I could really do with some help
    thanks
    "be wildered IT intern"

    Hello and thank's ever so much for your help sadly It still won't co-operate at this stage I can only beg for help it's vtal I have this running today!!!
    so this is the main part of the code thats causing problems
    package samples.userguide.example2 ;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    import javax.xml.rpc.ParameterMode;
    I've added the libraries and this is what the window shows :
    project project properties _ libraries required
    Axis
    Apache Soap
    Xerces
    Ant
    JDK 1.4.1-b21
    When I try to run anything I get the following errors
    Erreurs
    Classe org.apache.axis.client.Call non accessible ; fichier org/apache/axis/client/Call.class introuvable � la ligne 3
    Classe org.apache.axis.client.Service non accessible ; fichier org/apache/axis/client/Service.class introuvable � la ligne 4
    Classe org.apache.axis.encoding.XMLType non accessible ; fichier org/apache/axis/encoding/XMLType.class introuvable � la ligne 5
    Classe org.apache.axis.utils.Options non accessible ; fichier org/apache/axis/utils/Options.class introuvable � la ligne 6
    Classe javax.xml.rpc.ParameterMode non accessible ; fichier javax/xml/rpc/ParameterMode.class introuvable � la ligne 7
    Classe Options introuvable dans classe samples.userguide.example2.CalcClient � la ligne 12
    Classe Options introuvable dans classe samples.userguide.example2.CalcClient � la ligne 12
    Classe Service introuvable dans classe samples.userguide.example2.CalcClient � la ligne 33
    Classe Service introuvable dans classe samples.userguide.example2.CalcClient � la ligne 33
    Classe Call introuvable dans classe samples.userguide.example2.CalcClient � la ligne 34
    Classe Call introuvable dans classe samples.userguide.example2.CalcClient � la ligne 34
    Variable XMLType introuvable dans classe samples.userguide.example2.CalcClient � la ligne 38
    Variable ParameterMode introuvable dans classe samples.userguide.example2.CalcClient � la ligne 38
    Variable XMLType introuvable dans classe samples.userguide.example2.CalcClient � la ligne 39
    Variable ParameterMode introuvable dans classe samples.userguide.example2.CalcClient � la ligne 39
    Variable XMLType introuvable dans classe samples.userguide.example2.CalcClient � la ligne 40
    Imports
    CalcClient
    CalcClient()
    main(String[] args)

  • Java newbie questions...Setting the classpath in Unix

    When you set the classpath, how do you include anything already in the classpath? For instance, if your profile sets your classpath to
    "/home/weblogic/:home/weblogic/weblogic.jar, and you want to add MyJar.jar to it, can you enter:
    export classpath=~:MyJar.jar
    My question really boils down to how do you prefix the existing CLASSPATH environment variable to any new classes or jars you want to add to it. I think it's the tilde, but I'm not sure.

    In csh, the CLASSPATH environment variable is modified with the setenv command. The format is:
    setenv CLASSPATH path1:path2
    In sh, the CLASSPATH environment variable can be modified with these commands:
    CLASSPATH = path1:path2:...
    export CLASSPATH
    ====
    (From the Sun documentation)
    or, in sh,
    export CLASSPATH=path1:path2
    should work

  • Setting the classpath

    doing a jsp page which calls for:
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.sql.*" %>
    <%@ page import="sun.jdbc.rowset.*" %>
    <%@ page import="java.util.*;" %>
    at the top of the page , so i downloaded the jar files that i needed and set the classpath to:
    C:\jdk1.3.1_01\rowset.jar;C:\jdk1.3.1_01\jdbc2_0-stdext.jar;C:\jdk1.3.1_01\jndi
    this is the first time ive set the classpath
    but when i run the page i get loads of Error: Could not find package named:
    anyone no what im doing wrong?

    When you say you "set the classpath", does that mean that you changed the system CLASSPATH environment variable, or that you went into the configuration of whatever it is that's running your JSPs and put those jars and directories into the appropriate place?

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

  • Setting my classpath in XP (pro)

    how do I set my classpath in XP Pro for my java software??
    i have got j2sdk1.4.1_01 and i rekon that the path should lead to the bin directory??
    This is obviosly very basic stuff, but I just cant get it right.
    I can compile (javac filename.java) without any problems, nut when i run (java filename), its saying that it can't fine java.dll and it couldnt find the Java 2 Runtime Environment!!!
    Please help, this is driving me crazy.
    Jim

    1. Right click My Computer on the desktop, select Properties
    2. Click "Advanced" tab
    3. Click "Environment Variables" button
    4. Select "Path" in "System variables" and click "Edit" button
    5. Enter "C:\j2sdk1.4.1_01\bin;" to the beginning of Path
    6. Select "OK" etc....it's done
    Depending on what applications you have on your system, you may have some classpath conflicts, but this should fix it for you.

Maybe you are looking for

  • Upgrade to GRC AC 10 and Integration with BI

    Hello, I am running a study to integrate GRC Acces Control 5.3 and business warehouse 7.02 and should install it to production soon. We also have an upgrade to GRC 10 in the pipe. I understood with OSS note 1667517 that no business content is deliver

  • Recursion in a jsp page

    I can't figure out where to put a method in a jsp page so that I can call it recursively. Tomcat keeps returning "Not expecting variable declaration here and pointing to the "private void methodname(..){" line. I know it probably something basic but

  • Registration window freezes- will not communuicate

    installing CS3 on new Dell w Win 7 - tried to enter serial number for registration- internet connection was lost(?) - fixed internet- now registration window comes up and freezes computer - should I just uninstall and try another installation?

  • Why is adobe download assistant downloading photoshop c6 in stead of Illustrator. How do I download

    How do I download Illustrator...the download assistant keeps going back to the c6 photo shop download and won't download Illustrator. I'm using the button on the "download Illustrator" page. and my computer says it's the same as the other assistant s

  • Hp officejet 6600 no longer printing in color

    My printer is no longer printing in color.  It prints with a little blue, but no magenta or yellow.  According to the printer, there is plenty of ink in all.  I have tried cleaning the printer heads, turning off and unplugging printer, shaking ink an