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


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

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 23:11 +0000
Organization A noiseless patient Spider
Message-ID <n7ucv5$cgs$1@dont-email.me> (permalink)
References <n7tic6$rbh$4@reader1.panix.com> <n7u4bq$6d5$1@dont-email.me> <n7u5sm$lus$1@reader1.panix.com> <n7ua9a$q5m$2@dont-email.me>

Show all headers | View raw


On Fri, 22 Jan 2016 22:25:46 +0000, Martin Gregorie wrote:

> 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.
>  
However, something like this:

   java -classpath /home/kiwi/compiler_tests/hello_world helloworld

does work because its redefined the classpath to be just:
 
   the standard Java SE class library 
   /home/kiwi/compiler_tests/hello_world
 

-- 
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