Forums Register Login

When does this become useful?

+Pie Number of slices to send: Send
At this point I've read several java books and am now making applets and slowly trying to learn more classes and what not. But,
when do all these programs become useful? If I make a mini program for my girlfriend where I have a JFrame and she clicks
on one of ten buttons, all of which lead to a reason I care about her, how do I actually send it to her? I don't see in any
of my books how to put whatever I program into actual action. Sure, I can send them to my friends who have eclipse, netbeans,
or something else but how do I send stuff to my girlfriend, mom, or someone who knows zero about programming?
+Pie Number of slices to send: Send
No one needs an IDE to run a Java program -- just a JRE.

Applets are a special deal because they aren't stand-alone Java programs and must be executed within a web page in a browser. Applets, by the way, are considered an obsolete technology and are disabled by default in many browsers.

Your best bets for sharing programs are to create standalone programs (JavaFX or Swing for GUI) and send your friends an executable jar, or to create web applications that are hosted on the Internet and accessible by browser.
+Pie Number of slices to send: Send
As Bear says, nobody creates applets any more.
Create your .jar (if possible) with compatibility to an old version of Java. Java7 or maybe even Java6. You can do that with the -target option when you compile the files. That way you don't have to insist people install Java8 before they can run your app. Or install Java8 quietly while she isn't watching. If she doesn't create her own programs she only needs a JRE.

The javac page for Windows. (Java7 version)
+Pie Number of slices to send: Send
If you use an IDE, creating an executable jar (i.e. that starts when you double click on the
program icon in the file manager) is only a matter of one or two mouse clicks. It is that easy.

Greetz,
Piet
+Pie Number of slices to send: Send
This link will help you create an exe from an executable jar. It assumes you have Eclipse, but you can create an executable jar without Eclipse, or with another IDE.

Then send your girlfriend the exe, and let the romance flow!

(I've never thought of sending my wife a program. Interesting idea...)
+Pie Number of slices to send: Send
 

Knute Snortum wrote:(...)
(I've never thought of sending my wife a program. Interesting idea...)


It sure is cheaper than sending flowers every month...
1
+Pie Number of slices to send: Send
If I thought I could get away with sending her flowers every month. Every week, more likely.
a wee bit from the empire
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 699 times.
Similar Threads
7yr old arrested
[Rated Very R] Typical Russian Joke
Jini Singles Bar Pattern??
comfort care
What it is ??
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:10:34.