You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by "Adam R. B. Jack" <aj...@trysybase.com> on 2004/07/02 16:04:53 UTC

JDK 1.5

The CleanUp branch is getting pretty darn close to matching the CVS HEAD
Gump again (the odd 'didn't expand @@DATE@@ somewhere obscure' kinda bug
might exist, but not in the first  projects, or so this seems to show:
http://gump.try.sybase.com/buildLog.html).

However, we get this w/ CleanUp running on JDK1.5:


http://brutus.apache.org/gump/jdk15/xml-crimson/xml-crimson/gump_work/build_xml-crimson_xml-crimson.html#Output

Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/tools/ant/Main (Unsupported major.minor version 49.0)

I suspect that this means that (1) the JDK 1.5 compiler was found/used by
bootstrap-ant and and (2) the JDK 1.4 compiler was found/used by Ant and
does not grok JDK 1.5 classes. Just a guess.

Any thoughts on how we tighten things up in an environment where we have
multiple compilers/JDKs installed? Can we get Ant to (tersely) tell us which
compiler it has found and is using? Ought we try to tell Ant?

The story this tells, is confused (at best):

    http://brutus.apache.org/gump/jdk15/environment.html#Annotations

http://brutus.apache.org/gump/jdk15/environment.html#Tail+of+CheckEnvironment+%3A+check_java_compiler

Thanks in advance.

regards,

Adam
--
Experience the Unwired Enterprise:
http://www.sybase.com/unwiredenterprise
Try Sybase: http://www.try.sybase.com


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by "Adam R. B. Jack" <aj...@apache.org>.
> > >
>
http://brutus.apache.org/gump/jdk15/xml-crimson/xml-crimson/gump_work/build_xml-crimson_xml-crimson.html#Output
> >
> > I get an internal server error when I try to access this.
>
> Yes, I foolishly tried to remove an xdocs related bug before I went away
for
> the long weekend, and trashed it. Working to restore, sorry...

Ought be back.

regards

Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 2 Jul 2004, Adam R. B. Jack <aj...@trysybase.com> wrote:

> You feeling game to try a copy of Gumpy (again) to see if you can
> investigate for us?

Sure, I wouldn't have voted to retire "old Gump" otherwise.

Problem is with finding time.  My current Linux machine is up for a
major OS upgrade anyway and I've scheduled installing Gumpy after
that, but I find myself being locked inside meetings or sitting in
trains/planes far more often than having time to code or install an OS
lately.

So please don't hold your breath. ;-)

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> > I have no idea how you launch java from Python.  This one obviously
> > does not use the 1.5 JDK.
>
> It simple makes a system call to 'java', so it gets what is first on the
> path.

Ah yes, the PATH is visible here:

    http://brutus.apache.org/gump/public/gump_work/check_env.html
and
    http://brutus.apache.org/gump/jdk15/gump_work/check_env.html

Currently JDK15 shows:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/j2sdk1.
4.2_04/bin:/usr/local/gump/forrest/bin:/usr/local/gump/maven-1.0-rc3/bin:/us
r/local/jdk1.5.0/bin:/usr/local/gump/maven-1.0-rc3/bin
w/ JDK1.4 earlier in path.Let me try a run w/o that (exit the shell I am in
and re-enter).Yup, better:
http://brutus.apache.org/gump/jdk15/gump_work/check_env.htmlI tried using
threads --- and got CVS errors -- hmm, so some work to do.I've turned them
off, and we are making some
progress:http://brutus.apache.org/gump/jdk15/buildLog.htmlregards

Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> boostrap-ant will probably pick up tools.jar from the CLASSPATH, but
> this shouldn't be necessary as the script can find it on its own if
> JAVA_HOME is set correctly.

For some reason I didn't beleive that to be the case (back when I added the
usage of the system CLASSPATH w/ tools in it.) I've not checked in a long
time. You feeling game to try a copy of Gumpy (again) to see if you can
investigate for us? No pressure, but clearly I failed to figure it out eons
ago.

