I need a compiler/something to run my Java code in.?

Home » Programming & Design » I need a compiler/something to run my Java code in.?
Programming & Design No Comments

Eclipse doesn't work, I've tried re-downloading it, downloading the newest version of jdk. It first wouldn't run the code because I had no recent launches, and when I tried to configure a launch it stated that there were no applicable choices. There was no 'lit up' choice. The first time I

Eclipse doesn't work, I've tried re-downloading it, downloading the newest version of jdk. It first wouldn't run the code because I had no recent launches, and when I tried to configure a launch it stated that there were no applicable choices. There was no 'lit up' choice. The first time I was actually able to open a document and write in it, but as of now, I cannot even write in the program. I've created new projects but all it does is create them, it doesn't pull up for me to edit like a text document would.

Are there any other compilers? I know of GCJ but their classpath has a .gz file and my computer doesn't have a program that can read that type of file.

I tried opening Scriptpad or JavaScript but it gave me an error.

Other answer:

Thomas:
Just want to add that Eclipse is an IDE, not a compiler.
Audrey:
Just want to add that Eclipse is an IDE, not a compiler.
Chris:
Just want to add that Eclipse is an IDE, not a compiler.
Just Another Soul:
There are loads of other ways to program in Java, you don't have to use Eclipse. I recommend using Sublime and your computer's Terminal personally (video instructions here: https://www.youtube.com/watch?v=5yEq4_ap…

However, Eclipse is not broken, you simply don't know how to use it yet. First of all, Eclipse won't automatically open a new Class for you to write in when you create a Project. You have to make a Class yourself (you can think of a Class like a file or a single text document for now).

Step 1) Create a new Project (You said you know how to do this)
2) Right click on the project and select New > Class
3) Name your Class something without spaces. E.g., MyClass or HangmanGame
4) Make sure that your Class is Public and that the location is <YourProjectName>/src
5) Towards the bottom, check the boxes for "Inherited Abstract Methods" and "public static void main(String[] args)"
6) Click Finish

Give that a try and see if it works!
If you want more help, feel free to email me at jbharrison355@yahoo.com

husoski:
Eclipse is getting annoyingly more difficult to use, lately. My latest beef is that I can't use JavaFX in it without jumping through hoops, even though it's a standard part of the JDK in Java 8.

Like wg0z says, try NetBeans. If you already have JDK1.8.0_91 or 92 installed, you can just get the Java SE version at the NetBeans download site.
https://netbeans.org/downloads/

If you want to uninstall everything and start from scratch, the JDK+NetBeans bundle from the Oracle JDK download site is what I recommend to anyone just starting:
http://www.oracle.com/technetwork/java/j…

Don't worry about downloading extra NB features right now. You can add them later, if you like, without having to reinstall. All you need at the beginning is Java SE support.

wg0z:
try netbeans
Japhet:
C++
hart:
C++

LEAVE A COMMENT