JNDI problem

Dear

I have installed J2sdk1_4_2 and J2eesdk1_3_1. I compile the code like as follow :

Properties env = new Properties();

env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");

env.put("java.naming.provider.url", "jnp://localhost:1099");

env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

and got the error :

no Properties class

What is my problem ?

[468 byte] By [eac7b14] at [2007-9-30 20:38:28]
# 1
Is java.util.* package imported?import java.util.*;
dvohra09 at 2007-7-7 1:27:41 > top of Java-index,Administration Tools,Sun Connection...