> I have no idea how you launch java from Python.  This one obviously
> does not use the 1.5 JDK.

It simple makes a system call to 'java', so it gets what is first on the
path.

BTW: I just remembered ... I think the gump (user account) profile includes
the local-env-py.sh from public! This was added back when there was only one
(FWIIW: not by me, or I'd've remembered sooner). I don't think this is
needed, nor wanted -- and is likely a problem. I don't know if cron worked
without that, but I think it should.

I'll comment out, and hope I don't dork things up before I go away. This was
in ~/.bash_profile and is now commented out:

# For now we only have one Gump running, so
# we can take values from it.
#. /usr/local/gump/public/gump/local-env-py-brutus.sh

regards,

Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 2 Jul 2004, Adam R. B. Jack <aj...@trysybase.com> wrote:

> Agreed, now how do we work w/ Ant to ensure this does not happen? 
> Also, if you see then env page (when it comes back) just launching
> Java seems to give JDK1.4.

Hmm, while we wait for the env page to come back 8-)

boostrap-ant will probably pick up tools.jar from the CLASSPATH, but
this shouldn't be necessary as the script can find it on its own if
JAVA_HOME is set correctly.

I have no idea how you launch java from Python.  This one obviously
does not use the 1.5 JDK.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> On Fri, 2 Jul 2004, Adam R. B. Jack <aj...@trysybase.com> wrote:
>
> >
http://brutus.apache.org/gump/jdk15/xml-crimson/xml-crimson/gump_work/build_xml-crimson_xml-crimson.html#Output
>
> I get an internal server error when I try to access this.

Yes, I foolishly tried to remove an xdocs related bug before I went away for
the long weekend, and trashed it. Working to restore, sorry...

> > Exception in thread "main" java.lang.UnsupportedClassVersionError:
> > org/apache/tools/ant/Main (Unsupported major.minor version 49.0)
>
> Most probably means that bootstrap-ant has been built by JDK 1.5,
> while the Java VM running Ant when building Crimson is JDK 1.4.

Agreed, now how do we work w/ Ant to ensure this does not happen? Also, if
you see then env page (when it comes back) just launching Java seems to give
JDK1.4.

regards

Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 2 Jul 2004, Adam R. B. Jack <aj...@trysybase.com> wrote:

> http://brutus.apache.org/gump/jdk15/xml-crimson/xml-crimson/gump_work/build_xml-crimson_xml-crimson.html#Output

I get an internal server error when I try to access this.

> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> org/apache/tools/ant/Main (Unsupported major.minor version 49.0)

Most probably means that bootstrap-ant has been built by JDK 1.5,
while the Java VM running Ant when building Crimson is JDK 1.4.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
Thanks, but our goal is to work completely in JDK1.5, so the task is to
either tighten our environment (to make JDK 1.4 simply "not available" to
the JDK 1.5 run) or to be more explicit/careful in Gump code (and bootstrap
scripts). I suspect the latter has the better long-term mileage, but I don't
know the best approach (for launching JDK compiler, and/or for Ant).

[We've had a need to have tools.jar on the CLASSPATH, so Ant can find a
compiler, which kinda goes against the purpose of Gump, and it setting
CLASSPATH. This is a JIRA entry I'd like to close.]

FWIIW: I'm facing similar w/ moving to Python 2.3 (and on some platforms I
need to check for 'python2.3' executable prior to 'python'). This is easier
since the scripts are more in my direct control.

regards,

Adam
----- Original Message ----- 
From: "Antoine Levy-Lambert" <an...@gmx.de>
To: "Gump code and data" <ge...@gump.apache.org>
Sent: Friday, July 02, 2004 8:34 AM
Subject: Re: JDK 1.5


