Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33511

java Environment in Manjaro Linux

From ruben <ceo@iran.gov>
Newsgroups comp.lang.java.programmer
Subject java Environment in Manjaro Linux
Date 2016-01-22 15:37 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <n7tic6$rbh$4@reader1.panix.com> (permalink)

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

java Environment in Manjaro Linux ruben <ceo@iran.gov> - 2016-01-22 15:37 +0000
  Re: java Environment in Manjaro Linux Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-01-22 11:16 -0500
  Re: java Environment in Manjaro Linux Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-22 20:44 +0000
    Re: java Environment in Manjaro Linux ruben <ceo@iran.gov> - 2016-01-22 21:10 +0000
      Re: java Environment in Manjaro Linux Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-22 22:25 +0000
        Re: java Environment in Manjaro Linux Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-22 23:11 +0000
  Re: java Environment in Manjaro Linux Arne Vajhøj <arne@vajhoej.dk> - 2016-01-22 20:45 -0500
    Re: java Environment in Manjaro Linux Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-23 11:17 +0000

csiph-web