From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-86566-garchives=archives.gentoo.org@lists.gentoo.org>) id 1L2p3L-0002Tx-BG for garchives@archives.gentoo.org; Wed, 19 Nov 2008 15:33:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 277E3E03C9; Wed, 19 Nov 2008 15:24:47 +0000 (UTC) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by pigeon.gentoo.org (Postfix) with ESMTP id 73B9AE03C9 for <gentoo-user@lists.gentoo.org>; Wed, 19 Nov 2008 15:24:46 +0000 (UTC) Received: by mu-out-0910.google.com with SMTP id i2so303mue.6 for <gentoo-user@lists.gentoo.org>; Wed, 19 Nov 2008 07:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Gu0Izq6f6o8y6eEzJmNNHKhE3mnoT5cQ7OUL/0kk6z0=; b=SYIetu7qDMH4a2GC4Cr7VR09CykwSnlKw06r71LE8mVwg8lrFWyIzXpdrBeq9zgXqf jOKA7DTNNXZoFo+gWjEmHvmSOZckJl7HtxpilCkAoOMzLtvM/A0/A2VMsbmEUPfyDB2A X4qJlg/7M8QWGttC1dMffiSnY+ExJwSNXUzGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uNrSu1l4CN147gIeyGDlOklh/DZrNdDlXCPsH/LshI+wEcuNpEGQt8y+KhuOyYvTsp I2DcsEq+xmzKwcmzVs+lExE3yAeRpIKDZw5zjk8j/KXafV+gOTGg0SZjhbFYeqYHjKvZ dGAFvcxFSt0PS0qQppcPWyhC0N1ssyK9Oshog= Received: by 10.181.209.1 with SMTP id l1mr354364bkq.139.1227108283625; Wed, 19 Nov 2008 07:24:43 -0800 (PST) Received: by 10.181.21.14 with HTTP; Wed, 19 Nov 2008 07:24:43 -0800 (PST) Message-ID: <49bf44f10811190724l48d621a2g8d6a46904741867c@mail.gmail.com> Date: Wed, 19 Nov 2008 07:24:43 -0800 From: Grant <emailgrant@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Java "bad version number" - what to up/downgrade? In-Reply-To: <492268FC.6070604@podgeweb.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49bf44f10811171734h6a54aad2xb250f9025119b346@mail.gmail.com> <200811181238.23819.podge@podgeweb.com> <49bf44f10811172026q6ce99aa9m5278376b005581c7@mail.gmail.com> <492268FC.6070604@podgeweb.com> X-Archives-Salt: a2828673-4a1c-4f76-ae0f-b2461cac93ac X-Archives-Hash: f2468ac6e28d1a174a067e4156facd57 >> >> I'm getting the following from dumphd: >> >> >> >> "bad version number in .class file" >> >> >> >> I gather that I may have the wrong version of something Java installed >> >> but I don't know how that works. Can anyone tell me what package I >> >> should try upgrading or downgrading? >> > >> > This normally means the class file is from a new version of Java then >> > the >> > virtual machine trying to run it (i.e. class files compiled under Java >> > 1.5, but your trying to run it in Java 1.4). >> > >> > "java-config -L" (without quotes) will show you what virtual machines >> > you >> > have installed. On my machine it shows (the asterisk is the currently >> > selected one, i.e. what will be used to run java applications): >> > >> > podge@venus ~ $ java-config -L >> > The following VMs are available for generation-2: >> > 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] >> > 2) Sun JDK 1.5.0.16 [sun-jdk-1.5] >> > *) Sun JDK 1.6.0.07 [sun-jdk-1.6] >> > podge@venus ~ $ >> > >> > If the newest VM isn't selected as the default, read the man page for >> > java-config and tell it to set the newest one as default (1.6 is the >> > newest version). >> > >> > Shawn >> >> Thank you very much. Since I'm not a Java developer, do I want jre as >> opposed to jdk? >> >> - Grabt > > Yeah, the JRE will be fine. The important thing is just which version is > active. I do Java development, hence the JDK. > > Shawn Can you tell me the best way to Gentoo all of this? I've now got: # java-config -L The following VMs are available for generation-2: 1) Sun 32bit JRE 1.6.0.07 [emul-linux-x86-java-1.6] 2) Sun JDK 1.5.0.16 [sun-jdk-1.5] *) Sun JDK 1.6.0.07 [sun-jdk-1.6] and dev-java/sun-jdk in my world file, and it wasn't there before. Also, emerge world wants to install virtual/jre-1.6.0 and virtual/jdk-1.6.0. Should I un-emerge sun-jdk-1.5? - Grant