All Questions
Tagged with read-eval-print-loop java
58 questions
0
votes
0
answers
41
views
Update value printed to console
I'm attempting to update a value printed to the console in order to implement a simple REPL that supports predictive commands.
So after "->" is printed to the screen using
Console.print(&...
0
votes
2
answers
1k
views
Don't know how to create ISeq from: Java.lang.Long
Doing some practice on recursion and map implementation to knock some rust off Clojure. I'm using lists only here so how am I trying to mix seq and non-seqable stuff?
(defn mapset
([operator operand]...
0
votes
1
answer
489
views
Running Scala function from command line
I'm working on an exercise. I need to create a java project that can be run from the scala command line. The final output should be this:
scala> int2str(6)
res0: String = six
scala> int2str(65)
...
1
vote
2
answers
413
views
Is it possible to modify Clojure code running as a Spring component on a remote server and download the modified code using the REPL?
Imagine I have the following setup:
A Spring Boot application.
Inside it is a Camunda workflow engine.
There are multiple components (@org.springframework.stereotype.Component) inside that ...
0
votes
0
answers
330
views
Why does my repl java swing application doesn't work
I've created a java swing repl program. You can check it out at this link:
https://repl.it/@Tomervx/MazeGame#Main.java
It worked pretty well before, but for some reason when I try to run it now, it ...
1
vote
1
answer
410
views
How to use regex from JShell?
I'm able to get output using .java files as below, and, while, yes, JShell can load class files, I'm more interested in using it as a sort of scripting REPL as below.
How can I generate similar ...
2
votes
1
answer
455
views
Clojurescript (REPL) with Java 11.0.4 – ClassNotFoundException: javax.xml.bind.DatatypeConverter
I'm trying to find my way into ClojureScript, currently following the modern clojurescript tutorial using boot as my build tool. Unfortunately I keep running into a Java ClassNotFoundException ...
0
votes
0
answers
222
views
Java library to execute/evaluate code like a REPL console
Does Java ecosystem have a library that allow to pass a String and evaluate and execute that code?
eval("String value = text.split(\",\")[0]")
There is something like this?
5
votes
1
answer
537
views
dynamicly add to classpath in clojure repl to access java class files (pomegranate/add-classpath)
I have compiled class files in shortScreen/out/production/classes/com/rsw/ and want to use them in a clojure repl. I think the hangup is on add-classpath but I'm unfamiliar with what should be ...
2
votes
1
answer
704
views
Does clojure repl store the return value of previous commands
If I execute this commands in the clojure repl:
(take 5000000 (range))
This command prints out numbers upto 5 million (it takes some time) and the memory usage of clojure increases upto 750 MB during ...
0
votes
1
answer
368
views
Java Shell line input on Windows
The Java Shell REPL's line input on Windows doesn't behave the way line input behaves in most other Windows console applications:
The Ctrl+Left Arrow key combination does not go to the start of the ...
0
votes
1
answer
185
views
gradle REPL in java8 for scala development
Is there a way to retrofit java8 with a REPL in gradle similar to sbt console which automatically adds the classes of the project to the class path of the REPL? https://plugins.gradle.org/plugin/net....
2
votes
1
answer
258
views
Java and MySQL Console REPL
I need to write a Java code that create a shell running MySQL console command and can retain the interactive sesion until it is purposely destroyed.
To simulate it, this is my code.
...
12
votes
1
answer
5k
views
Why and how do you use JShell?
I went through a couple of tutorials for JShell and I still do not understand the most important part: why would I even use JShell?
Here what Oracle says:
"You can test individual statements, try ...
2
votes
1
answer
146
views
Statement oriented approach against expression oriented one
I was going through this article on java9 and came across this line where it states that Java is statement-oriented whereas REPLs are expression-oriented.
Can somebody explain the difference between ...