GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes jdic and outlook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jdic and outlook" Watch "jdic and outlook" New topic
Author

jdic and outlook

randy butler
Greenhorn

Joined: Jan 20, 2009
Posts: 27
I'm trying out the jdic(jdic-20061102-bin-crossplatform) for launching my native mail program which happens to be outlook. So I wrote a desktop app that when you hit a jbutton it should launch the new message dialog and this works fine within netbeans 6.5.1 using JDK 5. So after I deploy the application and try to run it the new message dialog does not come up and I get no errors. The system the that's running the application is using JDK5 on windows XP. Is there something I'm missing why will the program run in netbeans but not standalone? I went ahead and added my code and any in site to this problem will be much appreciated

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
can't help you with your problem,
but I just have to say that with a name like 'randy butler'
I'd never hire you to work in my home :-)
randy butler
Greenhorn

Joined: Jan 20, 2009
Posts: 27
Oh your silly ;-)
but no ideas?
randy butler
Greenhorn

Joined: Jan 20, 2009
Posts: 27
I ran the program through command line and got the following error

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesktop/jdic/desktop/internal/impl/ServiceManagerStub
at org.jdesktop.jdic.desktop.internal.ServiceManager.getService<Unknown Source>

is the library not being added?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You need to add the JAR to your CLASSPATH


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
randy butler
Greenhorn

Joined: Jan 20, 2009
Posts: 27
I did add the JAR to the CLASSPATH.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I'd double check what you've got deployed, for some reason it's not picking up that Jar in your CLASSPATH... Maybe you can try echoing the runtime environment to see what it thinks your classpath is.
 
GeeCON Prague 2014
 
subject: jdic and outlook