.. or you can use the --with-java-home option for configure. Eg something like 
this:

./configure --with-java-home=/opt/jdk/

Run "./configure --help" to see all options available..

Regards,
Jens Dueholm Christensen 


-----Original Message-----
From: resin-interest-boun...@caucho.com 
[mailto:resin-interest-boun...@caucho.com] On Behalf Of Alex Rojkov
Sent: Friday, April 13, 2012 6:15 PM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] cannot ./configure resin - says java not 
installed, - it is installed and JAVA_HOME is set correctly..

> help?
> I have java installed in a custom folder due to distriubtion reasons;

Hi Tom,

Can you add /opt/jdk/bin to the PATH and try again.

./configure in 4.0.27 does 'which java' to find java executable. I added a 
fallback to JAVA_HOME/bin/java for 4.0.28 and up.

Thanks,
Alex
> 
> root@ubuntu64#echo $JAVA_HOME
> /opt/jdk/
> 
> when double checking the version:
> root@ubuntu64# $JAVA_HOME/bin/java -version
> java version "1.6.0_27"
> Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
> 
> 
> however when doing a configure I get this error: ( I even exported
> JAVA_HOME to /opt/jdk/ )
> ==
> root@ubuntu64:/opt/resin-4.0.27# ./configure
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> ...
> ..
> checking if  is Java 1.6... no
> configure: error: Java 1.6 required.  returned: ./configure: line
> 11291: -version: command not found
> ==
> 
> why is this happening?
> 
> tia!
> 
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to