Problema ao compilar ALGENCAN (java)

47 views
Skip to first unread message

Ricardo

unread,
Jan 28, 2013, 3:33:28 PM1/28/13
to TANGO Project - ALGENCAN
Dear Felipe,
I'm replying your e-mail and sending a copy to the TANGO group.
The file jni.h should be in the directory specified by JAVAINC.
It seems you don't have a JDK installed or you didin't set JAVAINC correctly.
I suggest you to install the package sun-java6-jdk.
I know this package is avaliable in the Linux Mint version named Lisa.
If it's not avaliable in your version, you may try the following commands:

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk

After installing
sun-java6-jdk, check if the install process created the directory /usr/lib/jvm/java-6-sun-1.6.0.26 .
If it created a different directory, you will need to change  the Makefile in order ro reflect this change.

For example, if the installation created a directory called /usr/lib/jvm/
java-6-sun-1.6.0.XX , you should change the Makefile so that the line:
JAVAINC := /usr/lib/jvm/java-6-sun-1.6.0.26/include
be like:
JAVAINC := /usr/lib/jvm/java-6-sun-1.6.0.XX/include

This should solve yout problem.


   []s,


         Ricardo


---------- Forwarded message ----------
From: Felipe Duarte <felipela...@gmail.com>
Date: 2013/1/24
Subject: Problemas com TANGO - Java
To: egbi...@gmail.com


Olá professor, 

sou aluno do mestrado em ciência da computação do ICMC-USP... estava cogitando a possibilidade de utilizar o projeto TANGO para posicionamento de palavras em uma tag cloud... 

Todo o nosso projeto esta escrito em Java e por este mesmo motivo precisava utilizar a interface Java do TANGO... estou tendo um problema para compilar e gerar a interface... ja pesquisei e não consegui solucionar o problema... peguei a versão em dev. no git  e continuei com o mesmo problema... não consigo compilar... Segue abaixo o problema:

felipelageduarte@felipe-virtualbox:~/algencan-2.4.0$ make algencan-java PROBNAME=ToyProb
make -C /home/felipelageduarte/algencan-2.4.0/sources/algencan
make[1]: Entering directory `/home/felipelageduarte/algencan-2.4.0/sources/algencan'
gfortran -O4 -xf77-cpp-input -fPIC  -c -o algencanma.o algencanma.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o algencan.o algencan.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o auglag.o auglag.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o backtrack.o backtrack.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o betra.o betra.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o calc.o calc.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o cgm.o cgm.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o checkder.o checkder.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o dogleg.o dogleg.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o drand.o drand.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o evalal.o evalal.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o extrap.o extrap.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o fparam.o fparam.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o gencan.o gencan.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o happrox.o happrox.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o lss.o lss.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o moresor.o moresor.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o newtd.o newtd.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o newtonkkt.o newtonkkt.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o scl.o scl.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o setpoint.o setpoint.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o sevalus.o sevalus.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o spgls.o spgls.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o tevalus.o tevalus.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o tnls.o tnls.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o uevalus.o uevalus.f
gfortran -O4 -xf77-cpp-input -fPIC  -c -o vevalus.o vevalus.f
make[1]: Leaving directory `/home/felipelageduarte/algencan-2.4.0/sources/algencan'
make -C /home/felipelageduarte/algencan-2.4.0/sources/interfaces/java all install
make[1]: Entering directory `/home/felipelageduarte/algencan-2.4.0/sources/interfaces/java'
gcc -O4 -Df2cFortran -fPIC -fPIC -c -I/usr/lib/jvm/java-6-sun-1.6.0.26/include -I/usr/lib/jvm/java-6-sun-1.6.0.26/include/linux javawrapper.c
javawrapper.c:1:17: fatal error: jni.h: No such file or directory
compilation terminated.
make[1]: *** [javawrapper.o] Error 1
make[1]: Leaving directory `/home/felipelageduarte/algencan-2.4.0/sources/interfaces/java'
make: *** [algencan-java] Error 2

Como você pode ver ele esta reclamando da falta do arquivo jni.h ... eu procurei e não encontrei em lugar nenhum... Você poderia me ajudar a resolver tal problema?? Tenho que instalar alguma lib no meu computador que não esta na documentação ? Estou usando uma dist. linux chamada mint com Kde... 

Agradeço desde ja...

att.

Felipe Simões Lage Gomes Duarte
Mestrando em Ciência da Computação - USP 

Reply all
Reply to author
Forward
0 new messages