jdbc classpath for linux

From: Jame Peterson (Peterson_at_discussions.microsoft.com)
Date: 11/23/04


Date: Mon, 22 Nov 2004 20:29:08 -0800


 have a question about Classpath on a linux machine.

I set the default profile to include the path to the msbase.jar, msutil.jar
and mssqlserver.jar.

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/opt/j2sdk1.4.2_04/bi
n:/opt/msSQLjdbc/lib/msbase.jar"
PATH=$PATH:"/opt/msSQLjdbc/lib/msutil:/opt/msSQLjdbc/lib/mssqlserver.jar

how ever I still get error
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver

any clue as to how to set your classpath up properly?



Relevant Pages

  • MSSQL2000 jdbc driver on UNIX --- (again)
    ... Yes, it was classpath problem. ... I revised my .profile and then it can work. ... My environment setting are showed as below: ... But can not show anything on UNIX. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • RE: CLASSPATH in .profile not used.
    ... Ensure your HOME directory setting within your OMVS Segment is the same ... CLASSPATH in .profile not used. ... what environment variables have been set by your .profile. ... I have defined the CLASSPATH variable in my .profile file. ...
    (bit.listserv.ibm-main)
  • Re: MSSQL2000 jdbc driver on UNIX --- (again)
    ... CLASSPATH in .profile. ... David Huang ... $SHELL ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: Anyone use variables to shorten classpath declaration?
    ... one profile sourced another, but the variable it uses as a shortcut ... isn't defined at the time the CLASSPATH is defined, however, if I ... Nigel Wade, System Administrator, Space Plasma Physics Group, ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.help)
  • Anyone use variables to shorten classpath declaration?
    ... Anyone use variables to shorten classpath declaration? ... where an application failed to find some jar files, ... one profile sourced another, but the variable it uses as a shortcut ...
    (comp.lang.java.help)