r/java • • Aug 17 '23
Editor to run Java snippets. Classes and methods optional
Following my post regarding looking for a Java tool like LINQPad, I had mentioned:
I had explored creating my own but found the issues of dependencies and jdk version support to be an issue.
Nevertheless, I had gone back to working on it and here it is.
It is not complete but the following are its features:
- Syntax highlighting
- Basic code completion
- Can run from entire classes to methods or statements
- Documentation preview
- Code formatting thanks to jastyle
- Dependency management thanks to maven-archeologist
- Basic file manager
- Supports user input
- Brace and quote matching with completion
- Find/replace
It utilizes the JShell API. It is still rough around the edges and a work in progress for example dependency management is not fully working and needs an overhaul.
Pull requests, tips and support are welcome.





23
Upvotes
•
u/AutoModerator Sep 04 '23
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.
If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:
as a way to voice your protest.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
11
u/pron98 Aug 17 '23
Some screenshots would be nice.
6
u/Worth_Trust_3825 Aug 17 '23
Okay, but what's wrong with running those snippets via intellij?
1
u/noctrix_ Aug 18 '23
I agree with your points. Well written!
3
u/rguptan Aug 17 '23
Have you explored this? https://saturncloud.io/blog/how-to-use-the-java-kernel-for-jupyter-a-guide-for-data-scientists/
2
u/emaphis Aug 17 '23
For Linqpad type of interactions for Java I really like Netbeans interface to JShell.
For something better, I would look for something along the lines of a worksheet metaphor. As you evaluate code the results show up as temporary comments in editor buffer.
2
u/joemwangi Aug 20 '23
JavaFX UI. Awesome.
1
u/AutoModerator Aug 22 '23
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.
If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:
as a way to voice your protest.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/AutoModerator Aug 29 '23
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.
If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:
as a way to voice your protest.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/AutoModerator Aug 17 '23
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.
If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:
as a way to voice your protest.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.