How to self-update a Java Desktop Application? - java

I built a java desktop application with Java8 and JavaFX. And everything works fine.
But now I have a new challenge! I googled a lot about how to self-update a java desktop app, but all the results I found were old.
Is there an Open Source library that can manage self-updates for java applications like https://github.com/Squirrel?
If not, what is the best way to build something that will allow my desktop app to self update?
Thank you.

There is a lib called UpdateFX which handles the update process for you. Only drawback is that it only works with single jar apps so if you are using extra libs you have to extend it.

Related

Method to implement Windows Explorer icon overlays with Java

I am writing a cloud-sync application in Java with .jni integration to virtualize a cloud file-system in windows explorer.
Now i want to implement icon overlays like owncloud to see the state of a node like this:
I found some solutions for C#. Is this also possible with Java if using a jni interface to get access to the Icon Handlers.
Anyone knows a existing solution?
P.S. Tha last question for this is 4 years old so there is eventually a new solution for modern systems with java8 in combination with a native .dll available.
Thank you for any hint.
I just found a solution for Java 1.7+ in combination with native and jni dlls. Works with Windows Vista+, Mac and Linux.
"Liferay Nativity is a cross-platform library for adding icon overlays and context menus to file browsers."
You can find the GIT project here:
https://github.com/liferay/liferay-nativity
Anyone sucessfully integrated this? Trying to do a test implementation now.

How to let java applet download file

I am new to Java Applets.
I have the following situation: the client asks for a Java Applet to do Function1, i already have this Function1 developed and tested but in C#. so i say that i can use my C# dlls in Java applet.
I already tried to use UnmanagedExports and it works fine with simple cases, but i faced a problem when i have dependencies for the dll that is called from Java Applet. the problem is that Java Applet crashes when the dll have any dependencies and i did not find any solution for this case.
My Questions are:
1- How to solve dependencies problem using UnmanagedExports?
2- If no solution for problem 1, what is the best approach that i should use to complete this task.
I think that Java Applets can setup an application on client PC, this application can run on a standalone app context (this application will be a c# application that can perform the task on the background and gives the feedback to the Java Applet). Is this possible?
To answer your first question, try Dependency Walker for resolving dependencies for a specific DLL.

Flash Builder With Java Integration

i am trying to build a desktop application that requires no run time, therefore Flash builder seems to be the only choice.
There is a Flash Builder and Java Integration as show here
but it seems to be a server that is supporting it.
Its more applicable to website?
Is it feasible to do it , if i am building a desktop application?
Flash Builder, if used to generate a desktop app, will require Adobe AIR to be installed, which is a small runtime. If you prefer, it can accessed as a website as well, which will require the flash player be installed.
Flex, the language used by Flash Builder, has to be able to connect to Java somehow. You can use SOAP objects, BlazeDS, JSON, HTTP or even PHP/JavaBridge combo (Zend Server Community Server and PHP 5.3 have one).
The point is, there has to be an accessible server somewhere with JAR files on it. How you get to it is totally up to you.
For more FlashBuilder & Flex info, I recommend http://adobe.com/devnet/flex
Java require a VM to run, so there might not be a way to do it without one.

Netbeans Project Types

I'm building a Java application using NetBeans 7.0. The app is intended for use on Windows, so I guess the tool I'm really making most use of is Java Swing (for the cool, nifty screen elements).
My question relates to NetBeans' process of creating the various project types. The application I'm building is based on the "Java Desktop Application" template (?). My problem is that there seems to be a nice load of bloat built into that, and I can't figure out how to remove most of it without blowing up the app.
As a test, I created a "Java Application"project, but this has the opposite problem -- there's absolutely nothing built into the code, and I can figure out how to add anything. Specifically, a Java Desktop Application project created in NetBeans give me the ability to directly edit the screen layout like in Visual Studio. However, a Java Application does not appear to have this capability, I have no idea how (or even if) this can be addressed.
If I could start with a no-frills Java application, and add some capability to edit its layout and control the function of the screen elements (i.e. make it a windows application, I think), that would be just about perfect.
Does anybody have a suggestion for a minimal, but functional NetBeans application start point??
Thanks,
R.
If you start with a plain Java Application then as you realize you start with a bare bones type application. To add a GUI you can add New>JFRame Form. It adds a class that extends JFrame and Netbeans will recognize that it should open it in the visual editor for you.

How to use a NetBeans Platform application from another Java application

Imagine you have a NB Platform application and you would like to use that application via some other app that you've created.
In essence, how can you learn how to start an application if you don't want to use the NB Platform or IDE. You'd somehow need to figure out the stuff that NB Platform does for you when it loads up a module.
Thanks goes to Geertjan for these:
http://netbeans.dzone.com/news/using-intellij-idea-netbeans
http://java.dzone.com/news/ide-agnostic-swing-rcp-develop

Categories

Resources