From owner-freebsd-java@FreeBSD.ORG Mon Apr 14 09:42:01 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBC1F37B401 for ; Mon, 14 Apr 2003 09:42:01 -0700 (PDT) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A3FE43FBD for ; Mon, 14 Apr 2003 09:42:01 -0700 (PDT) (envelope-from fvdelius@t-online.de) Received: from fwd04.sul.t-online.de by mailout03.sul.t-online.com with smtp id 19571q-00086E-0D; Mon, 14 Apr 2003 18:41:58 +0200 Received: from helix.felix.lan (520080346208-0001@[217.81.214.151]) by fwd04.sul.t-online.com with esmtp id 19571c-0spsgqC; Mon, 14 Apr 2003 18:41:44 +0200 Received: from fvdelius by helix.felix.lan with local (Exim 3.35 #1 (Debian)) id 19571a-0005EY-00 for ; Mon, 14 Apr 2003 18:41:42 +0200 Date: Mon, 14 Apr 2003 18:41:42 +0200 To: freebsd-java@freebsd.org Message-ID: <20030414164142.GB19507@helix.felix.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: fvdelius@t-online.de (Felix von Delius) X-Sender: 520080346208-0001@t-dialin.net Subject: patch IDEA 3 to work with jdk 1.4.1-p3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 16:42:02 -0000 Here's a brief hint how IntelliJ IDEA 3.0.3 can be patched to work on FreeBSD: After installation, IntelliJ IDEA 3.0.3 complains about not running on "1.4.1_O2" (the linux-jdk crashes). The problem is that the great FreeBSD Java 1.4.1 patchset 3 does have "1.4.1-p3" instead of "1.4.1_O2" in the java.version system property. The patch is easy: just patch the file ${IDEA_HOME}/lib/idea.jar: Inside there is the file com/intellij/idea/Main.class where the string "1.4.1_O2" has to be replaced by "1.4.1-p3". I did it by unpacking idea.jar, patching the Main.class file (with Emacs hexl-mode) and building a new jar, but since the jar is uncompressed, it should be possible to patch it with any hex-editor (Emacs is not too fast in hexl-mode for long files). IDEA works great, but debugging seems to be a problem. btw: does debugging work with other IDEs (Eclipse?) or is it a problem of the jdk14 port? cheers, Felix