StriplingWarrior
StriplingWarrior

Reputation: 156654

Is there any program like LINQPad for Java?

I've found LINQPad to be extremely useful when answering StackOverflow questions for C# or VB.NET. It allows me to write up some quick code, run it, and (if I want) see a nicely-formatted dump of the results. That way I can be sure that the code I post actually runs. Thus far I haven't seen anything that I can use to achieve the same result with Java. Is there anything like that out there?

I am not looking for something to query data sources; I just want a light-weight IDE. These are the features I'm particularly interested in:

Upvotes: 54

Views: 11790

Answers (8)

Ryan Hamilton
Ryan Hamilton

Reputation: 2615

[JPad] - A java scratchpad for running snippets

JPAD Java scratchpad IDE

Since I also couldn't find one I've decided to write one. Currently it can:

  1. Run java snippets (no class / imports / public blah... needed).
  2. Contains drivers for MS/MySQL/Postgres.
  3. Output results as HTML tables

It's very rough but I will add to it over time. Feedback is definitely welcome.

Upvotes: 51

John
John

Reputation: 1

I've been using IntelliJ IDEA and it works really well as a Groovy scratchpad. The Community Edition is free too.

You need to create a new project, but then can add Groovy scripts to it and run them on the fly. Not had any luck with the actual Scratch File functionality though.

Being a Jetbrains editor it's pretty slick too. (Unlike some of the other options)

Nothing beats LinqPad though.

Upvotes: 0

thSoft
thSoft

Reputation: 22670

http://ideone.com is an online service that has the features you want.

Upvotes: 2

Brad Parks
Brad Parks

Reputation: 72221

Java Snippet Runner: Does something similar to Linqpad (jar file, not just for macs)

http://mac.softpedia.com/get/Development/Java/Java-Snippet-Runner.shtml

Code Runner (Commercial): for Mac's only, it'll run code snippets in Java, and lots of other languages too (e.g. Objective C)

http://krillapps.com/coderunner/

Upvotes: 2

sinelaw
sinelaw

Reputation: 16563

This may help : http://www.browxy.com:9000/codeRunner

EDIT: Url seems to have changed to http://www.browxy.com

Upvotes: 12

Vlad
Vlad

Reputation: 81

I was looking for a "Java LinqPad" also, and i came across : this

Upvotes: -1

Istao
Istao

Reputation: 7585

You can use the Groovy web console ; it's possible to speak java in groovy land.

Upvotes: 5

dj_segfault
dj_segfault

Reputation: 12449

I've been using JEdit for a long time, which is a very powerful cross-platform editor, NOT an IDE. It does have plugins to execute Java code right in the editor, and even uses BSH for macros.

Upvotes: 1

Related Questions