I am a bit confused, and could use some guidance. I have a new piece of code to execute, but am unable to. I believe there are two things wrong, I don't know how to fix.
1. import org.apache.poi I do not have this location.. org.apache on my local drive, but do have an apache poi jar file.
2. import.com.mycompany.ctc.internal.actions *.* package does not exist error..
I still get the errors. So I went a step futher added *.* to the end.:
C:\Codefolder>javac -cp .;ctc_tuil.jar;web-inf\lib\jt400.jar;web-inf\lib\poi-3.7-20101029.jar;web-inf\classes\com\mycompany\ctc\internal\database *.* Populate.java
Didn't work. So I tried adding a backslash at the end:
C:\Codefolder>javac -cp .;ctc_tuil.jar;web-inf\lib\jt400.jar;web-inf\lib\poi-3.7-20101029.jar;web-inf\classes\com\mycompany\ctc\internal\database\*.* Populate.java
Still didnt work.
I researched on your site and found one suggestion was to build the .java files with the below command:
javac -d *.java
When I execute this in the ..\..\database folder I get the below error.
javac: not a directory: ConnectonManager.java
I am a bit stumped, and appreciate any help or suggestions anyone has on this. Thank you very much.
I suspect some typos in some of the things you posted so ignoring those, you probably should just include web-inf\classes\ in your classpath. The compiler should then be able to find com.mycompany.ctc.internal.database with that. Also, does Populate.java reside in the directory from which you are compiling or is it some other directory? Did you declare Populate to be in a package or are you using the default package?
It seems strange to me that you're trying to compile a single class from the command line for what looks like actual work. Why aren't you using an IDE or a build system like Ant or Maven to do the heavy lifting for you?
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck