开发者

Java default compilation directory

I'm using the Java Compiler API to build a couple of classes at runtime. However, I'd like these classes to be compiled into the default compilation directory, to where other class files are generated.

Is there a simple way to this? If I check the classpath I can see that the first URI is in fact the d开发者_运维技巧irectory I want, but is it always the first?


Actually, I think I found a way, using the following:

http://www.javaworld.com/javaworld/javatips/jw-javatip105.html?page=2

However, if there is a better way, please answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