Date: Mon, 14 Apr 2003 18:41:42 +0200 From: fvdelius@t-online.de (Felix von Delius) To: freebsd-java@freebsd.org Subject: patch IDEA 3 to work with jdk 1.4.1-p3 Message-ID: <20030414164142.GB19507@helix.felix.lan>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030414164142.GB19507>