From owner-freebsd-java@FreeBSD.ORG Fri Feb 20 00:57:58 2004 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 C1F0716A4CE for ; Fri, 20 Feb 2004 00:57:58 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DC3A43D1D for ; Fri, 20 Feb 2004 00:57:58 -0800 (PST) (envelope-from past@noc.ntua.gr) Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1]) by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i1K8vuFO070576; Fri, 20 Feb 2004 10:57:56 +0200 (EET) (envelope-from past@noc.ntua.gr) Received: from noc.ntua.gr (hal.noc.ntua.gr [147.102.220.45]) by ajax.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i1K8vuKY098168; Fri, 20 Feb 2004 10:57:56 +0200 (EET) (envelope-from past@noc.ntua.gr) Message-ID: <4035CC14.4070309@noc.ntua.gr> Date: Fri, 20 Feb 2004 10:57:56 +0200 From: Panagiotis Astithas Organization: NTUA/NMC User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040218 X-Accept-Language: el, en-us, en MIME-Version: 1.0 To: maillist.freebsd-java.2004@openstandards.net References: <4035831C.3040100@openstandards.net> In-Reply-To: <4035831C.3040100@openstandards.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: java.lang.NoClassDefFoundError building native 1.4 SDK 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: Fri, 20 Feb 2004 08:57:58 -0000 Erik wrote: > I am trying to build the native JDK 1.4 for the first time, and am new > to FreeBSD. When I do a gmake, I get the following: > > cd ../generated; /usr/local/linux-sun-jdk1.4.2/bin/java -classpath . > MakeDeps diffs UnixPlatform platform.current includeDB.current > /usr/tmp/j2sdk/hotspot/build/bsd/platform_i486 includeDB -firstFile > functionAtStart.cpp -lastFile functionAtEnd.cpp > Exception in thread "main" java.lang.NoClassDefFoundError: MakeDeps > gmake[2]: *** [../generated/includeDB.current] Error 1 > > I checked the > /usr/tmp/j2sdk/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/generated > folder, and MakeDeps.class is definately there. I even CD'd into the > folder and tried to call the class directly, but get the same error: > > root@host# /usr/local/linux-sun-jdk1.4.2/bin/java -classpath > ".;./MakeDeps.class" MakeDeps > Exception in thread "main" java.lang.NoClassDefFoundError: MakeDeps > > It's as if it runs the main in the class, but then can't see itself as > an actual class. Without the source code, I can't see what it's trying > to do. > Can someone please help me? I ultimately need to run JBoss. What are > the consequences of using the Linux binary instead of a native FreeBSD SDK? > Thank you, > > Erik > OpenStandards.net I think you would save yourself unnecessary grief by using the ports: cd /usr/ports/java/jdk14; make install Cheers, -- Panagiotis Astithas Electrical & Computer Engineer, PhD Network Management Center National Technical University of Athens, Greece