SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2006, 04:12 PM
matrix35 matrix35 is offline
Sage Advanced User
 
Join Date: Aug 2006
Posts: 108
Java question

I'm wondering if anyone can help me on this subject. since sagetv is built on java maybe there are some java gurus that can answer this

I've built a Java app that uses my own windows DLL through JNI. The DLL does some Windows GDI calls to locate an window from a mouse (x,y) coordinates and grab its dimensions. I'm trying to convert this application to Linux. Having no knowledge with Linux or XServer I've tried to convert my code using winelib (www.winehq.com).

I was able to recompile my DLL into a shared linux library and created a wrapper for JNI. The code compiled fine without any complaints. My Java application is able to locate the new shared library and tries to load it. but when it does (try to load the shared lib) an error occures:

Code:
[localhost] /usr/java/jdk1.5.0_10/bin > Exception in thread "AWT-EventQueue-0"
java.lang.UnsatisfiedLinkError: /work/windowjni/libWindowJni.so: Can't load IA
32-bit .so on a IA 32-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
Has anyone here played with winelib and was successfull in loading it through JNI?

I can upload my code or PM them on request.

thanks.

moe.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.