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: java Environment in Manjaro Linux Date: Fri, 22 Jan 2016 15:37:43 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 35 Message-ID: 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 1453477063 28017 96.57.23.82 (22 Jan 2016 15:37:43 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 22 Jan 2016 15:37:43 +0000 (UTC) To: christopher.league@liu.edu User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT e424b98 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:33511 I'm testing the java developers environment and its not working as I expected [ruben@localhost cs664s16]$ cat ./helloworld.java public class helloworld { public static void main(String[] args) { System.out.println("Bonjour le monde !"); } } [ruben@localhost cs664s16]$ echo $CLASSPATH /home/ruben/GNUstep/Library/Libraries/Java:/root/GNUstep/Library/ Libraries/Java:/usr/lib/GNUstep/Libraries/Java:.:./ [ruben@localhost cs664s16]$ java ./helloworld.java Error: Could not find or load main class ..helloworld.java this works however: [ruben@localhost cs664s16]$ java helloworld Bonjour le monde ! So, I am completely confused. How can it not take the specified file name to run? Also, where is the $CLASSPATH set? in the system /etc/profile ? I should probaly add ./ to the bashrc file? Ruben