I am new in java, I have spent hours for this problem. I will be really thankful for anyone who can help me.
Here is the problem.
- My project, say ProjectA, need a bunch of libraries to compile, but I don't think I need a library called LibraryB.jar. So the project compiled correctly without LibraryB in the class path.
- At runtime, the program exited without any error message. I didn't know the reason until I put LibraryB.jar in classpath when I run my project
Could anyone tell me why this is happening? As I know, in java, If I referenced LibraryB.jar, it would be needed at compile and link time. Maybe I am wrong.