• Post Reply Bookmark Topic Watch Topic
  • New Topic

When does this become useful?  RSS feed

 
Ryan Bishop
Ranch Hand
Posts: 143
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Piet Souris
Master Rancher
Posts: 2044
75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Knute Snortum
Sheriff
Posts: 4281
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...)
 
Piet Souris
Master Rancher
Posts: 2044
75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:(...)
(I've never thought of sending my wife a program. Interesting idea...)

It sure is cheaper than sending flowers every month...
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I thought I could get away with sending her flowers every month. Every week, more likely.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!