if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
General XMetaL Discussion
»
Exception in thread "main" java.lang.UnsatisfiedLinkError: no SQJNILib in java.l
Pages:
1
« previous
next »
Print
Author
Topic: Exception in thread "main" java.lang.UnsatisfiedLinkError: no SQJNILib in java.l (Read 1306 times)
Sailesh
Member
Posts: 2
Exception in thread "main" java.lang.UnsatisfiedLinkError: no SQJNILib in java.l
«
on:
May 05, 2010, 12:11:48 PM »
I am using SQJavaAPI.jar to run the below Java code to accept all changes in an XML document edited using XMetal.
I am working with Java application (JDK version 1.4) which I am using to control XMetal Author (Version#: 5.5.0.221)
Code
___________________________________________________
import com.sq.types.SQVariant;
import com.sq.xmetal.api.Application;
import com.sq.xmetal.api.Documents;
import com.sq.xmetal.api._Document;
public class AcceptAllXmetalChanges {
public static void main(String[] args) throws Exception {
Application xmetal = new Application();
xmetal.setVisible(false);
Documents docs = xmetal.getDocuments();
_Document doc = docs.Open("/EDITED_XML_WITH_TRACK_CHANGES_ON.xml");
doc.AcceptAllChanges();
SQVariant sqV = new SQVariant("/XML_WITH_ALL_CHANGES_ACCEPTED.xml");
doc.SaveAs(sqV);
System.out.println("All change accepted");
}
}
___________________________________________________
I am getting the following error message:
___________________________________________________
Exception in thread "main" java.lang.UnsatisfiedLinkError: no SQJNILib in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.sq.types.SQDispatch.<clinit>(SQDispatch.java:18)
___________________________________________________
Regards,
Sailesh
Logged
Sailesh
Member
Posts: 2
Re: Exception in thread "main" java.lang.UnsatisfiedLinkError: no SQJNILib in java.l
«
Reply #1 on:
May 05, 2010, 12:33:04 PM »
One correction: The above code is working fine when run from desktop. I am getting the error message when I am running this code in Linux server.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1550
Re: Exception in thread "main" java.lang.UnsatisfiedLinkError: no SQJNILib in java.l
«
Reply #2 on:
May 05, 2010, 04:19:14 PM »
We're not sure how you could be running Java code on a Linux server that would be controlling XMetaL Author. Even if is somehow possible to get XMetaL Author running on Linux (perhaps using WINE?) we are unable to help with this issue as we do not test our products on platforms except those specified in the install-readme.html file that comes with each version. For XMetaL Author Essential 5.5 and XMetaL Author Enterprise 5.5 the versions of Windows supported include Windows XP and Vista (only). Following is from the install-readme.html for 5.5:
System requirements
* Microsoft Windows XP or Vista
* Pentium 133 MHz processor
* 256 MB of available RAM (512 MB recommended)
* VGA display, 640 x 480 resolution or higher
* Minimum 300 MB of disk space (400 MB recommended)
* Microsoft Internet Explorer, version 6.00.2600.0000 or later
The only thing we can guess is that your Java code is running on Linux but trying to control XMetaL Author installed on a separate Windows machine, perhaps attempting to use DCOM or something? We do not test this and do not support it so you are on your own in this case as well. If DCOM is involved you may need to create a wrapper of some kind to enable SQJavaAPI.jar to work with it or find some other solution.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...