For school project, we are writing a program in Java. However we are writing with Netbeans which uses Java 1.6, but the teacher's computer only has Ready to Program which uses Java 1.4. The compile we write won't compile on the teacher's computer using Ready to Program. Is there a way to compile the Java to a .exe so it can run off of the teacher's computer without any installation?

You might also look into creating a JAR archive with a manifest that sets the main class. The teacher might have the jre installed for the newer version even though the app used to compile is 1.4 based

How frustrating! Why on earth would your teacher give a Java programming assignment, but only have a 1.4 version of the JRE?! Uh, LAME!

You could always compile down to the older version, but you'll have to forgo using all of the cool stuff in Java 5 and 6. You need to get her to upgrade. The last time I used GCJ -- it reminded me more of a problem than a solution.

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum