[Linux Lobby] AFLobby Beta 3.9.7 - Page 7

[Linux Lobby] AFLobby Beta 3.9.7

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Alpha 16 source code:

Image

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)
User avatar
elio
Posts: 133
Joined: 29 Dec 2006, 06:44

Post by elio »

you have a link to your latest unitsync java extras to compile in?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

They havent changed since I first put them up in your Mac thread.
User avatar
elio
Posts: 133
Joined: 29 Dec 2006, 06:44

Post by elio »

k thanks
User avatar
elio
Posts: 133
Joined: 29 Dec 2006, 06:44

Post by elio »

AFLobby doesn't find the lib...
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

That's the whole thing we are trying to fix, lol. Read the lat 5 pages of this thread.
User avatar
elio
Posts: 133
Joined: 29 Dec 2006, 06:44

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

can someone else try building the windows unitsync? I beleive my unitsync source may be borked.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

How do I build unitsync in a "jni aware" manner? And isn't it the same unitsync on windows as on linux?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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
User avatar
SupaSonic
Posts: 26
Joined: 24 Feb 2007, 14:43

Post 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

Code: Select all

java -cp . -jar AFLobby.jar
but no luck.

Maybe I'm just talking nonsense.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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
User avatar
elio
Posts: 133
Joined: 29 Dec 2006, 06:44

Post by elio »

no luck on macos either. Same complaint.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The environment variable library path must contain the folder unitsync and aflobby are in or the current working folder.
User avatar
elio
Posts: 133
Joined: 29 Dec 2006, 06:44

Post by elio »

the environment variable is == the current working folder that contains aflobby and unitsync
Post Reply

Return to “Linux”