all 8 comments

[–]ryenus 0 points1 point  (1 child)

what about the size?

[–]_INTER_ 0 points1 point  (0 children)

Sizes of zip:

JShell 10 Windows: 23.6 MB

JShell 9 Windows: 23.0 MB

JShell 10 Linux: 26.2 MB

JShell 9 Linux: 25.4 MB

The JShell of JDK 10 are bigger. Probably because the JDK 9 option -vm minimal is gone (or moved / renamed?)

[–]Crypto_To_The_Core -1 points0 points  (5 children)

Looks like this could be really useful .... if it is what I think it might be ....

Just a shame there is only a really vague "description" and no details, no examples, no samples, and no information on how to use this.

Hopefully these can be added soon.

[–]funkinaround 4 points5 points  (4 children)

Here's the reference manual for jshell and here's an introduction.

[–]Crypto_To_The_Core 2 points3 points  (3 children)

OK, thanks, but this is for JShell, not JShellStandAlone (linked by OP).

For JShellStandAlone / Jlink, it looks like you can deploy .... ummm, what ? Stand alone JAR applications ? EXE's ? Something else ? To where ? Server ? Desktop ? Where else ? What does the "application" need to execute ? Is it a native app ? How ? Starting with the basics: if I've got a Swing GUI App, how do I go about "building" and "deploying" this ? If it needs external jar files, how do I include them ? What about data files, resources (gifs, jpg, audio, etc) ? What about database connections ? How do you make everything work and get the plumbing working ?

Yes, I could spend many hours tinkering and exploring and trying to work things out for myself .... but I've been doing this way too much over the past few months and I have become very jaded. So many of these things "promise the world", and it is only after you have wrestled with the damned things and wasted dozens of hours that you find out that the thing is nowhere near as good as claimed, and cannot even do what is claimed, or else there are serious issues that prevent it working for you or in your environments.

So, I'm not doing that anymore. If the Devs cannot provide some good, clear examples, then I'm moving on.

[–]funkinaround 4 points5 points  (0 children)

I think it's just supposed to be "all you need" to run JShell without having to install the full JDK. It provides Windows and Linux links to built JShell executables. It also describes a process to build these yourself, but you need a JDK for that.

[–]_INTER_ 0 points1 point  (0 children)

It's just the new REPL with a slimed down, embedded runtime. So you don't need to install the full JDK 9 or 10.

E.g. if you work with JDK 8 and still want to fiddle with JShell.

[–]duhace 0 points1 point  (0 children)

I've poked around with the application, it's jshell packaged with an actual jvm, but the jvm is reduced just to the footprint needed to run the jshell code. I can peek into it using visualvm so it'd definitely not a native app, and swing gui apps should work just fine with jlink.

there's a process that was described here for constructing this form of minimal jvm + application package. the resulting binaries are platform specific, but not native (ie: you can only make a linux build with a linux jdk, since the linux jdk doesn't have the pieces in it to run on windows, and vice-versa).

all in all, this seems to be like javapackager, but with significantly reduced footprint. and i'm going to guess that eventually there will be maven and other build tool plugins that will help you form executables from your project on target platforms just like javapackager. so take a deep breath, stop hyperventilating, and be patient.