• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java framework to get access to local desktop resources such as launching local browsers, etc.

 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am looking for a Java framework (preferably opensource) that gives me access to desktop resources such as launching browsers, etc. I know that it can be done with Applets and JNLP/Webstart, but I do not want to develop a Swing application or an applet, and I am wondering if there is a framework that provides such tunneling capabilities.

I appreciate any responses/pointers.

Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
410
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't want a Swing application or applet. What do you have? A standalone program with a main method? You could call Runtime.exec which lets you run any commands the user can run. Which includes launching a browser. You don't have as much control as I suspect you want that way though.

Can you give an example of what you want to do?
 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I have a web application. Right now, through a Swing application that gets downloaded via JNLP, my Swing application gets access to local desktop browsers. I want to phase out the Swing application, and I was wondering if through JNLP or some other mechanism my web application can somehow create a tunnel through which it can get access to local desktop resources without the need to keep Swing application in place.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
410
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh. So it is a web app. I don't think it can, but I look forward to reading other replies.
 
Paul Clapham
Sheriff
Posts: 21876
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your web application can get access to local resources in various ways which may or may not be browser-specific. If you're looking for a Java way to do that, then applets are what you're looking for. If you reject applets then you have rejected Java and will have to look for something else.

Note that all of the methods which allow browsers to access local resources will be subject to security restrictions which you would have to deal with, as allowing web applications to access your computer is an obvious malware source. In fact Java had to be seriously repaired over the last year as it was being used as a vector for malware. So don't expect to just put something in your web app and access the local resources.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!