From owner-freebsd-eclipse@FreeBSD.ORG Tue Jan 23 02:48:16 2007 Return-Path: X-Original-To: freebsd-eclipse@freebsd.org Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 842F716A403 for ; Tue, 23 Jan 2007 02:48:16 +0000 (UTC) (envelope-from steve.joynt@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by mx1.freebsd.org (Postfix) with ESMTP id 3726C13C469 for ; Tue, 23 Jan 2007 02:48:16 +0000 (UTC) (envelope-from steve.joynt@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so914025wri for ; Mon, 22 Jan 2007 18:48:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=pz2bi6kglq97hUJI83ye5FCJouMwuxbIxIFArZmNGLxs371BCzqX3P6okv+IoFtREwQClYIK+jhyJwiY1bmiau/Sy8Ghtlx7TNhtj5zHPe1sIcntZ73IPNc6YG36HWx/cnw/JiJSmS0IMY9wbgcETMC0FuwfmQw2ERDBdzGV2oc= Received: by 10.78.201.15 with SMTP id y15mr67567huf.1169518943407; Mon, 22 Jan 2007 18:22:23 -0800 (PST) Received: by 10.78.100.3 with HTTP; Mon, 22 Jan 2007 18:22:23 -0800 (PST) Message-ID: <17dbe5f00701221822g5d38fa3eqa545734c2467d943@mail.gmail.com> Date: Tue, 23 Jan 2007 13:22:23 +1100 From: "Steve Joynt" To: freebsd-eclipse@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Eclipse with java 1.4 X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 02:48:16 -0000 Hi, I'm using eclipse 3.2.1, built from ports a couple of days ago. In preferences, under installed JREs, I have: /usr/local/diablo-jdk1.5.0 /usr/local/jdk1.4.2 (set as default) /usr/local/linux-sun-jdk1.4.2 With this configuration, I can't get any ant builds to run with eclipse - I get a console window that terminates immediately without any messages. In the ant preferences I've tried changing ANT_HOME to /usr/local/share/java/apache-ant, but that didn't help. I'm guessing it has something to do with eclipse being compiled with java 1.5. When I set the default jre to diablo-jdk1.5.0, the ant builds run ok. Is it possible to compile or run eclipse with java 1.4? The port's makefile overwrites JAVA_VERSION with 1.5+. When I try to run eclipse using the jdk1.4.2 vm, it fails: $ eclipse -vm /usr/local/jdk1.4.2/bin/java Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/core/launcher/Main (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) I'm pretty sure this means the classes were built with java 1.5 and can't be run with 1.4. I also tried setting JAVA_VERSION to 1.4, but eclipse seemed to ignore it. Thanks for any suggestions, Steve