Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chapter 1 HF example error (OH WOW)

 
Andree Charfen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OH wow... I have been trying to run the example in chapter 1 for 2 days now! hahaha.... ok here is where I am:



C:\>java -cp %CLASSPATH%;AdviceAppClient.jar AdviceClient

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge

{....}

at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:25)
at AdviceClient.main(AdviceClient.java:11)


I made a search and couldnt find anything on this PARTICULAR error with the JDKBridge thing! Still fighting to get it running! PLEASE HELP ME
 
vishwa venkat
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is u'r classpath looks like?
 
Andree Charfen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
classpath = %J2EE_HOME%/lib/j2ee.jar;C:\java\SCBCD\Advice\
 
Andree Charfen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK... I am messing with everything I can.

What do I need to have on my hardcoded properties for the lookup. I dont get it yet!

Properties prop = new Properties();

prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory");
prop.put(Context.PROVIDER_URL,"127.0.0.1:4848");


???
 
Andree Charfen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OH YES! Got it working! Wow!

I got the example working after a lot of work. All the research helped me to understand a lot of things. I wished java was a little more transparent as far as configuration. I hate all the deal with CLASSPATH vars and stuff like that. Oh well...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic