This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

compiling an RMI server application


I just downloaded the RedHat snapshot of the egcs 1.1.2 compiler to see whether it would be possible to create a native code executable of an RMI application that I've developed.  I have two questions regarding the use of class libraries that hopefully someone can answer:
 
1.  I haven't spent a lot of time looking at the Sun license for use of their java class libraries.  I'm guessing that the reason that you're developing your own version of classes.zip has to do with some licensing/distribution restriction that Sun imposes.  However, because you indicate that your compiler can take a class file and produce an object from it, shouldn't it be possible to use the Sun classes (licensing issues aside?).
 
2.  I'm a little confused as to how to use the -I and --CLASSPATH commandline options.  For my own purposes, I decided to override the default classpath by specifying my own using --CLASSPATH, making sure to include gcjlib.zip. 
 
3.  Should I be attempting to compile (but not link) the .class files I store in my jar files so that they can be properly linked to the class containing a static main method when I'm trying to construct an executable???  What is the appropriate way to do this?
 
Sorry to be so ignorant...
 
Rob
 
 

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