From owner-freebsd-java@FreeBSD.ORG Tue Mar 22 20:57:10 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65F3E16A4CF for ; Tue, 22 Mar 2005 20:57:10 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9160A43D53 for ; Tue, 22 Mar 2005 20:57:09 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 4867C12121; Tue, 22 Mar 2005 15:56:39 -0500 (EST) Message-ID: <42408673.7020300@chuckr.org> Date: Tue, 22 Mar 2005 20:56:19 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Lewis References: <423F75CA.2080006@chuckr.org> <20050322201548.GA91212@misty.eyesbeyond.com> <424080FF.7020900@chuckr.org> <20050322204221.GB91456@misty.eyesbeyond.com> In-Reply-To: <20050322204221.GB91456@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: java Subject: Re: settings X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 20:57:10 -0000 Greg Lewis wrote: > On Tue, Mar 22, 2005 at 08:33:03PM +0000, Chuck Robey wrote: > >>Greg Lewis wrote: >> >>>The launcher sets up its own LD_LIBRARY_PATH, so what you have it set to >>>doesn't really matter. >>> >>>Can you try: >>> >>>env _JAVA_LAUNCHER_DEBUG=yes /usr/local/jdk1.5.0/bin/java -version >>> >>>Part of the output should be where it thinks the JVM is. Make sure this >>>looks correct. You may also want to post the output so we can see what >>>it looks like. >> >>I *really* appreciate this mail, and it did in fact prompt me to make >>some changes. Didn't (in the final analysis) fix anything, but I think >>maybe it's more correct. >> >>I had my installation in /usr/local/jdk1.5.0, but after inspecting that >>listing, it seemed that a more correct path included the version (p1) so >>now my installation is in /usr/local/jdk1.5.0-p1. I added safety >>softlinks to jdk and jdk1,5.0, andd I tested at each and every midpoint, >>in case some casae I was transient-ing the magic point. Wasn't. > > > Does this mean that you're compiling things yourself rather than using > the java/jdk15 port? I did use the port (my thanks for it, it was great!), but now that it's not working, I feel somewhat justified in some experimentation. Heck, my port doesn't even have a pkg-plist. > > >>OK, I still have the same exact error message: >> >>july:chuckr:~/jdk/Argo:#149>java -jar argouml.jar >>Error: could not find libjava.so >>Error: could not find Java 2 Runtime Environment. >> >>if you felt it would do any good, I would even give you a login to >>inspect the premises, so to speak (just mail me a ssh line). >> >>I only have this one demo app, ArgoUML, if you have another you trust, >>could you give me a url? > > > Well, could you please try the command I suggested above, adjusting for > wherever your installation is. I'd _really_ like to see the debug > output from it. > Oh, I'm sorry, I really should have done that. OK, before I changed the address (when it was to jdk1.5.0) the output was: july:chuckr:~/jdk/Argo:#136>env _JAVA_LAUNCHER_DEBUG=yes /usr/local/jdk1.5.0/bin/java -version ----_JAVA_LAUNCHER_DEBUG---- JRE path is /usr/local/jdk1.5.0/jre jvm.cfg[0] = ->-server<- jvm.cfg[1] = ->-client<- jvm.cfg[2] = ->-hotspot<- jvm.cfg[3] = ->-classic<- jvm.cfg[4] = ->-native<- jvm.cfg[5] = ->-green<- 6908 micro seconds to parse jvm.cfg Default VM: server Does `/usr/local/jdk1.5.0/jre/lib/amd64/server/libjvm.so' exist ... yes. ----_JAVA_LAUNCHER_DEBUG---- JRE path is /usr/local/jdk1.5.0/jre jvm.cfg[0] = ->-server<- jvm.cfg[1] = ->-client<- jvm.cfg[2] = ->-hotspot<- jvm.cfg[3] = ->-classic<- jvm.cfg[4] = ->-native<- jvm.cfg[5] = ->-green<- 62 micro seconds to parse jvm.cfg Default VM: server Does `/usr/local/jdk1.5.0/jre/lib/amd64/server/libjvm.so' exist ... yes. JVM path is /usr/local/jdk1.5.0/jre/lib/amd64/server/libjvm.so 357784 micro seconds to LoadJavaVM JavaVM args: version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 1 option[ 0] = '-Djava.class.path=.' java version "1.5.0-p1" JJava(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p1-chuckr_21_mar_2005_19_20) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0-p1-chuckr_21_mar_2005_19_20, mixed mode) july:chuckr:~/jdk/Argo:#137> After I added the "-p1" to the path and to the string you supplied, I got: july:chuckr:~/jdk/Argo:#153>env _JAVA_LAUNCHER_DEBUG=yes /usr/local/jdk1.5.0-p1/bin/java -version ----_JAVA_LAUNCHER_DEBUG---- JRE path is /usr/local/jdk1.5.0-p1/jre jvm.cfg[0] = ->-server<- jvm.cfg[1] = ->-client<- jvm.cfg[2] = ->-hotspot<- jvm.cfg[3] = ->-classic<- jvm.cfg[4] = ->-native<- jvm.cfg[5] = ->-green<- 85 micro seconds to parse jvm.cfg Default VM: server Does `/usr/local/jdk1.5.0-p1/jre/lib/amd64/server/libjvm.so' exist ... yes. ----_JAVA_LAUNCHER_DEBUG---- JRE path is /usr/local/jdk1.5.0-p1/jre jvm.cfg[0] = ->-server<- jvm.cfg[1] = ->-client<- jvm.cfg[2] = ->-hotspot<- jvm.cfg[3] = ->-classic<- jvm.cfg[4] = ->-native<- jvm.cfg[5] = ->-green<- 64 micro seconds to parse jvm.cfg Default VM: server Does `/usr/local/jdk1.5.0-p1/jre/lib/amd64/server/libjvm.so' exist ... yes. JVM path is /usr/local/jdk1.5.0-p1/jre/lib/amd64/server/libjvm.so 45700 micro seconds to LoadJavaVM JavaVM args: version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 1 option[ 0] = '-Djava.class.path=.' java version "1.5.0-p1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p1-chuckr_21_mar_2005_19_20) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0-p1-chuckr_21_mar_2005_19_20, mixed mode) july:chuckr:~/jdk/Argo:#154> I hope this is right?