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/StringLcom/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.
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/StringLcom/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.