Page 1 of 1

java compile

Posted: Wed Apr 13, 2005 9:16 am
by gary
yes, I'm compiling a small driver, which references a .jar file placed into the jre/ext directory off the java home. My classpath also has a . referencing the current directory. Yes, I'm using windows XP.

Ok, here is my question. I can compile and run the java program I wrote just fine ... it compiles/runs/does everything it needs to do.

However, when i drop to a dos command line, and compile the driver, and run it with java LoadDriver, it fails.

I suspect TextPad is automatically setting up a classpath? Or does it override? I have the latest versions, and it shows the $filedir and $basedir.

I did try setting the classpath to various settings to no avail. Sure, it compiles under textpad, but not manually. So I'm not sure what textpad is loading for defaults/classpath/etc. I'm sure its some stupid classpath problem which appears common to java. I don't know why the folks who created java can't make it easier to configure. Oh yes, I have java sdk 1.4.2.

thanks for any feedback of why textpad works (really!) and the manual command doesn't.

Posted: Fri Apr 15, 2005 4:34 pm
by talleyrand
My Java & TextPad knowlege is a bit dated but as I seem to recall, TP at one point would create a DOS batch file and use that for compiling and execution of Java code. You might look in that directory for a batch file and see how it calls the javac and java command.