1 |
Marat Radchenko kirjoitti: |
2 |
> Hi, Gentoo Java Team. |
3 |
> |
4 |
> I'd like to share my thoughts on backwards-compatible compilation. As |
5 |
> you already said, specifying -source and -target is not enough because |
6 |
> different JDKs have different rt.jar. Solution is very simple - you just |
7 |
> need to specify -bootclasspath and point to rt.jar of target jre. The |
8 |
> only problem (he-he) is that you need to get it |
9 |
> somewhere. I see two options: |
10 |
> |
11 |
> 1) Install target jre |
12 |
> 2) Have separate package with rt.jar only. |
13 |
> |
14 |
> Hope this info will be useful. |
15 |
> |
16 |
> With best regards, |
17 |
> Marat Radchenko |
18 |
> |
19 |
|
20 |
Please don't top post. I already tried to explain that we don't |
21 |
necessarily need to make our jars work perfectly with older JDKs we only |
22 |
need the older bytecode so that we are able to compile things. If you |
23 |
really want backwards compatible jars just use *=sun-jdk-1.4 in |
24 |
jdk.conf. Should probably document this on the Java Guide. |
25 |
|
26 |
Regards, |
27 |
Petteri |