I have the code to a program. However the program is split up into multiple packages. If i try to compile from the command line using "javac *.java" i get a bunch of "package does not exist" errors along with a slew of "cannot resolve symbol" errors for objects that are defined within seperate packages. The imports are all there and i know it should compile, but i just don't know how to do it.
* Note: In the unlikely event you are running Windows ME, then editing autoexec.bat will not work to set classpath. Instead, select Start / Programs / Accessories / System Tools / System Information. A "Microsoft Help and Support" window should appear. From the Tools menu in this window, select System Configuration Utility, then click on the Environment tab to set classpath. [ January 18, 2005: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
If that doesn't work, or even if it does, I would recommend looking at eclipse or intellaJ or one of the other great IDE's available. (my personal favorite is eclipse).
And that's the worst advice you could have given as it hides the fact that the user doesn't know how to compile things himself...
Find the root class of the application (so the class that calls all the others explicitly or implicitly) and compile that. If you've not done weird things like determining what to call through reflection or deserialisation that should cause the compiler to automagically compile everything else for you.
I actually have been using eclipse to develop the program, and it compiles and works fantastically. I just wish i knew how eclipse built it because it looks like i'm going to need to be able to build the entire project without eclipse. Does eclipse generate a makefile or something to build the program? If so how can i see it?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop