i have finally worked the bugs out of my latest project. i want to make it an executable jar. the problem is i have java 7 and many people don't(i use command line). i thought to use eclipse, it seems to let you compile using older compilers. it will also probably help make the jar. i can create a workspace and import the java files but that is as far as i get. it is driving me crazy
I presume you have all the Java files ready on Eclipse or whichever IDE? Then you can r‑click the project name and click export as jar. There is an option on one of the windows to add an entry point (=class with main method). On Windows® you can double‑click the jar and it runs with javaw. You may have to set up a file association first. I am pretty sure there is an analogous operation on other OSs.
two seperate problems. compile using older compiler. then make a jar. i couldn't find export as jar
i get as far as create a workspace
create a project
that is as far as i can get
i can jar it from the command line but then only people with java7 can run it.
this eclipse program is way too complicated for me. it would take months to learn it
hell, i can't even do it from the command line
all the tutorials i read only confuse me more
i created a executable jar from the command line.
i can execute from the command line by typing java -jar Paint.jar
however when i double click it doesn't work
i think i know why. it was compiled with java7 but windows sees java 6
i need to compile using java 5 or 6
i also need to get java 6 off my machine