-
Java
Hello, I have recently picked up Java coding and started learning the basics. However I am new to programming as a whole and am confused about a point.
I use NetBeans (IDE 6.9.3) and know how to make some very basic code and running it in Netbeans however as much as I look I cant seem to find a way to run the .java or .class files it puts out when I save it after working on it
Also I was wondering, after figuring out how to run the files how I would promt a user for a input to use as a string. And how to display outputs (such as strings or vars).
Im sorry if this is a long question but if you know and good websites or such please link them to me.
Thanks
-
Re: Java
The only semi-automatic launcher for Java is the executable jar. I don't know if Netbeans allows you to export these (don't see why it wouldn't), but Eclipse does has this function.
There are other solutions (such as creating your own Java application launcher, or creating a script file), but these are more complicated. Of course, you can always launch Java applications from the command-line (note: this can get very complicated, particularly for larger projects). For a reference, see The official command-line docs.