0

I need to find a way to make my java program run on computers without Java. I made a pretty simple survey/answer type program for my school, and to make it easier to use I used a wrapper (JSmooth to be specific). But it seems that for the teachers that don't have Java installed, the program does not execute. Is there a wrapper that allows for execution of Java code without the JVM installed? I know that the thought of converting Java(Write once, run anywhere) to a specific platform-code is pretty bad, but it's necessary for my situation.

5
  • There are a lot of questions on this topic - see stackoverflow.com/questions/147181/… Commented Feb 11, 2013 at 20:55
  • 1
    looks like excelsior JET might do the job Commented Feb 11, 2013 at 21:00
  • See also this answer. I am surprised your teachers use only Windows based computers. Aren't Macs popular with educators? Commented Feb 11, 2013 at 21:11
  • @lonewart A native compiler such as Excelsior JET sounds like an overkill in your situation. If JSmooth is indeed not capable or bundling a private JRE, check out the other options listed in my article. But feel free to apply for a free license (Yes, I work for Excelsior.) Commented Feb 12, 2013 at 6:27
  • @AndrewThompson Macs are expensive and public schools lack money :( Commented Feb 21, 2013 at 19:10

2 Answers 2

1

There's not much that can be recommended. You might be able to find something such as JNC or the GNU compiler but they are out of date and your results may vary. If I were you, I would give it a shot anyway. Theres lots of existing discussion on this, just look around you'll find what you need.

EDIT: Take a look at this.

Sign up to request clarification or add additional context in comments.

Comments

-1

Try something like the Java Native Compiler.

EDIT:

Also see this discussion.

2 Comments

Not for a few years, but the OP simply wants to get something running for a school project. It's that or install a JRE.
There is also the GNU Java compiler. Again, not developed in a while, but likely still usable. gcc.gnu.org/java

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.