Re: WOLips and JDK versions
Re: WOLips and JDK versions
- Subject: Re: WOLips and JDK versions
- From: André Rothe via Webobjects-dev <email@hidden>
- Date: Thu, 27 Feb 2020 13:52:56 +0100
- Autocrypt: addr=email@hidden; prefer-encrypt=mutual; keydata= mQGiBD3mI7cRBACGgHUTtNs/xDFrXgHhW3AZ572B6mZa9YCcsKdRGkYdbfPgg+9e4vsE6k7f z7hpTc3MbJa/Xiim1ZEXhlLVRKaMHVT7VxTzZKXdb4kM60sG9jd/FevzBZ2H7PNY5Paax1lL rb6GTIWH2ZiTq6aPcKm/kDC/vcCbL24m041kuiRXpwCgveq4BOU+pD9EyZcfquIh0zmetSsD /0CI442mebKcg8E9GJ3ZHmW6OpHAOaxAQOb3QXmU0azmw3cxwzMfT9zwX2O5lBvUUEXiriYb mCqGtNHWzqazyUWOMY0XxpkpxHKuqQ1vaUH4007IUbgtbsE7s8LTk+Xdyl6nyw3jdOZuP3BW AytaDjB2ckfjL67bGVQ8bHMstCYoA/9mPE0wQNfumaHbD2qi8LoOjQR+JRI40/9odU7MZiKX XkyrlrvOTRuQXNzqyTLGBU2VMGrsz8A2jgvRkDjK7/edbBDhbo89go93105pExrH9cQmFLe4 YdSK+pO23NGS0zDKxGHaX0L73kaOvSdLCtejMDWIvljWDXToUerin+Faw7Q1QW5kcmUgUm90 aGUgKG9mZmljZSkgPGFuZHJlLnJvdGhlQHprcy51bmktbGVpcHppZy5kZT6IYwQTEQIAIwIb AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJMEjSEAhkBAAoJECAEMVmkvUsCCzAAoLJZMPjD qsmv7dDmwONZf3fvVabCAJ0UyXgpcNXGI8k9LNtjpUYiMqR9U7kCDQQ95iPUEAgAlQ6PhmI4 bj//NNbPPKvUM/D/wY7nr4kSmor2YnZW62mzRPJ0wZchgMU36cMPo4HK71aKF+Jvvmsxj/UT WwVgt4uf4VgVZ5DNUlNMr8kmpeBQFWrUmLrIH/s7ZOjd9fsYZT6InkN5zHiSlNNQdRmSCi0B Xw+qVrK8UNdf9lEPmW0x1ABe4f/QFWIevCZaz5nvEt4+n37//aOsdbP0bedOh+CtXV3YdTd+ Z618RHrJDugA3KorgZjhrug6iBaK0lEDQ0SI2YV3m0569F9hkjVbXH1Wxv9dV+QyT6uWuBmO Isa6drzPp+RRrUKZoYO6AKYxTY2cYBVJ+KxaeWNYzK9+OwADBgf/bw/dboyTWxWEuRcbV60z 4fFwv1Zn30QCI+eMG2B62E3SPFLxNBjMhoH7gat1/QE1fDw1E6FaImPvUQP91EcVFOxMK1it QboHYOyZ9P+SKBE8rv1EYedbrPGu4EP+BxPnUymnzEqJ49DJgmIH6Hv6zoFzZB4Z6SPoZFJ2 8Znmngt/ZGEurf0x1YgPKhvD14QmKqK3KdBiVyv0q26/1cGG+kIe9suLUYVFrQcaujY5u/a+ +wmyvcjPeiCQ1Hl4FNm+7HXM7XbX1I23KBZbDKr3/SzNllFN7TyYOf6RbRjVw+vcdT2WCZ/H XKGdVkMwLf3OybmTDh/WupMn3Q+yd5E0PYhGBBgRAgAGBQI95iPUAAoJECAEMVmkvUsC2PoA oKWTxzXqJPv1Zun+dHHBb80TYMjIAJwLV33f6IleaUTQ8LjsKt15K75AUA==
- Openpgp: preference=signencrypt
Hi,
Is there a documentation of the property?
Thanks
André
Am 25.02.20 um 10:59 schrieb Susanne Schneider via Webobjects-dev:
> Hi,
>
> the ant build uses a property name "javalevel" to determine the compiler
> level setting. This property can either be set in the build.xml itself
> or (more practically) in the build.properties files used by the
> build.xml (mostly read in by the "init.properties" target).
>
> The default WOLips setting mostly hides the properties files from view
> but it should be there.
>
> Regards,
> Susanne
>
>>
>> Hi,
>>
>> I run into a build problem on a WebObjects application. As I have to
>> realize, I don't understand the build procedures within
>> Eclipse/WOLips.
>>
>>
>> -------------- Eclipse 4.6.3 started within OpenJDK 1.8.0_212-b4.
>>
>> My WebObjects project should be compiled with an OpenJDK 1.7.0, so I
>> have set the JRE System Library for the project to that JDK
>> (parallel installation on the workstation, set also as installed JRE
>> within Eclipse).
>>
>> The Java Compiler settings for the project is set to "Compiler
>> compliance level 1.7".
>>
>> If I start now the "build" target on the build.xml of the project, I
>> get an error:
>>
>> build.xml:203 taskdef A class needed by class
>> org.objectstyle.woproject.ant.WOCompile cannot be found:
>> org/apache/tools/ant/taskdefs/Javac --------------
>>
>> If I set the JRE System Library of the project to the OpenJDK
>> 1.8.0_212-b4, which executes the Eclipse, and set the Compiler
>> compliance level to 1.7 too, the build process will work again.
>>
>> The major class version of the classes within the /bin directory
>> (build path of the project) is 51 (1.7). The class version of the
>> /build directory (WOLips build path?) is 51 too and the class version
>> of the unzipped JAR files within the /dist folder is 51 too.
>>
>>
>> As Ant installation I use the version 1.9.6 inside the Eclipse
>> installation. On the Ant runtime settings dialog I have set
>>
>> ant.build.javac.source 1.7 ant.build.javac.target 1.7 compiler.source
>> 1.7 compiler.target 1.7
>>
>> The Ant classpath contains tools.jar from the OpenJDK 1.8.0_212-b4
>> and the woproject.jar from the WOLips plugin. The Ant process will
>> also be executed by JDK 1.8, but generates target files for 1.7. But
>> how interacts this with the project JRE System Library?
>> ------------------
>>
>> If I change the tools.jar to JDK 1.7, the same error occurs like
>> above. The Ant build is configured as External Tool Config, so I can
>> change the JRE there to JDK 1.7. But now I get the following error:
>>
>> UnsupportedClassVersionError:
>> org/objectstyle/woproject/ant/WOCompile: Unsupported major.minor
>> version 52.0
>>
>> This seems to be a problem from the Eclipse installation, it needs
>> JDK 1.8 to run, and the WOCompile.class within the plugins folder has
>> also a major version 52, so it needs JDK 1.8. ------------------
>>
>> The last thing is the context menu item "WOLips Ant Tools->Install".
>> It doesn't work at all, it returns also
>>
>> UnsupportedClassVersionError:
>> org/objectstyle/woproject/ant/WOCompile: Unsupported major.minor
>> version 52.0
>>
>> Here executes an older JDK the Ant process, which is visible on the
>> Console output (java-1.7.0/bin/java), but why? ------------------
>>
>> How interact these things together, how I have to set the JDK
>> versions?
>>
>> Thanks a lot Andr?
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
--
UNIVERSITÄT LEIPZIG
Medizinische Fakultät
Zentrum für Klinische Studien Leipzig – KKS
André Rothe
CIO
Härtelstr. 16-18, 04107 Leipzig
Tel: 0341/ 97 16118
Fax: 0341/ 97 16189
WWW: http://www.zks.uni-leipzig.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden