Page 1 of 1

Sources for 3rd party jars

Posted: Sat 30. Jul 2011, 05:17
by jamesjer
I am attempting to package jReality for the Fedora Linux distribution. Fedora has both "build from source" and "no bundled libraries" rules, which means that I have to package all of the 3rd party jars separately. I'm having trouble with a few of them. I hope this is the right forum; point me elsewhere if it isn't.

First, jjack 0.3 at http://jjack.berlios.de/ does not contain the JJackNativeClient* classes in lib/jjack_min.jar. Is that from an older release? Somewhere else?

Second, I'm having some difficulty determining the source of lib/pd.jar as well. I found the Pure Data web site, but am having difficulty locating this particular jar. A pointer would be much appreciated.

Third, I got smrj.jar and smrj-client.jar from the smrj repository, but I don't see the classes in lib/smrj-app.jar. Where are the sources for those classes?

Finally, I had to do this to build successfully with the current upstream version of jterm: sed -i 's|import jterm|import de.jtem.jterm|' src-ui/de/jreality/ui/viewerapp/BeanShell.java

Thank you!

Re: Sources for 3rd party jars

Posted: Wed 3. Aug 2011, 21:07
by steffen
For the sources of jjack_min.jar and pd.jar we need to ask Peter Brinkmann, I'll let him know. The sources of smrj on sourceforge are outdated, I'll update them soon and post here.

Thanks for packaging jreality for Fedora!

Re: Sources for 3rd party jars

Posted: Thu 20. Oct 2011, 13:18
by cfleury
One of my trainee tries to use JReality and to deploy it on several windows machines. However he has a problem with the smrj-client.jar lib. It seems that there is a problem for the creation of the temporary files when jar files are downloaded:

Code: Select all

C:\Documents and Settings\localadmin\Desktop\JReality\LightClient>java -Djreality.config=.\config\cave.center -Xms256M -Xmx512M -Djreality.jogl.quadBufferedStereo=true -jar .\lib\smrj-client.jar tcp 4444
Oct 19, 2011 7:42:35 PM de.smrj.tcp.management.ClientEnvironment doConnect
INFO: connecting to 192.168.81.2:8844 with de.jreality.scene.proxy.smrj.ClientFactory
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.io.File.createTempFile(Unknown Source)
        at java.io.File.createTempFile(Unknown Source)
        at de.smrj.tcp.management.ClientEnvironment.downloadClasses(ClientEnvironment.java:117)
        at de.smrj.tcp.management.ClientEnvironment.doConnect(ClientEnvironment.java:82)
        at de.smrj.tcp.management.ClientService.doConnect(ClientService.java:199)
        at de.smrj.tcp.management.ClientService.processCommand(ClientService.java:191)
        at de.smrj.tcp.management.ClientService.access$100(ClientService.java:53)
        at de.smrj.tcp.management.ClientService$SinglecastReceiver.run(ClientService.java:138)
        at java.lang.Thread.run(Unknown Source)
So he fixes the problem by decompiling the smrj-client.jar, modifying the ClientEnvironment.java and recompiling the jar. He modifies the downloadClasses() method by changing the following lines:

Code: Select all

// HUGO FIX BUG '/' is not usable on windows
//File tmpFile = File.createTempFile(cpEntryName.replace(File.separatorChar, '_'), ".jar");
File tmpFile = File.createTempFile(cpEntryName.replace(File.separatorChar, '_').replace('/', '_'), ".jar");
It works, but he has very often some "StreamCorruptedExceptions" which it's very annoying. I suppose this problem comes with the decompiling/recompiling.

Is it possible to have the source of the smrj-client.jar soon ?

Thank you very much.

Re: Sources for 3rd party jars

Posted: Fri 28. Oct 2011, 04:27
by jamesjer
I'm still interested in pursuing jReality in Fedora, but I do need the answers to the questions I asked 3 months ago. Have you heard from Peter Brinkmann? Do you have time soon to update the SMRJ sources? Thanks.

Re: Sources for 3rd party jars

Posted: Fri 28. Oct 2011, 09:29
by Andre
I'll forward your request to Steffen, he knows Peter Brinkmann personally and has built the smrj.jar.

Re: Sources for 3rd party jars

Posted: Sat 29. Oct 2011, 21:46
by Andre
I got the smrj-project. Its attached as .zip file

Re: Sources for 3rd party jars

Posted: Sun 6. Nov 2011, 03:47
by jamesjer
Great! Thanks for the SMRJ sources. Do you know anything more about jjack or pd?

Re: Sources for 3rd party jars

Posted: Sun 6. Nov 2011, 04:41
by jamesjer
I figured out jjack. You are using classes on a subversion branch, named v04-proposal. So I need to package that, instead of version 0.3, which is the last released version. Now if I can just figure out the PD situation, I think we can make some progress.

Re: Sources for 3rd party jars

Posted: Sun 6. Nov 2011, 12:07
by Andre
jamesjer wrote:Great! Thanks for the SMRJ sources. Do you know anything more about jjack or pd?
Steffen was in holidays last week, I'll remember him about PD and jjack-min.

Re: Sources for 3rd party jars

Posted: Tue 8. Nov 2011, 15:49
by Andre
Peter just sent me the links to pdlib:
https://www.gitorious.org/pdlib

the jjack_min stuff is a smaller version of jjack an can be found in gitorious aswell:
https://gitorious.org/pdlib/jacknativeclient

Unfortunate these are newer versions of pdlib and jjack_min and they probably aren't compatible with jReality anymore. Peter just started to improve pdlib and will switch it from gitorious to GitHub in the next weeks. Afterwards he'll adapt the changes to jReality. Maybe we should wait until this change appears.

I'll keep you up to date...

best Andre

Re: Sources for 3rd party jars

Posted: Mon 9. Jan 2012, 18:20
by Andre
Peter just updated jReality with his audio stuff.

the requested libraries (libpd and jacknativeclient are now located at github.

https://github.com/libpd/libpd
https://github.com/nettoyeurny/jacknativeclient

best regards
Andre