开发者

Beginner recompiling an open source java project into my custom project

I'm using a standalone bridge called FLOSC.jar to communicate between Flash and MaxMSP over OSC ports. Flosc is an open source Java project.

My main question is: how easy/difficult would it be for a Java novice like myself (tho I'm experienced in higher level languages) to write the same bridging functionality into my own java program using the classes provided by the flosc project?

Can someone please take a look at th开发者_开发技巧e source and let me know what files I need (there's a confusing number of them!) and give me an outline as to how to go about this?

Thanks a lot!


My advice to you is to just use FLOSC. For one thing, 9 source files/classes is not a lot for what you are doing. If it was something with 50 classes/files, with tons of extra functionality that you don't need, I'd say if the task you want to do is small, maybe you could rewrite it to get rid of the bloat. But in this case I don't see the point of a rewrite since your version of it would probably have close to the same level of complexity. You're going to want to have an OscMessage class, an OscPacket class, a TcpServer class, etc, etc.

It's almost never a good idea to rewrite something that works unless you have lots of time on your hands and you want to learn about a technology. If FLOSC doesn't work right or is buggy, that's another story -- then sometimes it's easier to rewrite than debug when you didn't write the buggy code in the first place. But again that depends on how much code you have to rewrite.

As to whether it would be difficult for you, that's hard to tell -- what do you mean by "higher-level languages"? How much programming experience do you have?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