Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2002 11:18:48 +0300
From:      Valery V.Chikalov <valera@novakom.dp.ua>
To:        "adrian" <athiele@pcmediconsite.com>
Cc:        <freebsd-java@FreeBSD.org>
Subject:   Re: OpenJIT problem
Message-ID:  <20020704080900.6C44443E09@mx1.FreeBSD.org>
In-Reply-To: <20020704070931.68EB943E09@mx1.FreeBSD.org>
References:  <006801c2228f$fce61500$d901a8c0@novakom.dp.ua> <001301c222a0$da1b7720$0801000a@atlanta.pcmediconsite.com> <20020704070931.68EB943E09@mx1.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <valera@novakom.dp.ua>
> > To: <freebsd-java@FreeBSD.ORG>
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020704080900.6C44443E09>