How to do something like Bonjour using open source library? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make a Java program that allow me this discover my nearby computers who is running the same problem. Which is similar like the iTunes, can discover nearby computer who enable sharing in the iTunes. How can I implement it using open source library? Also, cross platform is very important. Any ideas on that? Thank you.

Well, Bonjour itself is open source, so you might want to start there...
http://developer.apple.com/opensource/

jmdns is a full Bonjour/Zeroconf implementation written in Java compatible with Apple. There is no dependency on native libraries, it is 100% Java.
http://jmdns.sourceforge.net/

I think you definitely should take a look at UPnP. Considering the cross-platformness of such a solution, and its implementation using Java, you can consider
UPNPLib
Cyberlynk for Java
And even the various ways to connect an OSGi application to UPnP.
Finally, considering existing implementation of Bonjour using Java, this reply to a stackoverflow question sums it up.

You can use Avahi - an open-source implementation for zeroconf, which is the protocol used by iTunes. There's a nice list of options for Java at:
http://elliotth.blogspot.com/2009/03/registering-service-with-dns-sd-from.html

I don't know how far it ever got, but Java had the JXTA project, it might do what you want.

Related

Building a Charting Library on the JVM from Scratch [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I thought I would ask around here as there are a lot of experienced devs with much more understanding of the Java ecosystem than me.
So, I am looking to build a plotting library for some simulation data I am working on. This will consist of having some subset of matplotlib's functionality. From what I understand I can use the following on the JVM:
JavaFX / Swing
Java2d / java3d
Java OpenGL
Could anyone kindly tell me if any of those are suitable for what I am intending to do, or suggest a better alternative?
I do not want to use an existing plotting library as this is for a project which prevents me from doing so. I can however use a lower level library to build higher level components.
Thanks!
JFreeChart is based on Java2d (AFAICT), so that is definitely an option. You could start by looking at their code, understand their approach and then re-implement the pieces you need. Some will argue that in that case use the library, but as you stated you can't. But there is no shame in using what others have done.

Trusty TEE implementation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am currently working on banking app in Android(native development with Java, JNI but not in PhoneGap, ionic etc.). I have search a lot but did not find any tutorial for the same.
trustonic: very very expensive
for Trusty TEE but not understood how to use it and where to use?
Question:
How to communicate with trusted application?
How to install trusted application to trustzone OS with client application?
what will it need to implement(like libtee)?
is there any example available? if yes please provide the same.
How Trusty APIs call and if we need to do modify in code how to do that?
earlier I had worked on TEE development. But, never I used to use any SDK or plugin for the development. It was all AOSP. So, as you pointed out it is hard to find write-up openly available. There are set of sample sources available, which you may want to try along with your stock source. Here is the link.
You can also use build system applications (along with your system builds) using the API's from google. Then, you can just pull the application from system image and publish it (I know it's not a good idea!).If I can publish any blogs, I think it may help.

Need design guidance to develope java spring hibernate web application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to create java web based application using Spring-Hibernate. I know its not difficult to implement the functionality, but i need some help/guidance from the architecture perspective. Can any one suggest me the best design which will cover interfaces,design patterns etc.
Also need which version should i use of spring and hibernate.
The best way to start implementing a web application using the technologies you mentioned is to follow a tutorial from the large variety of tutorials you can find using google.
Another good option is to find a skeleton for an application that someone has created and shared in a source code sharing service like github or bitbucket (check the licenses also). You can check-out the code and have an initial working example you can work on and expand.
If something does not work during these attempts, then please come back here, search if your question is already asked by someone else, and if not place your question with specific code snippets and error messages you may get.
If everything works well and you need advices on different ways to improve performance, your architecture and the software patterns, then come back here also with a specific question, or in some cases you will find codereview more suitable for this kind of questions.
Good luck!

How to maintain database of words in a java dictionary application(other than files) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a java dictionary application...
I used jdbc for maintaining words but i realized that it won't work on other machines since i am making a desktop application...
suggest me a way to maintain words other than files
I don't think there is an alternative to using files if you want to persist your data - it will have to be stored somewhere!
What about the following:
- Use an in memory database that can be persisted to file (h2 for example)
- Use XML persistance - there are plenty of libraries to help.
My suggestion: http://www.manning.com/ingersoll/ :)
And after getting familiar with it, try Solr.
https://lucene.apache.org/solr/
Btw: Please make your question more specific. As this is your first post, I upvoted the question. But think of all the guys around here, who have no knowledge about your problem. Everyone wants to help, but you have to provide more information.
Why not use Embedded Derby?
It's platform independent, uses standard JDBC, and writes files which are accessible across any platform.
http://db.apache.org/derby/papers/DerbyTut/embedded_intro.html
There's no reason why you cannot use JDBC in a standalone java application incidentally. Think of JDBC as a kind of socket you can plug into, but what's behind that socket is entirely implementation specific, and usually can be defined by configuration.
JCR is another good example of this, but this kind of engineering technique is plentiful in the Java universe.

Extend already existing open source php tool in java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Please tell me, is it possible to extend any PHP based tool in Java programing language.
I am trying some open sourcve tools and found one satisfactory to most of my requirment. But my problem is that, the tool i found is developed in PHP language but i know only java language and there are some business requirment as well. I need to add some more features in this tool. What is the best possioble way to achieve this extension.
Please guide me friends.
Thanks a lot.
You can't wrap or extend PHP code from Java the way you would a Java library, but you might be able to call PHP code on your server and work with the results from your own Java application. See How can I execute a PHP script from Java?
Barring than that, I agree with the comment above. It might be easier to either learn PHP or rewrite the parts of the code that you need in Java.
After seeing in your comments what PHP tool you're talking about, rewriting in Java doesn't seem like much of an option. If you're starting a site from scratch (meaning you don't already have a Java application that you want to add this to) then PHP is not that hard to learn. Other than that, you could look for Java projects that do the same thing as the PHP tool you're looking at now.
Well, it would be useful if you'd tell us what exactly your PHP tool/framework does, maybe even give us a link to it's site, then I'm sure you'll get tons of recommandations for corresponding Java tool/framework that does the same thing. I don't think you need to remake a PHP tool in Java by hand, really I can't think of PHP libraries that don't also exist for Java as well...

Categories