Subject: Re: Firing Eclipse
To: None <netbsd-help@NetBSD.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-help
Date: 03/17/2006 10:28:35
Hi,

Bogdan M. --> netbsd-help (2006-03-16 20:59:09 +0200):
> I have installed Eclipse in NetBSD-3.0, on an i386 architecture. There 
> were no problems during installation, all went smooth. I also have the 
> sun-jdk14, sun-jdk15, sun-jre14 and sun-jre15 packages installed.
> When launching eclipse, I get the "standard" error message:
> 
> $ eclipse
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object
> 
> My /home/.profile file looks like
> 
> PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin
> PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
> PATH=${PATH}:/usr/pkg/java/sun-1.4/bin
> export PATH
> 
> EDITOR=vi
> export EDITOR
> EXINIT='set autoindent'
> export EXINIT
> PAGER=more
> export PAGER
> 
> JAVA_HOME=/usr/pkg/java/sun-1.4/
> export JAVA_HOME
> CLASSPATH=${JAVA_HOME}/lib/:./
> export CLASSPATH
> ulimit -S -d 262144
> 
> I have tried and looked over Google, but I haven't been able to figure 
> out what to do. I assume my classpath is not correctly defined. I tried 
> to inspire myself from FreeBSD-6.0, where Eclipse runs without any 
> errors, but no solution emerged.

I'm not sure if I can help you, but I'm successfully running eclipse
3.1.1 on a -current (3.99.17) NetBSD/i386 system. Installation steps
I took:

- install sun-jdk15 from pkgsrc
- install apache-ant from pkgsrc (not sure if this is needed...)
- download and extract eclipse-SDK-3.1.1-linux-motif.tar.gz
- add `/usr/pkg/java/sun-1.5/bin' to $PATH

I use the following wrapper to launch eclipse:

$ cat ~/bin/eclipse
#!/bin/sh
ulimit -d 656020
cd /opt/eclipse && ./eclipse

BTW, does running simple java programs work on your system? E.g.:

$ cat <<EOF >Hello.java
> public class Hello {
>         public static void main(String[] args) {
>                 System.out.println("Hello, world!");
>         }
> }
> EOF
$ javac Hello.java
$ java Hello
Hello, world!


Cheers, Jukka

P.S.: there's a netbsd-java mailing list; maybe you have more luck
asking there.

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~