For this lab you will be using the text editor in the integrated development environment (IDE) call DrJava. To get started: Run DrJava (by clicking or double-clicking on the icon on your desktop). 'Clean up' DrJava by clicking on File and pulling down to Close All. Notice that the title bar includes the text '(Untitled)'. Visit Oracle to download the latest version of Java SE 8 JDK for your specific operating system. Download the DrJava IDE for Windows, Mac or Linux.
I'm looking to be more efficient when I have to create single-use Java 8 programs. IntelliJ IDEA and Eclipse are great IDEs, but I need to do this:. Create a project in the IDE. Do some configuration.
Create the program file. Run it. Remove the recently created project from the IDE. Delete the recently created folder (with all the files created by the IDE) from the disk A friend recommended me DrJava. I tried to install it but it needs Java 6, and I can't install it. I can have only Java 8 on my computer.
What would be your recommendation for an IDE with this characteristics?. Lightweight (for example, DrJava has only 12 MB). Supports Java 8. It should be able to manage simple Java files, without need to create a project. Supports debugging. Supports auto-complete.
Doesn't need to create a project to compile and run a simple Java file. It could be a commercial IDE, but Open Source would be better. Maven support would be awesome, but it's not critical The style of work with this IDE would be:. Write a new Java 8 program in that IDE.
Run it. Delete program EDIT 1: I found how to do it using Sublime Text 3.
It costs USD 70, but it works. To configure it you will need to follow this. It lacks of debugging and autocompletion, but it works. EDIT 2: I tried to use Sublime Text's JDebug plugin, but I could not make it work. To be honest, I think the problem is mine as I'm not familiarized with jdb. By the other hand, I looked some ST plugins for autocompletion, but no one were good.
![Ide Ide](/uploads/1/2/5/4/125485119/972107776.jpg)
There's another plugin, Javatar, but if I'm going to work with projects, I will prefer to work with IntelliJ. So far, I'm following an advice I found: work with IntelliJ using a Java project with simple structure, and write all the single files into it. And you know, that IDE is great. Anyway, I will leave this question open, just in case someone can recommend us a lightweight IDE. The best option is probably to stick with a full-featured IDE (as Warren P suggested and as you eventually did).
For those who really insist on a lighter-weight IDE specifically for Java, I guess would be the best option. (You said you couldn't get it to work for you, but most other readers probably will not have that problem.) If for some reason you want something like DrJava but can't or won't use DrJava, I recommend, which has some support for Java (and many other languages), including a for debugging via. You may think you want that, but unless your job is to teach eight year olds, you're going to wish you just stayed with a real IDE like IntelliJ IDEA. Reasons:. Java IDEs are big and full of features because working with Java without those features is a giant pain. Code-completion is great.
Having something check your style, suggest how to repair your project when it breaks is great. Recovery from errors is a major part of what IDEs give you. Project build management without an editor means writing an Ant script in XML or in Maven, by hand. Java builds don't happen without build systems, except for trivial single file Java applications.
Dependency resolution and library/classpath management doesn't happen magically either. You need an IDE for it. Anything less than IntelliJ IDEA, or NetBeans, or Eclipse is going to waste hours and days (or months) of your life. I rate them as IntelliJ awesome, Netbeans almost awesome, and Eclipse as 'merely ok'. If you don't want a fat IDE, then you could try which is a text editor built in Java that has lots of lightweight plugins, one or more of them might meet your scripting needs.