Skip to Main Content

Java Programming

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!

Need to specify class name in environment or system property

807603Nov 8 2007 — edited Nov 12 2007
Making a web application sort of following:

http://www.netbeans.org/kb/55/mysql-webapp.html#preparingDB

I made a class that connects to the DB ie accessDB and have put two methods inside:

public void insert(a,c) inserts record into database
public String getContent() gets content

I then put in little tester Main method to test the 2 methods thats when i get this error

Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
null

Please can anyone help me???

Thanks in advance.

Edited by: Scientist2 on Nov 8, 2007 5:30 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2007
Added on Nov 8 2007
7 comments
2,998 views