No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am trying to configure log4j for one of my web projects. For that I want to read the log4j.properties file. Below is the code [code] private URL url; private File file; file = new File(url.getPath()); DOMConfigurator.configure(url); [/code] Following is the error Exception in thread "Thread-1" java.lang.NullPointerException Then I try … |
|
Re:
Hi guys Iwant to connect java to oracle ,but Iam not familiarneither jdbc nor in setting classpath however depending on my little information,I used the following code [CODE=java] import java.sql.*; public class OraThin { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("oracle.jdbc.driver.OracleDriver"); // // or // DriverManager.registerDriver // … |
|
Am having problem calling a simple stored proc to insert data from a java program. The insert statement works fine when called directly with prepare statement. But when I use call it through a strored proc I get an error. jar file is ojdbc5.jar. - oracle10g. Then i tried another … |