Sources for 3rd party jars

Problems with Java, jogl, etc?
Post Reply
jamesjer
Posts: 4
Joined: Sun 24. Jul 2011, 03:33

Sources for 3rd party jars

Post by jamesjer » Sat 30. Jul 2011, 05:17

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!

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Sources for 3rd party jars

Post by steffen » Wed 3. Aug 2011, 21:07

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!

cfleury
Posts: 2
Joined: Thu 20. Oct 2011, 12:50

Re: Sources for 3rd party jars

Post by cfleury » Thu 20. Oct 2011, 13:18

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.

jamesjer
Posts: 4
Joined: Sun 24. Jul 2011, 03:33

Re: Sources for 3rd party jars

Post by jamesjer » Fri 28. Oct 2011, 04:27

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.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Sources for 3rd party jars

Post by Andre » Fri 28. Oct 2011, 09:29

I'll forward your request to Steffen, he knows Peter Brinkmann personally and has built the smrj.jar.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Sources for 3rd party jars

Post by Andre » Sat 29. Oct 2011, 21:46

I got the smrj-project. Its attached as .zip file
Attachments
SMRJ.zip
(59.6 KiB) Downloaded 91 times

jamesjer
Posts: 4
Joined: Sun 24. Jul 2011, 03:33

Re: Sources for 3rd party jars

Post by jamesjer » Sun 6. Nov 2011, 03:47

Great! Thanks for the SMRJ sources. Do you know anything more about jjack or pd?

jamesjer
Posts: 4
Joined: Sun 24. Jul 2011, 03:33

Re: Sources for 3rd party jars

Post by jamesjer » Sun 6. Nov 2011, 04:41

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.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Sources for 3rd party jars

Post by Andre » Sun 6. Nov 2011, 12:07

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.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Sources for 3rd party jars

Post by Andre » Tue 8. Nov 2011, 15:49

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

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Sources for 3rd party jars

Post by Andre » Mon 9. Jan 2012, 18:20

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

Post Reply