Received: by 10.224.189.75 with SMTP id dd11mr8326772qab.6.1347405705446; Tue, 11 Sep 2012 16:21:45 -0700 (PDT) Received: by 10.52.90.69 with SMTP id bu5mr3457130vdb.6.1347405705405; Tue, 11 Sep 2012 16:21:45 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!v8no255183qap.0!news-out.google.com!da15ni3445qab.0!nntp.google.com!v8no255182qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Tue, 11 Sep 2012 16:21:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.71.154.51; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT NNTP-Posting-Host: 173.71.154.51 References: <08dcc4bb-ac13-4992-b576-1d4f51a28d2e@googlegroups.com> <83333a34-5a38-4199-a83b-db2c2c39658b@googlegroups.com> <734d3450-00d4-45cf-a760-f78a10613945@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) From: clusardi2k@aol.com Injection-Date: Tue, 11 Sep 2012 23:21:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:18659 On Tuesday, September 11, 2012 12:25:45 PM UTC-4, markspace wrote: > On 9/11/2012 5:12 AM, ... wrote: > On NetBeans, how do I determine what J= DK I'm using. I forgot which > one I loaded. It's in your project propertie= s. And it's not the one you have loaded, it's the one you have set for the = build target. In other words, if you are using JDK 7, you can still be targ= eting for example Java 5 in your project, which is useful if you have users= still on Java 5 who don't want to upgrade. Right-click on the project, Pro= perties -> Sources, way down at the bottom it says "Sources/Binary Format",= that's your target (I'm using NB 7.2 btw, I seem to remember a slightly di= fferent option format in NB 6). Also, you need the JRE. The JDK is for deve= lopment, your users won't normally need that. All they need is the normal r= untime, the JRE. You personally can use the JDK, because it contains a JRE,= but anyone else will normally just have the JRE. To run, you use java -cp = -jar If you need to do fancier th= ings than that (distribute over the internet, for example) then look into J= ava WebStart or consider OneJar if you are going to just copy the files aro= und. How do I determine the specific JRE that I need. Thanks,