Hi,
Firstly, I'm a total noob to
Java, spent some time with Java and Oracle back at Uni over 10 years ago, however my profession these days keeps me well and truly planted in the Microsoft world (I'm a SQL DBA by rights).. so you may be asking what am I doing messing around with Java..
Long story short, I need to download a file from a web server from a 3rd party vendor, and build this into a nightly package which after downloading the file will extract it, import the data into various tables in a DB etc. The 3rd party has provided me with the following files/code as a method of automating the download of the files, however I'm having problems compiling/running them, and I imagine it's probably just because I don't really have any idea what I'm doing with Java. I have spent several hours on Google, and quite a lot of searches have brought me to your site, but I haven't quite managed to find a resolution to my specific problem, so here goes
First, here are the 2 java files that I was given
iDownload.java
impDownload.java
Please note I have blanked out
alot of the variables for security measures
Next I have created a .bat file and am calling this from command prompt
run.bat
When I run this, I get the following 'errors'
I've tried various different things, but I've got a feeling I'm simply not doing this the correct way.
For further information I'm running JDK 1.7.0_09, althought you've probably gather that from the paths in the code above.
Let me know if there's any further information you require. Any help will be much appreciated!
Many thanks
Mark