IntelliJ IDEA 3.0.5 and FreeBSD JDK 1.4.1 ports
FreeBSD's Java support is currently a bit behind the 8-ball, and the Linux emulation isn't good enough to run the JRE distributed with Idea's Linux distro (though it installs OK from the .bin file). You have to use the .tar.gz download of IDEA, which doesn't have an embedded JVM, and be sure to follow Install.txt, not just hack bin/idea.sh in the way you would expect.
Unfortunately, the property 'java.version' reported by FreeBSD's JVM is '1.4.1-p4', which will cause Idea to stop, even though this JVM is the appropriate version.
As of IDEA 3.0.5v2 (or possibly earlier), simply set the property
-Didea.no.jdk.check=true
when invoking the JVM at startup, and IDEA does not
perform its JVM check. (Thanks to JAD and a previous
post to this list identifying com.intellij.idea.Main
as the culprit class, and I guess to the IntelliJ guys
for adding this in more recent versions).
See /usr/ports/java/jdk14 and/or http://www.freebsd.org/java/
Note that you will need patchset 4 for the JVM. patchset 3 has a problem with copying JAR files (IDEA reports 'bad file descriptor' when loading a project). It's vaguely possible that you'll have to
rm -rf ~/.IntelliJIdea/system/jars/*
if you have already run into the patchset 3 file descriptor problem.
If anyone wants to make a port, I will help them out, but I'm quite new to writing ports.
-- DavidBullock - 05 Nov 2003
IntelliJ IDEA Aurora and FreeBSD JDK 1.4.2 ports
- FreeBSD 5.1-RELEASE
- Sun Linux JDK 1.4.2_02 self-extracting package
- IntelliJ IDEA build 977
Installation Java JDK 1.4.2_02
In process of installation you will maybe see that something is crashed, becose of you need some packages to be installed on your system. So, follow by instruction you must download latest port of missing package and install it manualy, then run installation command again.
Process of installation is very long, for me it was done more that 10 hours, and total downloaded trafic - is about 150 Megs, becose it requred for new linux_base component and for linux-sun-jdk14 downloads.
cd usr/local/ports/java/jdk14
make install clean
- Add follow line in
/etc/fstab file:
linprocfs /compat/linux/proc linprocfs rw 0 0
# kldload linprocfs
# mount /compat/linux/proc
- Check that java JRE installed correcly:
# javavm -version
Installation of IntelliJ IDEA Aurora
- Download idea977.bin for Linux from http://www.intellij.net.
- Put it into "/dist" directory.
- Check that "/tmp" directory have more that 40 Megs to unpack installation.
- Run follow command:
# cd /dist
# ./idea.bin
- Install into "/usr/local/idea" directory
- After installation open idea.lax file and fix follow:
- Add startup parameter
-Djava.net.preferIPv4Stack=true to lax.nl.java.option.additional property. This option allow IDEA to create socket (localnet license checking).
- Change property
lax.nl.current.vm, you must use follow value for this property: /usr/local/jdk1.4.2/jre/bin/java
- You no need anymore "/usr/local/idea/jre" directory - so, you can remove it to save ~50 Megs of your hard drive
-- AlexeyEfimov - 20 Nov 2003
|
|