classnotfoundexception.
I am running a simple java code to connect to MSSQL DB. Using IDE its works perfectly well because we have all the required libraries at one place.
Once I put it on TeamSite server under customer_src/src directory and put all my jars in customer_src/lib. It gives me error for these two lines.
[html]
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection conn = DriverManager.getConnection(db_connect_string, db_userid, db_password);
[/html]
What should i need to get this working? In digging more into it. I see that the i need to add the sqljdbc.jar in the classpath. I already did that, but found no change with my error.
Can anyone throw some light on getting this working.
Thank You
Once I put it on TeamSite server under customer_src/src directory and put all my jars in customer_src/lib. It gives me error for these two lines.
[html]
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection conn = DriverManager.getConnection(db_connect_string, db_userid, db_password);
[/html]
What should i need to get this working? In digging more into it. I see that the i need to add the sqljdbc.jar in the classpath. I already did that, but found no change with my error.
Can anyone throw some light on getting this working.
Thank You
0
Comments
-
It might help if you provided the error message (including stack trace)0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.