File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes javac - Why does it stop? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "javac - Why does it stop?" Watch "javac - Why does it stop?" New topic
Author

javac - Why does it stop?

Wayne Turner
Greenhorn

Joined: Jul 18, 2002
Posts: 12
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?
Herb Schildt
Author
Ranch Hand

Joined: Oct 01, 2003
Posts: 239
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 my Java Programming Cookbook, see HerbSchildt.com
Wayne Turner
Greenhorn

Joined: Jul 18, 2002
Posts: 12
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javac - Why does it stop?