You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@verizon.net> on 2003/03/11 15:40:51 UTC
Eclipse javac is screwed?
Got this:
09:36:38.789 WARN!! Error for /samples/xscript/simple
java.lang.UnsupportedClassVersionError:
org/apache/cocoon/www/samples/docs/samples/xscript/simple_xsp
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
Seems like eclipse compiler is screwed badly under jdk 1.3.1... Can it
be configured to work properly?
PS Pizza works just fune
Vadim
Re: Eclipse javac is screwed?
Posted by Christopher Oliver <re...@verizon.net>.
It just indicates whether the compiler should accept java 1.4 source
extensions like "assert". It's equivalent to:
javac -source 1.4 ...
Vadim Gritsenko wrote:
> Christopher Oliver wrote:
>
>> OK. But, I think you should also set the source version. What do you
>> think?
>
>
>
> I was (and still am) not sure what this flag mean that's why I left it
> off :)
>
> Vadim
>
>
>
Re: Eclipse javac is screwed?
Posted by Vadim Gritsenko <va...@verizon.net>.
Christopher Oliver wrote:
> OK. But, I think you should also set the source version. What do you
> think?
I was (and still am) not sure what this flag mean that's why I left it
off :)
Vadim
Re: Eclipse javac is screwed?
Posted by Christopher Oliver <re...@verizon.net>.
Vadim Gritsenko wrote:
> Christopher Oliver wrote:
>
>> Hi Vadim,
>>
>> The EclipseJavaCompiler is currently hardcoded with source=1.4 and
>> target=1.4. This is because I didn't know how to configure those
>> properties through the available Cocoon interfaces. There is nothing
>> wrong with the Eclipse compiler itself, only with my code. Either we
>> can hardcode it with source=1.3 target=1.3 in which case it will work
>> under jdk1.3.1 or we need to make it configurable.
>
>
>
> Ok, now it detects this automatically. Is it ok for you?
>
> Vadim
OK. But, I think you should also set the source version. What do you think?
Re: Eclipse javac is screwed?
Posted by Vadim Gritsenko <va...@verizon.net>.
Christopher Oliver wrote:
> Hi Vadim,
>
> The EclipseJavaCompiler is currently hardcoded with source=1.4 and
> target=1.4. This is because I didn't know how to configure those
> properties through the available Cocoon interfaces. There is nothing
> wrong with the Eclipse compiler itself, only with my code. Either we
> can hardcode it with source=1.3 target=1.3 in which case it will work
> under jdk1.3.1 or we need to make it configurable.
Ok, now it detects this automatically. Is it ok for you?
Vadim
> Regards,
>
> Chris
Re: Eclipse javac is screwed?
Posted by Christopher Oliver <re...@verizon.net>.
Hi Vadim,
The EclipseJavaCompiler is currently hardcoded with source=1.4 and
target=1.4. This is because I didn't know how to configure those
properties through the available Cocoon interfaces. There is nothing
wrong with the Eclipse compiler itself, only with my code. Either we can
hardcode it with source=1.3 target=1.3 in which case it will work under
jdk1.3.1 or we need to make it configurable.
Regards,
Chris
Vadim Gritsenko wrote:
> Got this:
>
> 09:36:38.789 WARN!! Error for /samples/xscript/simple
> java.lang.UnsupportedClassVersionError:
> org/apache/cocoon/www/samples/docs/samples/xscript/simple_xsp
> (Unsupported major.minor version 48.0)
> at java.lang.ClassLoader.defineClass0(Native Method)
>
>
> Seems like eclipse compiler is screwed badly under jdk 1.3.1... Can it
> be configured to work properly?
>
> PS Pizza works just fune
>
> Vadim
>
>
>