The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Java programming question

Steel AngelSteel Angel Registered User regular
edited June 2007 in Help / Advice Forum
So I'm programming in Java again for the first time in a while for a summer class since it seems to be easier to do what I need to in Java than it would in C/C++. I've forgotten a number of things about Java or never learned them in the first place due to what my classes covered though so I've had a few issues pop up.

One snag I've bumped into and that is finding a good way to give a demonstration in class of what I've created at home. I'm using Eclipse at home (also have access to Visual Studio 2003 for what it's worth) while my school's computers use NetBeans, which I was unable to even install on my computer and even if the university machines had Eclipse, having to start up an IDE and load the files, then run them is kind of time consuming. Is there a good way to make my finished project more transportable? Like the equivalent of making an .exe with C/C++?

Big Dookie wrote: »
I found that tilting it doesn't work very well, and once I started jerking it, I got much better results.

Steam Profile
3DS: 3454-0268-5595 Battle.net: SteelAngel#1772
Steel Angel on

Posts

  • ValkunValkun Registered User regular
    edited June 2007
    There you go.

    It's a free program that embeds a class(es) into a windows executable and doesn't even require that the computer running the executable have Java installed at all.

    Valkun on
  • ffordefforde Registered User regular
    edited June 2007
    In Eclipse goto File->Export and select Build JAR. Pick which classes you want included and make sure you include a manifest file (turned on by default) and select the main class (the one that should run when the JAR is launched). This should launch your app with a double click from an OS that has a Java Virtual Machine installed, which your class machines obviously will have.

    fforde on
  • ValkunValkun Registered User regular
    edited June 2007
    I wouldn't make that assumption, fforde. Our CS lab has only an old version of JVM installed and it's impossible to update it without having administrative rights. Since most people are going to be using Swing instead of AWT for their projects, this can be a huge hastle.

    Valkun on
Sign In or Register to comment.