Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1DED187F6 for ; Fri, 11 Dec 2015 21:09:28 +0000 (UTC) Received: (qmail 29213 invoked by uid 500); 11 Dec 2015 21:09:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29153 invoked by uid 500); 11 Dec 2015 21:09:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 29142 invoked by uid 99); 11 Dec 2015 21:09:25 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2015 21:09:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 261451A5DCA for ; Fri, 11 Dec 2015 21:09:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KfMzb4pQQmQo for ; Fri, 11 Dec 2015 21:09:18 +0000 (UTC) Received: from vms173021pub.verizon.net (vms173021pub.verizon.net [206.46.173.21]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A9DFA265DB for ; Fri, 11 Dec 2015 21:09:18 +0000 (UTC) Received: from Christophers-MacBook-Pro.local ([71.127.40.115]) by vms173021.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NZ700BSCPEIDKL0@vms173021.mailsrvcs.net> for users@tomcat.apache.org; Fri, 11 Dec 2015 15:08:47 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WpDWSorv c=1 sm=1 tr=0 a=tVXBnewmVzifmTgg5+7jYA==:117 a=-57I09spAAAA:8 a=oR5dmqMzAAAA:8 a=IkcTkHD0fZMA:10 a=wUQvQvOEmiQA:10 a=yPCof4ZbAAAA:8 a=NLKAJ6CVS98e1m8FeT0A:9 a=QEXdDO2ut3YA:10 a=3D4zUYgysSMA:10 Subject: Re: How to build tc-native for solaris sparc 64 bit using 64 bit java JDK To: Tomcat Users List References: From: Christopher Schultz Message-id: <566B3B5A.9060903@christopherschultz.net> Date: Fri, 11 Dec 2015 16:08:42 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Nithesh, On 12/11/15 2:27 PM, Nithesh Kb wrote: > *HI, I'm using Solaris sparc 64 bit machine. i wanted to build tc native > using 64 bit version of java.* > > *i installed java in my Solaris box by referring* > http://docs.oracle.com/javase/7/docs/webnotes/install/solaris/solaris-jdk.html > > *when i check the* > > /usr/jdk/jdk1.7.0_80/bin/java -version > java version "1.7.0_80"Java(TM) SE Runtime Environment (build > 1.7.0_80-b15)Java HotSpot(TM) Server VM (build 24.80-b11, mixed mode) > > *export JAVA_HOME=/usr/jdk/jdk1.7.0_80* > > *./configure --with-apr=/usr/local/apr/bin/apr-1-config > --with-java-home=$JAVA_HOME --with-ssl=/usr/local/ssl > --prefix=$CATALINA_HOME* > > *i'm able to build using this java 32 bit but 64 bit java is there in* > > /usr/jdk/jdk1.7.0_80/bin/sparcv9/java -version > java version "1.7.0_80"Java(TM) SE Runtime Environment (build > 1.7.0_80-b15)Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed > mode) > > *So how do i tell my tc-native configure to use 64 bit java instead of* 32 > bit java > > Issue is here i can build with 32 bit java and tomcat will work. but in > production there is no 32 bit JRE only 64 bit JRE is there is if is use the > same 32 bit tc-native library i'l get > > *wrong ELF class: ELFCLASS32 (Possible cause: architecture word width > mismatch)]* > > So i must use 64 JDK for tc native build. please help me Try this: $ ./configure ... --with-java-home=$JAVA_HOME --with-os-type=sparc9 Or, is there a way to remove the 32-bit JVM? (That may not be an option for you long-term, but it would be interesting to see what happens). -chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org