I have some code I have been developing it inside JDeveloper (Oracle) and the code is used in an Oracle app. I can compile it successfully inside JDeveloper, and I can see all the command line parameters in the Log Window. Oracle uses their own compiler called ojc.exe. We now want to check the uncompiled code (the *.java files) into a controlled environment, and use Java to compile it there. We want to use javac. I think I have the command line options set correctly. They sure look like those in the Log Window. If I use javac it begins by parsing the class, then just sits there after parsing. Nothing happens after that. I have the -verbose option set. Doesn't tell me a thing. If I take out most of the -classpath jar's and try javac again, it complains extensively. So I know javac is working. I would paste the command line in here, except that it is too long. So I wonder if anyone has encountered this with Oracle stuff before. I can compile it in a DOS window if I copy and paste the comand line from the Log Window using ojc.exe and it's proprietary options. But javac just stops. Has anyone had this happen to them? Are there things in the jar files that Oracle uses (proprietary code) that will work only with Oracle's version of stuff?
When you say that javac just stops, do you mean that it completes the compilation, or does it "hang"? Also, remember that you use javac.exe to compile a program, and then java.exe to run it.
For my latest books on Java, including Introducing JavaFX 8 Programming, see HerbSchildt.com
Joined: Jul 18, 2002
Okay, I think I have answered my own question. When I said stop, what I meant was 'hang'. It just sits there, with nothing happening. Then I noticed one of the zipped packages was 304 MB!! I was accessing it across a network. When I pulled a copy to my hard drive, and put in the new path in the -classpath option, it compiled. So javac was working, and I had all my options correct. It was just taking forever. It appears ojc.exe has a real whiz bang way of looking into a zipped file across a network. That's something to bear in mind. But I am delighted there is nothing proprietary about what is in these packages (both *.jar and *.zip). Thanks for your attention. I appreciate your help!