File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Building an executable with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Building an executable with Eclipse" Watch "Building an executable with Eclipse" New topic

Building an executable with Eclipse

Andy Wahr

Joined: Aug 03, 2004
Posts: 1
I'm trying to build an executable of my code with Eclipse. All I really would have a clue about is a JAR file, but if there's other options I'm not set in my ways.

So I exported the project I was working on (which has been tested very well and works when launched directly from Eclipse) and put it into a JAR file with Eclipse. However, when I try to run (double click) the JAR file there's a long pause and then an error message ("Fatal Exception Occured: program will exit"). Obviously one of us did something wrong but what? I don't really know what I'm doing when it comes to creating anything Java so rate me as clueless in this area. I am using another JAR for this program, but to the best of my knolwedge Eclipse included that in the export, and just for good measure I included it in the same folder as the JAR I exported.

Also, this program is very memory intensive, so I want to make sure that the memory pool isn't limited, or is limited as little as possible. When I try to run the program through eclipse it works, but when I do something that takes up a lot of memory, it gives me an out of memory error. However, I know that if the program was allowed to acess all the computer's memory it would be 1 or 2 orders of magnitude more than it needs. How can I avoid this problem?

I agree. Here's the link:
subject: Building an executable with Eclipse