Creating a runnable jar from eclipse
<p>Ok, I have been trying this for past 2 days and I can't get anywhere. I am using Eclipse and I have 4 src files and few external library files that I am using. Now that I am finished with my application, I am trying to create a runnable jar from Eclipse. When I do it from my home pc, it works fine, but when I copy and paste that jar file into my work pc, it doesn't load at all. Also, from my work pc when I try to create the jar file only the jframe and all the gui interface loads up, the other options within the interface don't seem to work. </p>

<p>I want to be able to create a .jar or some kind of executable file that anyone who I gave that ONE file to can use without having any JRE, JDK and etc. I thought having Java installed in a computer would work, would they need all of these kits? I want it to make it work without using the source files and librarys through a cmd or IDE. </p>

<p>Thanks!</p>

<p>Edit:</p>

<p>java -Xmx1024m -jar filename.jar works on command line. but it gives me heap space error if I do java -jar filename.jar Exact erorr: "Exception in thread "AWT-EVENTQUEUE-0" java.lang.OutOfMemoryError: Java heap space</p>

<p>Is VM argument possible through eclipse when creating the jar? I don't want to create an exe to put the argument</p>
