|
I used Java, C, C++, Smalltalk, Algol and various assemblers in my professional life. The reason for choosing a specific language varied depending on what other people were using and what interfaces I was working with. Like I said before you make a choice based on your own specific needs or preferences.
|
|
|
|
|
I've tested other popular languages by writing a simple number guessing game. I hope to do the sam in Java.
The main thing I have against Java is that it does not compile into an EXE type program but instead it has the .CLASS extension so I need to type Java and the name of program.class to run my program. This make C# more attractive to me. However I'm going to see if there are programs that can convert a .CLASS Java program into an .EXE file.
I do like the way the main Java program can call other .CLASS files when needed and access variables without any problems.
Brian
|
|
|
|
|
Member 14154627 wrote: I do like the way the main Java program can call other .CLASS files when needed and access variables without any problems. All the other languages are able to do the same. The only difference being how the resulting object files are packaged.
|
|
|
|
|
It seems to work for console type programs but when I try it on a form (platform) program using C# then I have problems in sending text to the text field on the form from a different class.
I have not tried it in Java when creating a Java form (platform) program.
Brian
|
|
|
|
|
Then you should open a proper question in the C# forum.
|
|
|
|
|
All I'm doing at this stage is comparing Java to C# as I have not decided which programming language to program with.
I did research the C# problem and there is no easy solution.
Brian
|
|
|
|
|
There is no problem, apart from the one you appear to have created. Moving data between classes works exactly the same in C# as it does in Java.
|
|
|
|
|
|
Thanks for the links Richard.
Brian
|
|
|
|
|
Member 14154627 wrote: The main thing I have against Java is that it does not compile into an EXE
That isn't a valid reason for making a language choice. There are many, many other factors that go into creating and maintaining software and even with marketing and selling it.
|
|
|
|
|
What I'm seeking is a program language that creates programs that I can run by double clicking on them and also a programming language that is able to create a user interface (a form with buttons).
I know Java and Python can do this but it means using other programs to turn the program into what I want it to me.
With Java you end up with a ProgramName.class or PrograNamem.jar and if I double click on either file my Windows 8.1 computer can't run the program.
It seems to me that Java is popular because you can write programs for tablets and smartphones...then again I could be wrong.
Brian
|
|
|
|
|
Member 14154627 wrote: What I'm seeking is a program language that creates programs that I can run by double clicking on them and also a programming language that is able to create a user interface (a form with buttons).
That is a description of a very trivial aspect of any application.
Member 14154627 wrote: It seems to me that Java is popular because you can write programs for tablets and smartphones...then again I could be wrong.
I have been writing server applications for decades using it. But then those had far more significant functionality than how one started the app itself.
|
|
|
|
|
What, Magnets?
Or is that just me and the surgical steel implants?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
It was a big deal for big enterprise before .Net gained traction.
And most thought it had to do with JavaScript, or vise-versa ... which meant something ... or not.
It would be more popular but Sun objected to MS "extending" Java, so MS built .NET and the rest is history.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
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.
Brian
|
|
|
|
|
A mature language and platform. A lot of libraries and good free/open source development tools.
|
|
|
|
|
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
Brian
|
|
|
|
|
I have a feeling there is a free utility that can create .exe files from Java programs. Google shoul be able to find it for you.
|
|
|
|
|
So far I've found Launch4j, Exe4j and JET.
I'm not certain which is the better program to use on JAVA.
|
|
|
|
|
There is only one way to find out.
|
|
|
|
|
I've just discovered NetBeans. Maybe that's what I'm looking for.
|
|
|
|
|
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:
|
|
|
|
|
Thanks for the information Dhananjay.
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?
|
|
|
|