Skip to main content

All 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(&...
blue-sky's user avatar
  • 54k
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]...
Sirgeorge's user avatar
  • 137
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) ...
PinkBubbleGoApe's user avatar
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 ...
Glory to Russia's user avatar
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 ...
Tomer Vax's user avatar
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 ...
Nicholas Saunders's user avatar
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 ...
Phylax's user avatar
  • 329
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?
Paulo Oliveira's user avatar
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 ...
Will's user avatar
  • 1,323
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 ...
saga's user avatar
  • 2,123
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 ...
DodgyCodeException's user avatar
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....
Georg Heiler's user avatar
  • 17.8k
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. ...
Dino's user avatar
  • 821
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 ...
displayname's user avatar
  • 1,373
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 ...
Sadiq Ali's user avatar
  • 1,362

15 30 50 per page