Port Java to C/C++ or java to .dll?

I've built a java app part of which I want to make available to C/C++ programs as an API.

I see two possibilities:

1. Rewrite the whole program (about 80 000 lines..... :-(

Are there any tools out there to support that?

Tools to map java-classes to C/C++ libraries to make that port easier?

2.Bundle the jar with a jre and turn it into a dll. Is that possible?

Any other suggestions?

Grateful for any help!

/Jonas E

[472 byte] By [Jonas_27a] at [2007-11-27 4:43:16]
# 1
I saw commercial Java-C++ bridge about 5 years ago, but can't remember its name. It allowed one to "call" Java from native (C++) code. Probably google can help you to find one.
MaximKartasheva at 2007-7-12 9:55:00 > top of Java-index,Development Tools,Solaris and Linux Development Tools...