Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Test.java:8: package xxx does not exist

AravindhKNov 10 2011 — edited Nov 10 2011
Hi,

I am trying to compile the Test.java file using cmd. I have set the Java home and class path properly. why i am getting follwing error.

Test.java:8: package com.test.db does not exist
import com.test.db.ConnectJDBC;

The ConnectJDBC is the one of the java class used to connect the oracle server. It is compiled without any errors. But i am getting the error in Test.java class where i am using ConnectJDBC class as below.

package com.test.dao;

import java.io.*;
import java.sql.*;

import com.test.db.ConnectJDBC;

public class GetData
{
ConnectJDBC jdbc = new ConnectJDBC();
Connection con = null;
/* other codes*/
}
This post has been answered by 798692 on Nov 10 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2011
Added on Nov 10 2011
7 comments
1,123 views