Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33516
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Martin Gregorie <martin@address-in-sig.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java Environment in Manjaro Linux |
| Date | Fri, 22 Jan 2016 20:44:42 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 42 |
| Message-ID | <n7u4bq$6d5$1@dont-email.me> (permalink) |
| References | <n7tic6$rbh$4@reader1.panix.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 22 Jan 2016 20:44:42 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="6565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VTlfggvICdaqu24jkE9YX4UnijmM/0b8=" |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:nwhcsV/EwvJQ7YWLzsIqu6W9roY= |
| Xref | csiph.com comp.lang.java.programmer:33516 |
Show key headers only | View raw
On Fri, 22 Jan 2016 15:37:43 +0000, ruben wrote:
> 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
>
You don't show how you compiled the source file.
>
> 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.
what does "ls" show when run in the directory holding helloworld.java?
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.
--
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
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