Date: Wed, 26 Aug 1998 19:35:24 -0400 (EDT) From: BEAUPRE Antoine <beaupran@JSP.UMontreal.CA> To: "David W. Curry" <david@magickalhome.com> Cc: Patrick Gardella <patrick@cre8tivegroup.com>, FreeBSD-Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Executing java application. Message-ID: <Pine.SGI.3.96.980826193419.2699A-100000@derby.jsp.umontreal.ca> In-Reply-To: <35E41E42.D4667031@magickalhome.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.980826193419.2699A-100000>