[jboss-user] [Beginner's Corner] - Re: JNDI-Exception in NamingContextFactory

Wolfgang Knauf do-not-reply at jboss.com
Wed Mar 2 11:17:05 EST 2011


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion

"Re: JNDI-Exception in NamingContextFactory"

To view the discussion, visit: http://community.jboss.org/message/590680#590680

--------------------------------------------------------------
Hi,

when the "CLASSPATH" is specified for a directory, it will only inlcude "*.class" files, but not "*.jar" files.

But it might work, if you add a wildcard to thee end:
export CLASSPATH=$CLASSPATH:/opt/jboss/client/*

See here:
 http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html

I am not sure whether this feature was added in Java 1.5 or 1.6, so depending on your version it might not work. In this case, you have to add every single jar to the Classpath.

Hope this helps

Wolfgang
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/590680#590680]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110302/3146338a/attachment.html 


More information about the jboss-user mailing list