And so the chronicles report that Raanan Nitzen spake thusly unto the masses:
>
> Hy ,my name is raanan , my question is can i compile a java script with
> your software
If you mean JavaScript, no it's not the same language. If you mean compile
Java to native executable, the JDK does not do this and doing so really
defeats the purpose of Java (if you want to simply to use the included
libraries, I'd recommend using a C++ library with the same functionality
[they exist]).
> ( i need to compile a *.pac file for a server i'm building ) ,
What is a .pac file?
> and can i use the executable code to be used inside a server i'm writing
> in c programming language.
If you did compile the Java to native executable (not using the JDK of
course) you could use it, in that you could build shared libraries
from the Java code and then link to those libraries from the C executable.
You'll probably need to use the javah program included in the JDK (or perhaps
the Java->native compiler will generate function prototypes for you).
FYI, the egcs project has GCJ which is a Java front-end for GCC and can
compile both .java and .class files to assembly; but it's still not ready for
prime time yet (I don't think it'll produce object code you can execute or
link to yet). The homepage is at http://sourceware.cygnus.com/java/gcj.html.
--
¤--------------------------------------------------------------------¤
| Aaron Gaudio mailto:[EMAIL PROTECTED] |
| http://www.rit.edu/~adg1653/ |
¤--------------------------------------------------------------------¤
| "The fool finds ignorance all around him. |
| The wise man finds ignorance within." |
¤--------------------------------------------------------------------¤
Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.