But is Java good for writing Window desktop programs which seem to dominate the market?
The problem I have is in finding a way to double click on a Java compiled program when using Windows 8.1 operating system.
I'd like to create a program that has an icon I can put on my Windows desktop and click on it to run the program. Is this possible with JAVA? So far I've seen no way to do this.
The only way I know to run a JAVA program is java -cp . programname
Netbeans is simply an IDE which automates a lot of processes to create your application. Whatever it does I don't think it will produce what you think. To be honest you are largely wasting your time following this route. Just accept that Java has its own system and work with that. If you want true executable applications then switch to C++ or C#.
Maybe you should go for Intelij rather than NetBeans or Eclipse!
And yeah you can develop Windows applications with java.
But I don't get you do you want to create an exe file or do want to create windows just like
chrome or some other apps do have!
If yes then you can use JavaFX or swing awt to create windows Form:thumbsup:
My reason for creating an exe from a Java program is for an easy way to run the Java program. All I would need to do is to double click on the EXE file or create an icon for the EXE file and put it on the desktop of my windows desktop computer so bI can double click on the icon like I do for other programs.
Also rather than having a number of compiled class files that calls each other I'd like to have one file. I think you can do this as a JAR file but then can the Jar file be created as a EXE file so I can double click on it to run the program.
Is stand alone programs possible in Java so that the Java library parts are contained in a file or is it necessary to create an install file so the user has the Java libraries installed on his computer to run the Java program I have written?
Broadly speaking, no. What you are trying to achieve is not easy with Java. As I mentioned earlier there are a couple of applications on the internet that can package things up to make it look like an ordinary executable, but it is still a bodge. If you want true clickable exe files then you will have to switch to a language that supports it: C, C++, C# etc., C# being probably the best choice.
Last Visit: 31-Dec-99 18:00 Last Update: 12-Apr-21 22:38