Page 7 of 49
Posted: 24 Feb 2007, 18:41
by 10053r
Also, if you are willing, perhaps you could make the source available to me. I already have eclipse installed, and could probably go through a test / change cycle in a few minutes instead of the few hours it is taking now.
Posted: 25 Feb 2007, 01:21
by AF
I keep intending to upload the source code. Its a netbeans project so I'm fine if you change things as long as what you do doesnt f*ck up netbeans GUI editor, so if you modify the java source of the pregenerated file all I have todo is open netbeans and save the file and netbeans will undo your changes by generating the code from scratch again.
btw the change to the uploader means if I had uploaded alpha 15 you'd all be complaining about malformedinput exceptions in the JUpdateChecker class.
Posted: 25 Feb 2007, 01:45
by AF
Alpha 16 source code:
yuck, that graphics terrible.
If you change something todo with the GUI using something other than netbeans, tell me what you changed so I can redo it so netbeans doesnt f*xxor it all up. (its a Netbeans 5.5 project)
Posted: 25 Feb 2007, 14:24
by elio
you have a link to your latest unitsync java extras to compile in?
Posted: 25 Feb 2007, 14:39
by AF
They havent changed since I first put them up in your Mac thread.
Posted: 25 Feb 2007, 14:43
by elio
k thanks
Posted: 25 Feb 2007, 15:45
by elio
AFLobby doesn't find the lib...
Posted: 25 Feb 2007, 17:54
by 10053r
That's the whole thing we are trying to fix, lol. Read the lat 5 pages of this thread.
Posted: 26 Feb 2007, 00:30
by elio
I gathered that, but AF had been rather impatient before I left about getting unitsync built with jni; I was just agreeing with the previously mentioned posts.
Posted: 26 Feb 2007, 14:03
by AF
can someone else try building the windows unitsync? I beleive my unitsync source may be borked.
Posted: 27 Feb 2007, 18:47
by 10053r
How do I build unitsync in a "jni aware" manner? And isn't it the same unitsync on windows as on linux?
Posted: 27 Feb 2007, 18:49
by AF
If you don't have root authority, (and even if you do, you may prefer to do it this way), you should ensure that the LD_LIBRARY_PATH environment variable contains . (the current directory). To check, issue the command:
echo $LD_LIBRARY_PATH
If it does not, then place the following command in your .profile, .bashrc, or whatever, file:
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
An alternative is to set the library path when you invoke java, thus:
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH java Chu &
http://www.colina.demon.co.uk/linux.html
Posted: 27 Feb 2007, 19:04
by AF
from what i can tell, java looks in the library path environment variable for unitsync. Under windows it also looks in the current workign directory but not udner linux, and linux users ened to take actions accordingly. Environment variables are read onyl in java and no java side fix is possible.
I'll release a new alpha soon with more information and revert to the old laodlibrary function which will need a libunitsync.so rather than a unitsync.so
Posted: 27 Feb 2007, 19:29
by SupaSonic
Shouldn't there be some kind of a command line switch for this? I don't know about the libraries, but I think there is a switch -cp for class files. Maybe there's something similar for libraries...
I've tried
but no luck.
Maybe I'm just talking nonsense.
Posted: 27 Feb 2007, 21:14
by AF
Posted: 28 Feb 2007, 00:30
by 10053r
K. This time there is a new message.
Code: Select all
Unsatisfied link error, make sure you have a JNI aware unitsync library in the same folder as AFLobby, path: /home/username/Desktop library path:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client/:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386:/usrl/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/../lib/i386
I tried moving libunitsync.so to the first spot specified under library path, but no luck.
Also, I get a message that I should update to alpha 17 when I launch alpha 17.
Posted: 28 Feb 2007, 00:35
by AF
oooh, ignroe that me forgettign to update a version string again.
And is that when running via java -jar aflobby.jar or aflobby.sh? "/home/username/Desktop" should appear in the second string following library path: if the script worked as intended.
also:
If it does not, then place the following command in your .profile, .bashrc, or whatever, file:
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
Posted: 28 Feb 2007, 01:49
by elio
no luck on macos either. Same complaint.
Posted: 28 Feb 2007, 02:03
by AF
The environment variable library path must contain the folder unitsync and aflobby are in or the current working folder.
Posted: 28 Feb 2007, 02:05
by elio
the environment variable is == the current working folder that contains aflobby and unitsync