This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes diff classpath and jndi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "diff classpath and jndi" Watch "diff classpath and jndi" New topic

diff classpath and jndi


Joined: Jul 09, 2005
Posts: 18
Hi everbody,

When to use jndi.lookup mathod and when to use classpath

Thanks in advance
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29220

You use JNDI to look up a resource (like a DataSOurce) or an EJB. The classpath is used by the IDE or java to compile - it is not something you use in coding yourself.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: diff classpath and jndi
Similar Threads
problems compiling with dependencies
Classpath problem.
forte for java
UnMarshalException - Nested ClassNotFoundException again
How to set a class path?