This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Native Compile to Shared Library?


Michael Purdy writes:

 > I'm revisiting the use of GCJ for native compilation purposes for
 > OSX, LInux, and Windows targets.  I'm wondering if I can compile a
 > set of classes to a shared library that can be called via JNI or
 > some other method from a Java app running via a Sun JVM.

While there is no technical reason that would make this impossible, it
does sound rather arduous and difficult to maintain.

 > The goal would be to allow the necessary set of classes to be
 > native compiled, but still written in Java.  Thus, we would not
 > need to have 3 codebases for the native code in c++ on each
 > platform.

I don't quite know why you want to do this.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]