Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33516
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java Environment in Manjaro Linux |
| Date | 2016-01-22 20:44 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <n7u4bq$6d5$1@dont-email.me> (permalink) |
| References | <n7tic6$rbh$4@reader1.panix.com> |
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