I have a java project which contains multiple classes spread out over multiple files.
How do i compile and get this to work ?
Can anyone suggest how to compile this using jCreator (without using a build tool like ant)
I have a java project which contains multiple classes spread out over multiple files.
How do i compile and get this to work ?
Can anyone suggest how to compile this using jCreator (without using a build tool like ant)
You should just be able to compile each file separately and then run the class with the "main" function ie the one that starts of your program. Its probably a good idea to compile the ones that don't depend on any others first so that when each ones compiled all the classes used in that class are already compiled but I don't know if you need to do this.
Without using Ant/Maven etc. (and I would strongly advocate using these - a command line is unmaintainable as your project increases in complexity, and unless you script it you will have to remember how you invoked it last time when you next build) you should be able to pass all your .java files to the compiler on the command line. e.g. in Unix:
javac `find . -name \*.java'
or similar (you will likely need additional args for the classpath etc.)