From owner-freebsd-questions Wed Aug 26 16:36:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA17689 for freebsd-questions-outgoing; Wed, 26 Aug 1998 16:36:34 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA17664 for ; Wed, 26 Aug 1998 16:36:25 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id TAA00142; Wed, 26 Aug 1998 19:35:24 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id TAA09082; Wed, 26 Aug 1998 19:35:24 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id TAA02771; Wed, 26 Aug 1998 19:35:24 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Wed, 26 Aug 1998 19:35:24 -0400 (EDT) From: BEAUPRE Antoine To: "David W. Curry" cc: Patrick Gardella , FreeBSD-Questions Subject: Re: Executing java application. In-Reply-To: <35E41E42.D4667031@magickalhome.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 26 Aug 1998, David W. Curry wrote: > I have compiled my own applications in Java. I am taking a tutourial on VJ++ and > am trying to write and execute the same software on my FreeBSD box. I have been > writing the code in my home directory and compling them with javac. If I try to > run them with the java command, it doesn't. For example. > > java HelloWorld.class > > Gives me : > > Cannot find class HelloWorld.class > > Know what I am doing wrong? You must do 'java Helloworld' . You must trim the .class part... (but keep the filename intact!!!) > Patrick Gardella wrote: > > > Dave, > > > > All you need to do is use: > > java name.of.app > > > > That's it. 'Course the name of the app may be different from what you are used > > to. For example, to run FreeBuilder, a free Java IDE, you change directories > > into /usr/local/freebuilder, and then run it with: > > java org.freebuilder.Main > > > > That sets all the classpaths correctly for use with this app. > > > > Which app are you trying to use? > > > > Patrick Gardella > > > > On 25-Aug-98 David W. Curry wrote: > > > I am not sure this is the right group to ask this, so please forgive > > > me. I have the JDK port for FreeBSD. I have no problem compiling java > > > applications into classes, nor do I have a problem running java applets > > > with java capable browses. I compile them using the javac command. > > > What I can't figure out how to do is run stand alone java applications > > > in FreeBSD. I can do it, of course, with VJ++ on Windows. Can anyone > > > help me? > > > > > > Thanks, > > > > > > Dave > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > +-----------------------------------+ | Free the world from businessmen | | Free yourself from your money | +-----------------------------------+ Free the web. Spidey visit: http://www.JSP.UMontreal.CA/~beaupran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message