Path: csiph.com!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: ruben Newsgroups: comp.lang.java.programmer Subject: Re: java Environment in Manjaro Linux Date: Fri, 22 Jan 2016 21:10:46 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 73 Message-ID: References: NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader1.panix.com 1453497046 22492 96.57.23.82 (22 Jan 2016 21:10:46 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 22 Jan 2016 21:10:46 +0000 (UTC) User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT e424b98 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:33517 On Fri, 22 Jan 2016 20:44:42 +0000, Martin Gregorie wrote: > You don't show how you compiled the source file. > with javac > >> this works however: >> >> [ruben@localhost cs664s16]$ java helloworld Bonjour le monde ! >> > In that case helloworld.class, as output by the compiler, must be in > CLASSPATH somewhere. > yes > what does "ls" show when run in the directory holding helloworld.java? > [ruben@localhost cs664s16]$ ls -l total 20 -rw-r--r-- 1 ruben users 432 Jan 22 10:30 helloworld.class -rw-r--r-- 1 ruben users 127 Jan 22 10:30 helloworld.java -rw-r--r-- 1 ruben users 430 Jan 22 10:46 Main.class -rw-r--r-- 1 ruben users 173 Jan 22 09:43 Main.java -rw-r--r-- 1 ruben users 28 Jan 22 08:47 README.md > what does "sudo updatedb; locate helloworld.class" show? Be patient: it > make take a few minutes to run if you haven't run updatedb recently. locate/updatedb will not search my home directory, in my setup, regardless how often it runs [ruben@localhost cs664s16]$ find /home/ruben/ -iname "helloworld*" -print /home/ruben/src/grad_school/compiler/cs664s16/helloworld.class /home/ruben/src/grad_school/compiler/cs664s16/helloworld.java /home/ruben/.cpan/build/Perl6-Pugs-6.2.13-PTKdk7/ext/WTemplate/examples/ helloworld.tpl /home/ruben/.cpan/build/Perl6-Pugs-6.2.13-PTKdk7/ext/WTemplate/examples/ helloworld.pl /home/ruben/.cpan/build/Perl6-Pugs-6.2.13-PTKdk7/misc/pX/Common/AST- Design/Perl5/helloworld.in /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/152/0/.cp/cheatsheets/HelloWorld.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/152/0/.cp/cheatsheets/HelloWorldSWT.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld-composite.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld/helloworld-feature.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld/helloworld-create.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld/helloworld-install.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld/helloworld-extension.xml /home/ruben/.eclipse/ org.eclipse.platform_4.4.2_1543616141_linux_gtk_x86_64/configuration/ org.eclipse.osgi/190/0/.cp/cheatsheets/helloworld/helloworld-update.xm