Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Aysnc JLink UnsatisfiedLinkError

Dman

New member
Hello I have written an application to use JLink in asynchronous mode and it works as a stand alone app. I have now changed that code into an EJB and I am now getting an error trying to open proe here is my code:

public cadServiceBean() {
this.openProE();
//System.out.println(System.getProperty("java.library.path") + " <<<");

}

static{
System.loadLibrary("pfcasyncmt");
}

public void openProE(){
String proe_cmd = "proe1";// -g:no_graphics -i:rpc_input";

try{
System.out.println("Establish a connection with ProE");
connection = pfcAsyncConnection.AsyncConnection_Start(proe_cmd,null);

session = connection.GetSession();
}
catch(Throwable x){
System.out.println("openProE exception: "+x);
}
}

The error I get while JBoss publishes the bean is:
java.lang.UnsatisfiedLinkError: com.ptc.pfc.pfcAsyncConnection.pfcAsyncConnection.AsyncConne ction_Start(Ljava/lang/String;Ljava/lang/String;)Lcom/ptc/pf c/pfcAsyncConnection/AsyncConnection;

I have all the class paths and path variables set correctly. I have also moved the pfcasyncmt.dll file into a few various places including the jdk/bin I am using.
 
Hello


Check to see if your PRO_COMM_MSG.EXE path is set in your environment variables. And check to see which Java Runtime that you are using for the Wildfire release. Check to see if JBoss is seeing the correct pfcasync.jar file. If you have any more questions please contact me at www.felcosolutions.com. Good luck.
 

Sponsor

Back
Top