From owner-freebsd-java Thu Apr 23 13:40:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA21505 for freebsd-java-outgoing; Thu, 23 Apr 1998 13:40:05 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA21478; Thu, 23 Apr 1998 13:40:01 -0700 (PDT) (envelope-from bartol@salk.edu) Received: from cole.salk.edu (cole [198.202.70.113]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id NAA25590; Thu, 23 Apr 1998 13:39:56 -0700 (PDT) Date: Thu, 23 Apr 1998 13:39:18 -0700 (PDT) From: Tom Bartol To: Nate Williams cc: freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG Subject: Re: Trouble installing SwingSet in JWS In-Reply-To: <199804232012.OAA10969@mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 23 Apr 1998, Nate Williams wrote: > > I grabbed swing-1.0.1 from Sun and installed it. Now when I try to get > > JWS to see it using "Import Components to Palette..." I get the following > > error in the Java WorkShop Java Console: > > > > > > java.lang.OutOfMemoryError > > This seems pretty obvious to me. > > > Soooo, what am I doing wrong here? > > Running out of memory. What are your memory limits set to? > > > Nate That was my first guess as well but that's not it. After installing the JWS-2.0a extension (which Sun claims is required to support JFC-1.1/swing-1.0.1) I noticed that the new startup_wrapper that it comes with does the following: max_heap="-mx128m" ... java_opts="${max_heap} ${initial_heap} ${c_stack_size} ${java_opts}" So I added this to our freebsd startup_wrapper and, Shazamm!! The "Import Components to Palette..." function opens swingall.jar just fine now. It claims to have found 33 Beans in the file and the sets of widgets appear in the left hand half of the Import window. Now I just have to read the docs on how to add these to the existing palette on the right side of the window... Give me a minute... O.K. I've just read the help on how to do it and have just tried but now I get this error message in the java console: Visual Palette Editor Log : Failure locating Class for com.sun.java.swing.JMenuBarShadow and I get this message in my shell window: ELF binary type not known Which make it look like the visual palette editor is trying to run one of the ELF solaris binaries that come with JWS and not a FreeBSD one. It does say which binary it is trying to run. Any ideas on how to progress past this one now? Thanks, Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message