| View previous topic :: View next topic |
| Author |
Message |
red
Joined: 11 Mar 2010 Posts: 1
|
Posted: Thu Mar 11, 2010 1:09 pm Post subject: checking to see if Coroutine is installed |
|
|
Some of our clients will not be using Coroutine with our product. Therefore they will not want to install the jars. Whenever I run
| Code: | | ddeServer = new com.neva.DdeServer(); |
without Coroutine installed it errors with
Exception in thread "Thread-6" java.lang.UnsatisfiedLinkError: com.neva.Coroutine.VFV(Ljava/lang/String;)I
at com.neva.Coroutine.VFV(Native Method)
at com.neva.DdeServer.<init>(DdeServer.java:140)
I have tried putting it in a try catch block. However, an exception is never really thrown, so it never reaches the catch.
Is there anyway to check to see if Coroutine is installed before I create a new DdeServer?
thanks, |
|
| Back to top |
|
 |
ken

Joined: 25 Mar 2004 Posts: 634
|
Posted: Fri Mar 12, 2010 4:27 pm Post subject: |
|
|
| Quote: | | Some of our clients will not be using Coroutine with our product. |
| Code: | | ddeServer = new com.neva.DdeServer(); |
Attempt to execute above code indicates that JavaDde.jar will be present . Coroutine4Java.jar won't. Doesn't make much sense to me.
Anyway I would call Class.forName(class_name) to check whether class class_name is available. |
|
| Back to top |
|
 |
|