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


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

Re: java Environment in Manjaro Linux

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: java Environment in Manjaro Linux
Date 2016-01-22 22:25 +0000
Organization A noiseless patient Spider
Message-ID <n7ua9a$q5m$2@dont-email.me> (permalink)
References <n7tic6$rbh$4@reader1.panix.com> <n7u4bq$6d5$1@dont-email.me> <n7u5sm$lus$1@reader1.panix.com>

Show all headers | View raw


On Fri, 22 Jan 2016 21:10:46 +0000, ruben wrote:

> On Fri, 22 Jan 2016 20:44:42 +0000, Martin Gregorie wrote:
> 
> 
>> You don't show how you compiled the source file.
>> 
>> 
> with javac
>
OK
 
>> 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
>
OK, so javac is working as expected and putting the .class file alongside 
the .java file it was compiled from.

Note that none of  

  java helloworld.java 
  java helloworld.class 
  java ./helloworld 

will run on my system either because 'java' it is using the name as a 
class name, which in your class is simply 'helloworld', and searching 
through CLASSPATH and the current directory for it.
 
>> 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
>
How odd.
 

-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | 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