DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
OS X Client

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Questions

Author

Message

mstang



Joined: 08 Oct 2006
Posts: 3

PostPosted: Sun Oct 08, 2006 8:31 pm    Post subject: OS X Client

Reply with quote


I would like to test the OS X client, but I'm not really sure where to start. I'm running OS 10.4.7 on a powerpc platform, when I download the beta it does nothing (no errors no action). I took a look at the source code (is it the source code for more than the client?) but couldn't find any instructions as to compiling it. I also downloaded the SWT files but I don't have any idea what to do with them. Any help you can provide would be appreciated.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Mon Oct 09, 2006 5:26 pm    Post subject:

Reply with quote


As far as I can understand the jar file ("dkplp.log.parser.jar") along with the non-SWT libs should work on OS X too as they are platform independent. The part that I can not get to work is properly packing the program so that it can be launched by clicking the program-icon.

If you use the terminal then you should be able to start it with the command
Code:
java -Djava.library.path=./lib -Xmx128m -jar dkp-log-parser.jar
if you're in the same directory as the jar file and have all lib files in a directory named "lib". So if you don't mind getting your hands dirty then you are welcome to try to pack the program so that it behaves as a native program (and please send a copy if you succeed). Another Java program that runs SWT and works on OS X is Azureus, so its package structure could possibly be investigated and duplicated.

Back to top

mstang



Joined: 08 Oct 2006
Posts: 3

PostPosted: Mon Oct 09, 2006 6:43 pm    Post subject:

Reply with quote


I was very confused until I realised that the OSX download is called dkp-log-parser.app but it is really a directory. I found the jar file under dkp-log-parser.app/Contents/Resources/Java and unsure what to do with the directory of swt files I moved them to a subdirectory called lib that I created under the Java directory. Using the command you gave me produced the loading screen and this on the terminal:

/Users/eusmist/Desktop/dkp-log-parser/dkplp/Contents/Resources/Java root# java -Djava.library.path=./lib -Xmx128m -jar dkp-log-parser.jar
java.io.FileNotFoundException: /var/root/.dkplp/errors.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at com.lokorin.dkplp.ErrorLog.getCurrentLogContents(Unknown Source)
at com.lokorin.dkplp.ErrorLog.startLogging(Unknown Source)
at com.lokorin.dkplp.gui.GUI.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.lokorin.dkplp.gui.SplashWindow.invokeMain(Unknown Source)
at com.lokorin.dkplp.gui.Splasher.main(Unknown Source)


after this I tried copying all the swt files into the same directory as the dkp-log-parser.jar file and this gave me the same loading screen with this output:

java -Djava.library.path=./lib -Xmx128m -jar dkp-log-parser.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Decorations
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.lokorin.dkplp.gui.SplashWindow.invokeMain(Unknown Source)
at com.lokorin.dkplp.gui.Splasher.main(Unknown Source)

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Mon Oct 09, 2006 7:02 pm    Post subject:

Reply with quote


mstang wrote:
Using the command you gave me produced the loading screen and this on the terminal:

/Users/eusmist/Desktop/dkp-log-parser/dkplp/Contents/Resources/Java root# java -Djava.library.path=./lib -Xmx128m -jar dkp-log-parser.jar
java.io.FileNotFoundException: /var/root/.dkplp/errors.txt (No such file or directory)
...

after this I tried copying all the swt files into the same directory as the dkp-log-parser.jar file and this gave me the same loading screen with this output:

java -Djava.library.path=./lib -Xmx128m -jar dkp-log-parser.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Decorations
...


The first execution would appear to have gone better than the latter. The first error you got is only a minor one and should not affect the loading of the program. The second error basically says that it couldn't find what it was looking for in the lib directory. The following files should be in there:

Platform independent ones:
groovy.jar
jhall.jar
xmlrpc-1.2-b1.jar

Platform dependent ones (i.e. have to be downloaded specifically for osx):
swt.jar
libswt* (not sure how many files, but basically the SWT files you downloaded)

Back to top

mstang



Joined: 08 Oct 2006
Posts: 3

PostPosted: Mon Oct 09, 2006 7:43 pm    Post subject:

Reply with quote


I deleted the download I had been playing with and downloaded a new copy of the client. I created a lib directory under the Java directory and moved everything except dkp-log-parser.jar to the lib directory. Then, I copied the swt files to the lib directory. This time the application appeared for a second before crashing.

rtacs-power-mac-g5:~/Desktop/dkp-log-parser/dkp-log-parser.app/Contents/Resources/Java eusmist$ java -Djava.library.path=./lib -Xmx128m -jar dkp-log-parser.jar
doClip: empty path.
Bus error


rtacs-power-mac-g5:~/Desktop/dkp-log-parser/dkp-log-parser.app/Contents/Resources/Java eusmist$ ls -l
total 1816
-rw-r--r-- 1 eusmist eusmist 926611 Sep 23 15:44 dkp-log-parser.jar
drwxr-xr-x 4 eusmist eusmist 136 Oct 9 15:24 dll
drwxr-xr-x 12 eusmist eusmist 408 Oct 9 15:35 lib
rtacs-power-mac-g5:~/Desktop/dkp-log-parser/dkp-log-parser.app/Contents/Resources/Java eusmist$ ls -l dll
total 1200
-rw-r--r-- 1 eusmist eusmist 240676 Sep 23 15:44 libswt-carbon-3139.jnilib
-rw-r--r-- 1 eusmist eusmist 369744 Sep 23 15:44 libswt-pi-carbon-3139.jnilib
rtacs-power-mac-g5:~/Desktop/dkp-log-parser/dkp-log-parser.app/Contents/Resources/Java eusmist$ ls -l lib
total 10120
-rw-r--r-- 1 eusmist eusmist 3547 Oct 9 15:27 about.html
-rw-r--r-- 1 eusmist eusmist 1800974 Sep 23 15:44 groovy.jar
-rw-r--r-- 1 eusmist eusmist 26852 Oct 9 15:27 java_swt
-rw-r--r-- 1 eusmist eusmist 588596 Sep 23 15:44 jhall.jar
-rwxr-xr-x 1 eusmist eusmist 240676 Oct 9 15:27 libswt-carbon-3138.jnilib
-rwxr-xr-x 1 eusmist eusmist 369744 Oct 9 15:27 libswt-pi-carbon-3138.jnilib
-rwxr-xr-x 1 eusmist eusmist 24352 Oct 9 15:27 libswt-webkit-carbon-3138.jnilib
-rw-r--r-- 1 eusmist eusmist 1028069 Oct 9 15:27 src.zip
-rw-r--r-- 1 eusmist eusmist 978517 Oct 9 15:35 swt.jar
-rw-r--r-- 1 eusmist eusmist 108476 Sep 23 15:44 xmlrpc-1.2-b1.jar

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Mon Oct 09, 2006 8:03 pm    Post subject:

Reply with quote


mstang wrote:
This time the application appeared for a second before crashing.
...
doClip: empty path.
Bus error


Looks like progress at least Smile Sadly I'm not sure what to do to fix that error message. The bus error would indicate that it's below the Java level, and therefor probably something caused by SWT acting up.

The next step is probably to start searching for notes on using SWT on OS X.

Back to top

Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Questions All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
SoftGreen 1.1 phpBB theme © DaTutorials.com 2005