This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IDEA: Distribute GUI Project

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we wrap up a GUI project so that it will run for everyone? I am confused by the .form files in the sense that something in IDEA parses that XML to create the Java bytecode. But what about outside of IDEA?
I know there is a "Generate to source.." plugin, but it blew up on a simple form and doesn't work.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the IDEA Documentation
GUI Designer Output Options: Unlike other Java IDEs you may have used, you have two options for the output:
Compiled runtime classes only (default)
Java source code
By default, GUIs that you create with the GUI Designer generate runtime classes when you compile the project. The intermediate step of Java source code is bypassed (at least from your perspective as a user). You can optionally specify that the compiled classes should be written to the compiler output directory configured for the project (see link below). If you prefer, you can change the GUI Designer's output to be Java source code. Code for the UI components is generated to the class to which each form is bound.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't quote me on this... but I think that you also need to include the runtime jars for IDEA GUI stuff. They can be found in IDEA_HOME/redist.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chris Mathews:
By default, GUIs that you create with the GUI Designer generate runtime classes when you compile the project. The intermediate step of Java source code is bypassed (at least from your perspective as a user).

Duh. Ok. As for the redist jar files. I don't think you need them. IDEA creates a package with class files for this. I browsed to my classes folder of my project and just ran:
java LoginDialog
from the command line and it just took off. No classpath anything needed specified. So I'm good to go. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic