Its official name is a static initialiser.
Frank Mi wrote:. . . static block . . .
It used to work but (I think) in Java7, (I think) they altered the start up process which seems to look for the main method before the class is loaded and throws an exception.
However, it doesn't work now. Is it fixed by Java? . . .
It means rather than writing two lines as I showed earlier, you write export PATH=/my/path/to/java/jdk8_261/bin:$PATH or similar.
Terrance Samson wrote:. . . you can probably telescope the two into export PATH=...", . . .
First time for everything; nobody else thinks what I write makes sense
I'm pretty sure it makes sense. . . .
It should look just like Java® developed on a Windows® partition.
I may yet develop using Java on a Linux partition . . .
What's this? I go away for a few hours and come back to find people were discussing what complete normally means.
Frank Mi wrote:Stephan and Simon indeed agree on the same idea that "return" does NOT "complete normally"
Yes . . . No
Terrance Samson wrote:. . . NetBeans . . . an IDE like Eclipse . . . So then would I need to install that just to run Java programs . . .
Don't know. Use man tar and see what it tells you.
- I've seen the zxvf written with the "-" before it and without. . . .
use whatever text editor I have . . .
It probably won't have JAVA_HOME and PATH in at all; you will have to add them both. If you don't use NetBeans, you can probably telescope the two into export PATH=... and omit JAVA_HOME.
open the file called "~/.bashrc" and then find where it mentions "JAVA_HOME" . . .
You can't do any harm with update, but inflating the .tar.gz doesn't require update at all.
. . . update twice? . . .
It means the new entry coems first, as I wrote it. It means that directory is searched first when looking for java, javac, etc. Otherwise there is a risk of finding multiple installations with mutually conflicting version numbers.
. . . Do you mean the beginning of the line of text? . . .
It adds the new entry to the previously set PATH for the purposes of the current terminal.
. . . PATH=$PATH... does that append the path variable . . .
I shall add you to the JS forum whre there is a discussion about a microservices book at the moment. They might be able to help you there, and, who knows, you might be eligible for the book draw
Jesus Angeles wrote:. . . not exactly focused on microservices at all)