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.
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++?
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.
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.
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.
Posts
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.