How to compile LWJGL?

Started by Andi|xng, May 11, 2005, 23:22:55

Previous topic - Next topic

Zeph

Quote from: "Andi|xng"Yes, of course. But this seems not to be a problem with the program javah(.exe), but with the Main-class found in the com.sun.tools.javah.oldjavah-namespace (found in the file <jdkpath>/lib/tools.jar). Any ideas?

I had the same problem, I fixed it by adding tools.jar to the CLASSPATH environment variable under Windows. It is peculiar, as tools.jar was already added under the Eclipse setting for Ant's classpath.

I suspect that for whatever reason, this classpath setting was not getting passed through correctly when ant invokes javah, but setting it in the environment allowed the classpath to be resolved by javah.

Perhaps it's because javah is not a "core" task under ant? *shrug*