From owner-freebsd-java@freebsd.org Mon Apr 4 20:16:42 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5637B02D6C for ; Mon, 4 Apr 2016 20:16:42 +0000 (UTC) (envelope-from till.oliver.knoll@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C64FC18B5 for ; Mon, 4 Apr 2016 20:16:42 +0000 (UTC) (envelope-from till.oliver.knoll@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C1D27B02D6A; Mon, 4 Apr 2016 20:16:42 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BED9CB02D69; Mon, 4 Apr 2016 20:16:42 +0000 (UTC) (envelope-from till.oliver.knoll@gmail.com) Received: from mail-lb0-x244.google.com (mail-lb0-x244.google.com [IPv6:2a00:1450:4010:c04::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45E9018B4; Mon, 4 Apr 2016 20:16:42 +0000 (UTC) (envelope-from till.oliver.knoll@gmail.com) Received: by mail-lb0-x244.google.com with SMTP id q4so24692694lbq.3; Mon, 04 Apr 2016 13:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GtDVp7kqfjZm9UE2BvU5awMNSRdZ0CCll+qBYMTr/1A=; b=iQ3r5M7WtmomEs0QuXRLGCn3XNkLC6rIS8t80twGIkcTVlhVGztPnqJ5NSI7TF/So/ 1ESpNAT0krDRPb5xklA9Eg12wCl88Hd99lT/y86uUcsLLYld3iyG776MWu7YIVpJPv85 eG9PNCkQMZBrSaqxEzWgA5apwdisAk/GebxtskXgEcK33bNYo4FVGsVNllGo04vLfC/H 7Cqqlt7bfjcm6tUhXAal8Er/CBYsKaVML1MGWD8lX7/38GUlsyfgC87kYJQ0/6DGy2hR GFdQwd8HR/MkaqlQOyH993DLTCFRuuPyfvesdzZLBG9VBC3dz/r5uifzoyoD+yOwypCK 48/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GtDVp7kqfjZm9UE2BvU5awMNSRdZ0CCll+qBYMTr/1A=; b=Mf36JEh1Z1soh3hj6/1FxSlg7jy2nWiCJDRoNh5SZLMYOIs0fiG6N6DfRwfBI2NaKd rQJrIhgwpN8VfKjdae4BhuN20is2QALpVt0Kmp1cE5WKgmXuPq6WpuGYaH83KE3a82el Ov7SRYXVsGuegE5+juJxtpiPqGGOX2EifSNBBVlN1gnVX9N0yYpCavShByIx2TVA+l+t Dz489m+wI+JJI8IzcyCJdT/2fOhXNhmCeKYGJ0E1KN13JQzpAHDQcfeyQcHXZgcfw2QX MYluJB5OdaBu/Cd/KfVi106D78YhRscqpsVDRLPOVt6y6iig8VVUlEnmlNDKxnXIJLak cHqw== X-Gm-Message-State: AD7BkJLZkP2pqlKXXLROP60KGc6kW1A7MFgKz8zBnmI2oypF8CPNpfq7tmwzM4fgg+89og== X-Received: by 10.28.217.146 with SMTP id q140mr13811444wmg.85.1459801000424; Mon, 04 Apr 2016 13:16:40 -0700 (PDT) Received: from [10.176.193.116] ([213.55.184.189]) by smtp.gmail.com with ESMTPSA id cf6sm9246116wjc.12.2016.04.04.13.16.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Apr 2016 13:16:39 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: when do I need to set JAVA_HOME? From: Till Oliver Knoll X-Mailer: iPhone Mail (13E238) In-Reply-To: <201604041104.u34B49Tw051741@mech-as222.men.bris.ac.uk> Date: Mon, 4 Apr 2016 22:16:38 +0200 Cc: freebsd-questions@freebsd.org, java@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0B98F374-862C-4433-A774-56D266CA4CDB@gmail.com> References: <201604041104.u34B49Tw051741@mech-as222.men.bris.ac.uk> To: mexas@bris.ac.uk X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 20:16:43 -0000 > Am 04.04.2016 um 13:04 schrieb Anton Shterenlikht : >=20 > I'm having troubles running an openGL > 3D visualisation over ssh -Y: >=20 > javax.media.opengl.GLException: Error making context current > at com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContex= t.java:141) > at com.sun.opengl.impl.x11.X11OnscreenGLContext.makeCurrentImpl(X11= OnscreenGLContext.java:69) > at=20 Hello list, The exception above sais that "OpenGL cannot activate ("make current") the d= esired (requested) graphic context". That is usually the case when the GPU (= graphic card) does not provide the requested features such as bit depth or f= eatures such as double-buffering (actually that would fail already at OpenGL= context /creation/ time, but let's skip over the details here, shall ww ;))= . The point is to me it doesn't look like a class is missing, which would hint= at a missing CLASSPATH. It is really an error at runtime, after all classes= have been loaded. It could still be that some (non-mandatory) OpenGL driver is not found (in t= he JAVA CLASSPATH), but my suspicion goes towards SSH: we are talking about a= remote connection, right? Could well be that your remote X client (or was i= t the X Server? IIRC those X11 people have a weitd notion of "server" and "c= lient" - but never mind ;)), that is the display "where you eventually show t= he app", claims to have features (for the created GL context) which it doesn= 't (or the "X Server" on the remote display is simply buggy). All that said: does the application run locally (without SSH)? Do other Open= GL applications run over SSH (with a comparable feature set, that is, do the= y make use of the same OpenGL version features, e.g. "OpenGL 3.3" or even 4.= x)? Cheers, Oliver