开发者

Java default compilation directory

开发者 https://www.devze.com 2023-01-12 20:01 出处:网络
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 generat

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

精彩评论

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