Adding a desktop icon for a JavaFX native packaged app [duplicate] - java

This question already has answers here:
Creating a desktop icon using JWS JNLP for a JavaFX app
(5 answers)
Closed 7 years ago.
I have a JavaFX app that I'm doing native packaging with. I'm packaging the app for Windows using the InnoSetup 5+ approach. How can I set up the installer so that it creates a desktop icon for the app?
Thanks.
Update: I'm not sure why this has been marked as a duplicate. I'm not using Java Web Start / JNLP (i.e. hosting my app in a web page), just native packaging for Windows to produce an .exe.

I was able to trigger desktop icon creation using javapackager -shortcutHint=true .... This works when creating .exe's and .msi's.
See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javapackager.html.

Related

Prompting a user whether java web start application is running or not? [duplicate]

This question already has answers here:
How to differentiate between different JavaWS applications from the list of processes in the task manager process list?
(2 answers)
Closed 6 years ago.
I need to display a prompt to a user who is using a web application depending on whether a java web start application named javaws.exe(The name which appears in the Taks manager on running the application) is running or not on his machine , How do i achieve this ? Thnx In Advance .
For security reasons, browsers can't do things like checking which applications are installed.
There used to be a way to check using Javascript and ActiveX in Internet Explorer:
http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/launch.html#ie
But that link is quite old, only works in IE, and probably needs special Internet Settings in order to work now.
You might be better off trying to launch a "test" WebStart application from a browser page. Then you can add some instructions to your page to say how to install WebStart "if the application doesn't launch properly". Instructions for launching here:
https://docs.oracle.com/javase/tutorial/deployment/webstart/running.html#web

I want to create a Desktop Application in Net beans based on Java [duplicate]

This question already has answers here:
Why can't I find Java desktop application in Netbeans 7.1
(4 answers)
Closed 9 years ago.
I want to make a Desktop Application in Net Beans.
Please help me as i am new to Net Beans to start developing a Java based Desktop Application.
I have Net Beans 7.1 but i cant find any feature which can help me start making a Desktop Application.
I found this below a bit link useful but my Net Beans IDE does not have any option under
Java as Java Desktop Application
http://netbeanside61.blogspot.in/2009/08/making-executable-desktop-application.html
You are using 7.1 and the tutorial is for 6.1.
The menu has changed, the reason: Why can't I find Java desktop application in Netbeans 7.1
But it doesn't really matter that much, at least in your case, just select Java > Java Application. You'll still have a GUI that will allow you to create windows and components by using your mouse.
For the purpose of learning, I recommend that you install the old Netbeans, so that you can follow the tutorial. As you gain knowledge, you'll be able to figure out things by yourself.
no need to take java desktop application,
create a java application, then you can create GUI in it
I have got an atleast start to my Question thanks to all who have commented & answered , still searching further to get something better.
This link helped me:
https://netbeans.org/kb/docs/java/javase-deploy.html

How to create a Java Desktop Application in NetBeans IDE 7.2.1? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Why can’t I find Java desktop application in Netbeans 7.1
I used to have the option to create a new "Java Desktop Application" in Netbeans 6.9.1. However, I can't find this option any longer in NetBeans IDE 7.2.1.
Is it still available?
The party line from the Netbeans project contributors is to use the Netbeans Platform. In the wizard look under Netbeans Modules.
The Swing Application Framework (SAF) that you're probably remembering has been abandoned.
Netbeans Platform seems reasonably good, but it represents a fairly big effort to learn its conventions and capabilties.
This article talks about BSAF, which is some level of continued support for SAF. However BSAF took a hit when Netbeans dropped the wizard and form edit capabilities that are part of SAF. The most recent development is the return of SAF/BSAF form editing as a plugin for the v7+ Netbeans environments. You can no longer generate a SAF/BSAF app with the app wizard. A workaround is to make a SAF application in 6.9.1 and then import it as needed to make new ones in 7.2+.

java application on Windows 8 start screen

I have been googling on this but I can't find the answer.
Can anyone tell me if you can put a Java application on the windows 8 start screen?
According to java.com
When will Java be supported in Windows 8? Windows 8 is officially
supported with the release of Java 7 Update 10. Java will only be
supported in Desktop screen. Java will not run in the Start screen.
I am not sure how to interpret this since I do not know the startscreen of Windows 8 and they talk about internet explorer 10 on the same page which makes me think they may only be talking about the browser.
Basically I want to have a tile to act like a classic windows icon. Is this the way it works and is this the way you can run a java application? Or do you need to go to the desktop interface first?
No. You can't.
All the apps on the Windows 8 start screen are the apps downloaded from the Windows Store.
All the other Java applications that you develop will run in the desktop environment, but not in the start screen.
As per this source, you can look forward towards creating apps for Windows Store using Java and then you can maybe think of putting a Java application on the Windows start screen.
You cannot put directly a Java application in the start screen in windows 8 (just as you couldn't create shortcut icons on the Desktop in Windows 7), however notice this is rarely what you want with a Windows desktop application.
Most of the times you will want to wrap your Java desktop application with a windows installer which will put the start screen icon on windows 8.
Your Java code will then be launched by the installer executable which might do some house cleaning jobs like checking what compatible version of Java is installed in the computer and if required install a newer one.

Java Application vs. Java Desktop Application in Netbeans [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Netbeans GUI editor generating its own incomprehensible code
In Netbeans(older versions), there are two types of applications to choose from when you're starting a new project. Java Application and Java Desktop Application.
What are the differences between these two types?
EDIT :
In newer versions of Netbeans, the Java Desktop Application is gone and only Java Application is available. Does that mean they have converged the functionalities of those two types in to one?
Now I'm using Java Application to create programs with GUIs as described here. Is it the correct way to go about it regarding creating applications with UIs?
Java application means core java application with no ui. and java Desktop Application means application with ui using Swing. In java desktop application you can use the drag n drop tool to create UI
While the answers provided are all correct, I wish to add some details. The Java Desktop Application is more like a template for a Java Swing UI app. It provides the Main App, the Main View and the About Dialog by default. You can add all your UI components thru the Main View class.
Other than that it's quite similar to a regular Java App. Note that you can also create a Java Swing UI app by selecting the regular Java App template.
This is supported until NetBeans 7.0. Now its deprecated and developers are adviced to use the NetBeans platform to develop UI applications. But you can definitely continue to create Swing Apps if you'd wish.
Java Desktop Application is the java application with UI components, while Java Application represent an application with core java libraries.
Please note: This(Java Desktop Application project type) is dropped in newer versions(7+) of NetBeans.
Since it is dropped, you can imagine, it's not preferable.

Categories

Resources