IDEA on FreeBSD (test drive report)

Hello,

I have test Aurora on FreeBSD, and here is results:
FreeBSD Test Drive results report
-


FreeBSD 5.1-RELEASE (KDE 3.1)
Sun Linux JDK 1.4.2_02
IntelliJ IDEA Aurora 963

1. How to install JDK 1.4.2_02

This may force troubles in IDEA bin installation. Self extracting idea963.bin file try execute 1.4.2 JRE and will fail, if FreeBSD system have not patched for supporting JVM 1.4.

Sun JVM requires for Linux proc file system. This system is universal for all linux, but FreeBSD have not required enabled it by default. If you not install Linux binary compatible mode in FreeBSD, please run sysinstall and install linux binary compatible mode for your FreeBSD, you need for 'linprocfs' file system, "linux_base_7.1_4" port and also "javavmwrapper-1.4 linux_base-7.1_4".

Find file "etc/fstab", and add follow line to it:


This line is auto mounting for linux proc file system, requires by all JVM from Sun. You may restart your host to apply changes, or just load file system and mount it by follow commands (as root):


You may install Sun JDK (http://java.sun.com/j2se/1.4/). JDK 1.4.2_02 is j2sdk-1_4_2_02-linux-i586.bin file, download it and put into /usr/ports/distfiles. After it go to /usr/ports/java/linux-sun-jdk14. For 5.1 release this port is depricated and you need to download new port from http://www.freebsd.org/ports/java. Please download file "linux-sun-jdk14.tar.gz" and unpack it over /usr/ports/java/linux-sun-jdk14.

And finally run command in /usr/ports/java/linux-sun-jdk14:


This will install JDK to /usr/local/linux-sun-jdk1.4.2_02 and register new JVM.

2. How to install IDEA

Simple run idea963.bin ;)
I install it into /usr/local/idea, as default.

3. Post installation steps.

Create links to /usr/local/idea and to /usr/local/linux-sun-jdk1.4.2_02 in your home directory (to avoid problems in Select Path dialog).

Edit $IDEA_HOME/bin/idea.lax file and add -Didea.jars.nocopy=true to run parameters (to avoid problems with copy function in caching).


4. Test drive :)

STOPSHEET: Rebuild Project
(l.java:42) at com.intellij.compiler.b.f.a(f.java:265) at com.intellij.compiler.b.f.a(f.java:66) at com.intellij.compiler.b.f.a(f.java:104) at com.intellij.compiler.m.b(m.java:25) at com.intellij.compiler.a.d.a(d.java:6) at com.intellij.compiler.a.a.actionPerformed(a.java:2) at com.intellij.openapi.actionSystem.b.o$b_.actionPerformed(o$b_.java:12) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at com.intellij.openapi.actionSystem.b.o.fireActionPerformed(o.java:57) at com.intellij.ui.a.a.h.doClick(h.java:102) at com.intellij.ui.a.a.h.access$300(h.java:222) at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:1) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at com.intellij.ide.s.a(s.java:43) at com.intellij.ide.s.dispatchEvent(s.java:93) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) ]]>

STOPSHEET: Compile (CtrlShiftF9)


ANT compilation is fine at whole :)

Using of not implemented function "SendFile" of JVM:
IDEA can parse jars if "idea.jars.nocopy=true" only.

More quickly double click required, that in system. For example, in KDE desktop i always can open items by double click, but in IDEA, i must do clicking very-very fast to invoke action.

Fonts??? But i think it just system depend issue.
Antialiased font in IDE is set, but tooltips show non smooth font.

I can't see some folders in "Select Path" dialog, but in File Chooser i can. For example, /usr/local.

"Diff Option" area used smaller font that all other controls in IDE Settings->General, if i change fonts. But after restart it become ok.

The caption icon of all child windows is "Default System"
instead of IDEA icon.

For remote debuging "Shared Memmory" option is disabled.


SHOPSHEET: Debuging

Execution of remote debugins:
-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=n,address=5005,
onthrow=,suspend=y,onuncaught=]]>
Get error box titled "Bad", "Argument invalid"

Execution of Application or JUnit debug:
Get error box titled "Process Not Started", Unable to launch target VM: java.net.UnknownHostException "phantom-freebsd: phantom-freebsd"
I have hostname="phantom-freebsd" in boot/loader.conf overrides variable.


5. Summary Resume

I think development in IDEA on FreeBSD platform can be performed as well, but it requires some fixes for better independency of platforms, sure.

Things working in IDEA:
1. Creating and manupulation of projects and settings
2. VirtualFileSystem work fine (Find in path, Find Usages, Refactoring, Synchronizing, Indexing, Templates)
3. Code works and syntax checking
4. Keymaps (it a surprise for me)
5. L&F switching
6. Clipboard of host system (Copy, Cut, Paste)
7. Inspections
8. Generating JavaDocs (strange, becose i think that it some as javac)
9. Local VCS (i not check CVS, but i think it must work fine too), Local History
10. Run, JUnit at least (i not check Applet)
11. UIDesigner (forms designing and compilation task)
12. Error Reporting (but, unfortunally, it say me that 977 is released, and disable me to send any errors :))

Things MUST fixing, i guess, to enable good development on FreeBSD:
1. Using of copy file method must be reviewed for detection native unstable calls.
2. Execution of compiler must be reviewed. Sounds like that using some native functions.
3. Debuging
4. Double clicking
5. IDEA on FreeBSD work slower that on Windows 2000/XP, maybe it is configuration issue.

Thanks!



Attachment(s):
linux-sun-jdk14.tar.gz
3 comments

hello,

i have idea on a freebsd-current and it's working pretty good :)

i don't have your "Double clicking" problem :)

i'm using idea 977 now, i used 963 fine, unix version (tar.gz) with jre from /usr/ports/java/jdk14

i tried with linux-sun-jdk14 and i had many problems with SendFile problem :( but now with jdk14 it's working good.

0

Maybe a lot of my problems from my not advanced knowledge of FreeBSD...

i don't have your "Double clicking" problem :)

>
It may by my missconfigured mouse problems...

i'm using idea 977 now, i used 963 fine, unix version (tar.gz) with jre

from /usr/ports/java/jdk14

But this is not Sun JDK as i know... But it only JVM running on host, i
think it no matter that running - HotSpot or something else VM. Thank you
anyway, i try use another JVM.

That about debugins and compiling? You have it working?

Thanks!

"ceva" <no_mail@jetbrains.com> wrote in message
news:22572641.1069063970757.JavaMail.itn@is.intellij.net...

hello,

>

i have idea on a freebsd-current and it's working pretty good :)

>

i don't have your "Double clicking" problem :)

>

i'm using idea 977 now, i used 963 fine, unix version (tar.gz) with jre

from /usr/ports/java/jdk14
>

i tried with linux-sun-jdk14 and i had many problems with SendFile problem

:( but now with jdk14 it's working good.
>
>


0

But this is not Sun JDK as i know... But it only JVM
running on host, i
think it no matter that running - HotSpot or
something else VM. Thank you
anyway, i try use another JVM.

It's jdk from sun but it's patched by freebsd.

That about debugins and compiling? You have it
working?


Yes here are working, i had only some problems with tomcat in debuging mode.

0

Please sign in to leave a comment.