From owner-freebsd-java Thu Jul 4 1: 9:54 2002 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 D949537B401 for ; Thu, 4 Jul 2002 01:09:44 -0700 (PDT) Received: from novakom.dp.ua (ns.novakom.dp.ua [195.24.147.52]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C44443E09 for ; Thu, 4 Jul 2002 01:09:00 -0700 (PDT) (envelope-from valera@novakom.dp.ua) Received: (qmail 9159 invoked from network); 4 Jul 2002 07:58:39 -0000 Received: from goliath.novakom.dp.ua (HELO there) (192.168.1.210) by post.novakom.dp.ua with SMTP; 4 Jul 2002 07:58:39 -0000 Content-Type: text/plain; charset="koi8-r" From: Valery V.Chikalov To: "adrian" Subject: Re: OpenJIT problem Date: Thu, 4 Jul 2002 11:18:48 +0300 X-Mailer: KMail [version 1.3] Cc: References: <006801c2228f$fce61500$d901a8c0@novakom.dp.ua> <001301c222a0$da1b7720$0801000a@atlanta.pcmediconsite.com> <20020704070931.68EB943E09@mx1.FreeBSD.org> In-Reply-To: <20020704070931.68EB943E09@mx1.FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020704080900.6C44443E09@mx1.FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thursday 04 July 2002 10:19, Valery V.Chikalov wrote: First of all about my environment: root - knows nothing about java. I use root for installations only. To install jdk1.3.1, I cd to /usr/ports/java/jdk13 and make install. Then log as valera set PATH to /usr/local/jdk1.3.1/bin and voa-la Now when I try as root run ./configure from /usr/bsdjava/OpenJIT-1.1.16 I get folowing: configure: error: wrong JDK install path Setting setenv JAVA_HOME=/usr/local/jdk1.3.1 from command line ^^ and in .cshrc doesn't help. Only when I set path for root to /usr/local/jdk1.3.1/bin I was able to get successfully finished ./configure but after ./gmake ... /usr/java/bin/javah -d CClassHeaders -old -stubs org.OpenJIT.Compile gcc -g -Wall -Wno-unknown-pragmas -DDEBUG -DJCOV -DHAVE_ALIGNED_DOUBLES -DHAVE _ALIGNED_LONGLONGS -I/usr/java/include -I/usr/java/include/freebsd -I/usr/java/i nclude-old -I/usr/java/include-old/freebsd -I./CClassHeaders -DARCH=\"X86\" -DJD K_VERSION_STRING=\"1.3.1-p6\" -DENABLE_OPENJITJAR=0 -DOPENJIT_JAR_PATH=\"/usr/ja va/jre/lib/i386\" -c -o obj_g/stubs.o stubs.c gcc -g -Wall -Wno-unknown-pragmas -DDEBUG -DJCOV -DHAVE_ALIGNED_DOUBLES -DHAVE _ALIGNED_LONGLONGS -I/usr/java/include -I/usr/java/include/freebsd -I/usr/java/i nclude-old -I/usr/java/include-old/freebsd -I./CClassHeaders -DARCH=\"X86\" -DJD K_VERSION_STRING=\"1.3.1-p6\" -DENABLE_OPENJITJAR=0 -DOPENJIT_JAR_PATH=\"/usr/ja va/jre/lib/i386\" -c -o obj_g/jdklink.o jdklink.c /usr/java/bin/javah -d CClassHeaders -old org.OpenJIT.X86 Error: Class org.OpenJIT.OptimizeRTL could not be found. gmake[1]: *** [CClassHeaders/org_OpenJIT_X86.h] Error 15 gmake[1]: Leaving directory `/usr/bsdjava/OpenJIT-1.1.16' gmake: *** [debug] Error 2 goliath# gmake --version GNU Make version 3.78.1, by Richard Stallman and Roland McGrath. Built for i386--freebsd4.0 goliath# gcc --version 2.95.3 Is JAVA_HOME must be exactly equal /usr/j2sdk1.3.1 as you have wrote ? Thank You for help. Valera. > Thank You for detailed explanation. > I shell try and post results. > > Good luck. > > Valery. > > On Wednesday 03 July 2002 17:49, adrian wrote: > > *This message was transferred with a trial version of CommuniGate(tm) > > Pro* Excerpt from an article I wrote for native FreeBSD 1.3.1 > > pacth level 6, FreeBSD 4.5. > > You may need to change some of the paths (usr/bsdjava etc....). > > Also I did not have to add anything to the LD_LIBRARY path. > > make sure you add the JAVA_HOME and JAVA_COMPILER to you .profile or > > whatever. > > If not the exports are only active in the current xterm > > Just In Time Compiler > > In order to speed up execution time, a just in time compiler will > > translate Java bytecode into machine code on the fly. None of Sun's JITs > > have been ported yet, but third party products are available. > > > > OpenJIT is available from http://www.openjit.org. It is real easy to > > install. Use the latest version 1.1.6. Download it to /usr/bsdjava with > > the other files. > > > > Extract it in /usr/bsdjava directory with: > > > > gtar -xvzf OpenJIT-1.1.16.tar.gz > > > > Set JAVA_HOME: > > export JAVA_HOME=/usr/j2sdk1.3.1 > > > > Add it to your .profile file as well. If your using csh set JAVA_HOME > > with the command: > > setenv JAVA_HOME /usr/j2sdk1.3.1 > > > > Add to your .cshrc file. > > > > Change directory to /usr/bsdjava/OpenJIT-1.1.16 and execute: > > > > ./configure > > > > then: > > gmake ; gmake install > > > > One last environment variable to set: > > export JAVA_COMPILER=OpenJIT > > > > Go ahead and add it to your .profile file as well. > > > > Test it to make sure it installed with: > > > > java -version > > > > You should see: > > Classic VM (build 1.3.1-p6-root-020221-19:31, green threads, OpenJIT) > > > > ----- Original Message ----- > > From: "Valery V.Chikalov" > > To: > > Sent: Wednesday, July 03, 2002 8:48 AM > > Subject: OpenJIT problem > > > > > Just after succesfull OpenJIT install: > > > > > > #uname -a > > > FreeBSD goliath.novakom.dp.ua 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Wed > > > Mar > > > > 6 > > > > > 08:45:07 EET 2002 > > > root@goliath.novakom.dp.ua:/usr/src/sys/compile/GOLIATH > > > i386 > > > > > > #export LD_LIBRARY_PATH=/usr/local/lib/OpenJIT > > > #export CLASSPATH=/usr/local/lib/OpenJIT/OpenJIT.jar > > > #export JAVA_COMPILER=OpenJIT > > > > > > #java -version > > > > > > Warning: JIT compiler "OpenJIT" not found. Will use interpreter. > > > java version "1.3.1-p6" > > > Java(TM) 2 Runtime Environment, Standard Edition (build > > > 1.3.1-p6-root-020607-13:51) > > > Classic VM (build 1.3.1-p6-root-020607-13:51, green threads, nojit) > > > > > > #pkg_info | grep openjit > > > openjit-1.1.15 A high-performance reflective Java Just-In-Time > > > (JIT) bytec > > > > > > #java -Djava.compiler=OpenJIT -version > > > > > > -The same > > > > > > Is this known issue? > > > What i'm miss? > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-java" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message