I am working through the Digital Asset quickstart guide and I am unable to run:
da new quickstart-java quickstart
I get the following output:
getting-started Built-in template for version: 0.10.9-SDK
example-bond-trading Built-in template for version: 0.0.7
example-collateral Built-in template for version: 1.0.6
example-ping-pong-grpc-java Built-in template for version: 2.2.0
example-ping-pong-reactive-components-java Built-in template for version: 2.2.0
example-ping-pong-reactive-java Built-in template for version: 2.2.0
example-repo-market Built-in template for version: 0.0.5
example-upgrade Built-in template for version: 0.0.6
It seems "quickstart-java" is not an available template. Is there a way for me to install it?
I tried running it with 'getting-started' instead of 'quickstart-java' but it's not the same thing.
Can you confirm which version of the SDK you have? Do da list at a terminal prompt and look for the active and default version. From the output, it looks like you have version 0.10.9. You'll need to upgrade to 0.11.X - latest is 0.11.3
Here's the output on my terminal:
paul:da (master)$ da list
Installed SDK releases:
0.10.0
0.10.2
0.10.3
0.10.6
0.10.8
0.10.9
0.10.12
0.10.13
0.11.0
0.11.1
0.11.2
0.11.3 (active, default)
paul:da (master)$
You can use the command da use 0.11.3 once you have upgraded to set the default SDK version for new projects.
Related
Urlmappings
HelloController
Pls help i followed the "Hello-World-Instruction" on the grails homepage exactly but it throws an error (before i even start it breaks ;D)
tried looking for solution maybe it has to do with my Java Path?
I finished the helloWorld Tut on Tutorial then put "grails run-app" into the shell and then Error!
Linux debian based Distro
Grails Version: 5.1.2
JVM Version: 11.0.1
Groovy Version: 4.0.1 JVM: 11.0.14
Error creating bean 'compositeViewResolver'
enter image description here
enter image description here
when trying to display an ipyaggrid object, i get:
"Error displaying widget: model not found".
the same notebook works fine in jupyter notebook.
Here is
"conda list jupyter"
# packages in environment at C:\Users\cocoj\.conda\envs\py39:
#
# Name Version Build Channel
jupyter 1.0.0 py39haa95532_7
jupyter-packaging 0.7.12 pyhd3eb1b0_0
jupyter_client 6.1.12 pyhd3eb1b0_0
jupyter_console 6.4.0 pyhd3eb1b0_0
jupyter_core 4.7.1 py39haa95532_0
jupyter_server 1.4.1 py39haa95532_0
jupyterlab 3.0.14 pyhd3eb1b0_1
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.4.0 pyhd3eb1b0_0
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
and here is the "jupyter labextension list"
JupyterLab v3.0.14
C:\Users\cocoj\.conda\envs\py39\share\jupyter\labextensions
jupyterlab-plotly v5.2.2 enabled ok
#jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok (python, jupyterlab_widgets)
#voila-dashboards/jupyterlab-preview v2.0.2 enabled ok (python, voila)
Other labextensions (built into JupyterLab)
app dir: C:\Users\cocoj\.conda\envs\py39\share\jupyter\lab
ipyaggrid v0.2.1 enabled ok
fwiw, the ipywidgets, the plotly figureWidgets are all displayed fine in Jupyter Lab.
in particular,
523.fa256ee012d38a89b65a.js:1 Uncaught (in promise) Error: Module ipyaggrid, semver range ~0.2.1 is not registered as a widget module
I am looking for an advisable version of JRuby that supports OpenJDK-8 (Zulu-JDK) to run on a Rails project.
Rails version- 4.0.13.
All versions of JRuby since version 9.2.0.0 will run on JDK 8. Since Zulu 8 is a build of OpenJDK 8 that means any appropriate JRuby version will run on Zulu 8.
Follow up question (using answer section to get better code formatting then commenting on the answer above).
I'm trying to get JRuby > 9.2.0.0 running Zulu 8 for MacOS ARM 64-bit (M1 chip).
I did a reinstall of the JRuby versions after installing that JDK.
$ rvm list
jruby-1.7.27 [ x86_64 ]
=> jruby-9.2.13.0 [ aarch64 ]
Check ruby version and try irb:
$ ruby -v
jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 25.302-b08 on 1.8.0_302-b08 +jit [darwin-aarch64]
$ irb
NotImplementedError: fstat unimplemented unsupported or native support failed to load; see https://github.com/jruby/jruby/wiki/Native-Libraries
initialize at org/jruby/RubyIO.java:1015
open at org/jruby/RubyIO.java:1156
initialize at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb/input-method.rb:141
initialize at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb/context.rb:70
initialize at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb.rb:410
start at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/lib/ruby/stdlib/irb.rb:381
<main> at /Users/rrickerts/.rvm/rubies/jruby-9.2.13.0/bin/irb:13
The instructions to javapackager just above Example 2-1 in the Java SE Deployment Guide/Self-Contained Application Packaging state that a jar file is required in the -deploy command.
If I use a modular jar, I get this error message:
Exception: java.lang.Exception: Error: Modules are not allowed in srcfiles: [dist\tcdmod.jar].
If I use the equivalent non-modular jar, the resulting package includes the complete runtime. But I want to use the reduced runtime I made with jlink that is in the /dist folder.
Can the javapackager command deploy with a jlink-generated runtime?
How?
The section titled "Customization of the JRE" makes no mention of the javapackager command.
The following section "Packaging for Modular Applications" has a following line:
Use the Java Packager tool to package modular applications as well as non-modular applications.
Is the Java Packager tool distinct from javapackager? There are no examples using javapackager in this section.
Here is the javapacker command that I used:
javapackager -deploy -native -outdir packages -outfile ToneCircleDrone -srcdir dist -srcfiles tcdplain.jar -appclass com.adonax.tanpura.TCDLaunch -name "ToneCircleDrone" -title "ToneCircleDrone test"
The instructions in the javapackager documentation make no mention of the scenario where a jlink runtime is used. There is a Bundler argument -Bruntime but it is only used to point to an installed runtime other than the system default, AFAIK.
The javapackager provided with JDK 9 and up uses jlink to generate the jre image:
For self-contained applications, the Java Packager for JDK 9 packages
applications with a JDK 9 runtime image generated by the jlink tool. To
package a JDK 8 or JDK 7 JRE with your application, use the JDK 8 Java
Packager.
https://docs.oracle.com/javase/9/tools/javapackager.htm#JSWOR719
You can even pass arguments to jlink using -BjlinkOptions=<options>
Additionally, -Bruntime is only valid for packages deployed using -deploy -native jnlp
For compiling a modular application, instead of -srcdir, use --module-path <dir>, and then specify the main module using -m <module name>.
EDIT: While there is no documentation on -BjlinkOptions, it is present in the javapackager source
jdk.packager/jdk.packager.internal.legacy.JLinkBundlerHelper
https://github.com/teamfx/openjfx-10-dev-rt/blob/bf971fe212e9bd14b164e4c1058bc307734e11b1/modules/jdk.packager/src/main/java/jdk/packager/internal/legacy/JLinkBundlerHelper.java#L96
Example Usage: -BjlinkOptions=compress=2 will make javapackager run jlink with the --compress=2 flag, generating the JRE image with Zip Level compression.
Aditionally, running javapackager with the flag -Bverbose=true will show you exactly which arguments are being passed to jlink with a line in the output something like this:
userArguments = {strip-debug=1 compress=2}
I am using Neo4j - Graph Database Kernel 1.8
It uses this gremlin version:
gremlin> Gremlin.version()
==> 1.5
which is very old version.
I want to upgrade to gremlin 2.0 or 2.1 from the github project, since I can't run this command on gremlin 1.5:
gremlin> g.v(1).outE.has("weight", T.gte, 0.5f).weight
==> No such property: T for class: groovysh_evaluate
My question is what should I do, so I won't mess up all the entire environment of neo4j.
You can run:
import com.tinkerpop.gremlin.Tokens.T
To call the gremlin helper Tokens ("T") directly:
g.v(1).outE.has("weight", T.gte, 0.5f).weight
Or you can write:
g.v(0).outE.has("weight", Tokens.T.gte, 0.5f).weight
Write it in the gremlin shell.
the Gremlin plugin and the server will be upgraded in the next weeks, is that ok?