> Hi Adam,
>
> a quick Google search concerning this problem brought me to this link :
>
http://forum.java.sun.com/thread.jsp?thread=522017&forum=316&message=2500873
> What I understand, is that the problem means that we are trying to run
> under JDK 1.4 some code compiled under JDK 1.5.
> These options of javac : -source 1.5 -target jsr14 according to the
> article, allow to compile under jdk1.5 and to run under jdk1.4.
>
> Cheers,
> Antoine
>
> Adam R. B. Jack wrote:
>
> >The CleanUp branch is getting pretty darn close to matching the CVS HEAD
> >Gump again (the odd 'didn't expand @@DATE@@ somewhere obscure' kinda bug
> >might exist, but not in the first  projects, or so this seems to show:
> >http://gump.try.sybase.com/buildLog.html).
> >
> >However, we get this w/ CleanUp running on JDK1.5:
> >
> >
>
>http://brutus.apache.org/gump/jdk15/xml-crimson/xml-crimson/gump_work/build
_xml-crimson_xml-crimson.html#Output
> >
> >Exception in thread "main" java.lang.UnsupportedClassVersionError:
> >org/apache/tools/ant/Main (Unsupported major.minor version 49.0)
> >
> >I suspect that this means that (1) the JDK 1.5 compiler was found/used by
> >bootstrap-ant and and (2) the JDK 1.4 compiler was found/used by Ant and
> >does not grok JDK 1.5 classes. Just a guess.
> >
> >Any thoughts on how we tighten things up in an environment where we have
> >multiple compilers/JDKs installed? Can we get Ant to (tersely) tell us
which
> >compiler it has found and is using? Ought we try to tell Ant?
> >
> >The story this tells, is confused (at best):
> >
> >    http://brutus.apache.org/gump/jdk15/environment.html#Annotations
> >
>
>http://brutus.apache.org/gump/jdk15/environment.html#Tail+of+CheckEnvironme
nt+%3A+check_java_compiler
> >
> >Thanks in advance.
> >
> >regards,
> >
> >Adam
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: JDK 1.5

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hi Adam,

a quick Google search concerning this problem brought me to this link :
http://forum.java.sun.com/thread.jsp?thread=522017&forum=316&message=2500873
What I understand, is that the problem means that we are trying to run 
under JDK 1.4 some code compiled under JDK 1.5.
These options of javac : -source 1.5 -target jsr14 according to the 
article, allow to compile under jdk1.5 and to run under jdk1.4.

Cheers,
Antoine

Adam R. B. Jack wrote:

>The CleanUp branch is getting pretty darn close to matching the CVS HEAD
>Gump again (the odd 'didn't expand @@DATE@@ somewhere obscure' kinda bug
>might exist, but not in the first  projects, or so this seems to show:
>http://gump.try.sybase.com/buildLog.html).
>
>However, we get this w/ CleanUp running on JDK1.5:
>
>
>http://brutus.apache.org/gump/jdk15/xml-crimson/xml-crimson/gump_work/build_xml-crimson_xml-crimson.html#Output
>
>Exception in thread "main" java.lang.UnsupportedClassVersionError:
>org/apache/tools/ant/Main (Unsupported major.minor version 49.0)
>
>I suspect that this means that (1) the JDK 1.5 compiler was found/used by
>bootstrap-ant and and (2) the JDK 1.4 compiler was found/used by Ant and
>does not grok JDK 1.5 classes. Just a guess.
>
>Any thoughts on how we tighten things up in an environment where we have
>multiple compilers/JDKs installed? Can we get Ant to (tersely) tell us which
>compiler it has found and is using? Ought we try to tell Ant?
>
>The story this tells, is confused (at best):
>
>    http://brutus.apache.org/gump/jdk15/environment.html#Annotations
>
>http://brutus.apache.org/gump/jdk15/environment.html#Tail+of+CheckEnvironment+%3A+check_java_compiler
>
>Thanks in advance.
>
>regards,
>
>Adam
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org