Date: Sun, 8 Aug 2004 10:06:49 -0400 From: Bill Moran <wmoran@potentialtech.com> To: liz <liz@kvartet.ru> Cc: questions@freebsd.org Subject: Re: Re[2]: Problems with Sun Java Message-ID: <20040808100649.7617240e.wmoran@potentialtech.com> In-Reply-To: <1871541073.20040808202346@kvartet.ru> References: <411618A4.7040400@kvartet.ru> <20040808083907.5014cd39.wmoran@potentialtech.com> <1871541073.20040808202346@kvartet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[Keep the mailing list CCed. I can not answer all your questions, but I'll help where I can.] liz <liz@kvartet.ru> wrote: > Hello Bill, > > Sunday, August 8, 2004, 7:39:07 PM, you wrote: > > BM> Return-Path: <wmoran@potentialtech.com> > BM> Delivered-To: liz@kvartet.ru > BM> Received: from internet.potentialtech.com > BM> (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) > BM> by vega.kvartet.ru (Postfix) with ESMTP id 82A1D1DB129 > BM> for <liz@kvartet.ru>; Sun, 8 Aug 2004 19:37:19 +0700 (NOVST) > BM> Received: from working.potentialtech.com > BM> (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) > BM> by internet.potentialtech.com (Postfix) with ESMTP id 5AA9A69A87; > BM> Sun, 8 Aug 2004 08:39:08 -0400 (EDT) > BM> Date: Sun, 8 Aug 2004 08:39:07 -0400 > BM> From: Bill Moran <wmoran@potentialtech.com> > BM> To: liz <liz@kvartet.ru> > BM> Cc: freebsd-questions@FreeBSD.org > BM> Subject: Re: Problems with Sun Java > BM> Message-Id: <20040808083907.5014cd39.wmoran@potentialtech.com> > BM> In-Reply-To: <411618A4.7040400@kvartet.ru> > BM> References: <411618A4.7040400@kvartet.ru> > BM> Organization: Potential Technologies > BM> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) > BM> Mime-Version: 1.0 > BM> Content-Type: text/plain; charset=US-ASCII > BM> Content-Transfer-Encoding: 7bit > > BM> liz <liz@kvartet.ru> wrote: > > >> Hello! > >> I'm new user FreeBSD. > >> I use linux 2 years and know this system very well. > >> But with FreeDSD i have some problem with Java ( > >> I use j2sdk-1_4_2_05-linux-i586.bin with linux emulator on FreeBSD-4.10. > >> And my Java not work!!! > >> How i can work with Sun Java on FreeBSD-4.10??? > > BM> You're likely to get more assistance if you provide detail: > BM> What exact steps did you perform to install Java? > BM> What, exactly, are you trying to do to _use_ java? > BM> What exact error messages do you get when it "not work"? > > My install step is > 1) copy j2sdk-1_4_2_05-linux-i586.bin from sun site > 2)#chmod +x j2sdk-1_4_2_05-linux-i586.bin > 3)#./j2sdk-1_4_2_05-linux-i586.bin > 4)set PAHT=/PATH_TO_JAVA_HOME > 5)#java > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > Usage: java [-options] class [args...] > (to execute a class) > or java [-options] -jar jarfile [args...] > (to execute a jar file) > ... and others ... > > Can't detect initial thread stack location - what is't??? > > Still I commin in /usr/ports/java/linux-sun-jdk14 > execute > #make install clean ... > ===> linux-sun-jdk-1.4.2.04 You must manually fetch the J2SE SDK self-extracting file for the Linux platform (j2sdk-1_4_2_04-linux-i586.bin) from http://javas > hoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_04-oth-JPR&SiteId=JSC&TransactionId=noreg, place it in /usr/ports/distfiles and then ru > n make again. You need to download these files manually, because Sun's licensing requires that you click on the "I agree" button on their website prior to downloading the files. There are about 4 or so that you have to get like this. It's a royal pain, but it's Sun's decision, not FreeBSD's. > ===> Cleaning for linux_base-7.1_7 > ===> Cleaning for javavmwrapper-1.5 > ===> Cleaning for linux-sun-jdk-1.4.2.04 > But j2sdk-1_4_2_04-linux-i586.bin vulnerable version java and Sun not > distribute this version!!! Where did you get that information? I installed the entire Java platform for FreeBSD just two days ago and was able to get all the files I needed. I've not heard/seen any information about vulnerabilites in jdk14. > I create simple Java Class Hello.java > public class Hello { > public static void main(String[] args) { > System.out.println("FreeBSD do you like Java???"); > } > } > Compile this > #javac Hello.java > And Java Compiler say this: > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > All right interpretive this simple class > #java Hello > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > FreeBSD do you like Java??? > > Well starting Tomcat-5.0.27 > #startup.sh > Using CATALINA_BASE: /usr/local/java/jakarta-tomcat-5.0.27 > Using CATALINA_HOME: /usr/local/java/jakarta-tomcat-5.0.27 > Using CATALINA_TMPDIR: /usr/local/java/jakarta-tomcat-5.0.27/temp > Using JAVA_HOME: /usr/local/java/j2sdk1.4.2_05 > #nmap localhost > Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-08-08 20:14 NOVST > Interesting ports on localhost (127.0.0.1): > (The 1656 ports scanned but not shown below are in state: closed) > PORT STATE SERVICE > 22/tcp open ssh > 53/tcp open domain > 8080/tcp open http-proxy --- apparently default tomcat ;) > Then load / webserver page > #lynx http://localhost:8080 > HTTP request sent; waiting for response. > Aaaaauuuu ;) hereabout heard of it tomcat... > View tomcat logs > #vim /usr/local/java/jakarta-tomcat-5.0.27/logs/catalina.out > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > Aug 8, 2004 8:14:01 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Aug 8, 2004 8:14:01 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1826 ms > Aug 8, 2004 8:14:02 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Aug 8, 2004 8:14:02 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.0.27 > Aug 8, 2004 8:14:02 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Aug 8, 2004 8:14:02 PM org.apache.catalina.core.StandardHost getDeployer > INFO: Create Host deployer for direct deployment ( non-jmx ) > Aug 8, 2004 8:14:02 PM org.apache.catalina.core.StandardHostDeployer install > INFO: Processing Context configuration file URL file:/usr/local/java/jakarta-tomcat-5.0.27/conf/Catalina/localhost/admin.xml > > No tomcat!!! > FreeBSD very cool system, but why Java not work in this system??? Java is probably the most difficult thing to get installed/running on FreeBSD, however, the port makes it as easy as is possible. The following procedure has always worked for me: cd /usr/ports/java/jdk14 make install ... wait ... You will get an error about a missing file that you have to download manually, follow the instructions to get the file, then do "make install" again. You will get another error about another missing file that you have to manually download ... follow the instructions and start "make install" again ... you'll get another error ... and so on. Eventually, make install will complete and you'll have a usable Java. Be very careful when downloading the required files. It seems as if Sun has a million Java distributions available for download, and all of their names are _almost_ the same. Make sure you're getting the correct file each time. > How i can help FreeBSD community??? Email Sun and politely ask them why they are making it so difficult to install Java on FreeBSD. Tell them that FreeBSD is your preferred platform for running Java and you'd like it if it weren't so difficult to install. You can also contact the FreeBSD Foundation, which has done a LOT of work to get the FreeBSD+Java thing this far. Ask them how you can help make it even easier. -- Bill Moran Potential Technologies http://www.potentialtech.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040808100649.7617240e.wmoran>