Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Free Java Compiler  (Read 3803 times)

Sensei

  • Bay Watcher
  • Haven't tried coffee crisps.
    • View Profile
Free Java Compiler
« on: January 23, 2011, 12:05:31 am »

I've been learning java in school, and thought I might take a shot making some simple games in java- if nothing else, because I really need to practice UI and Listeners. Do you guys know any good free java compilers?

Also, (tangentially) for making games, what do you guys think of XNA?
Logged
Let's Play: Automation! Bay 12 Motor Company Buy the 1950 Urist Wagon for just $4500! Safety features optional.
The Bay 12 & Mates Discord Join now! Voice/text chat and play games with other Bay12'ers!
Add me on Steam: [DFC] Sensei

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Free Java Compiler
« Reply #1 on: January 23, 2011, 12:14:21 am »

Yes I do know of a free java compiler. It is called java.

You can download the java developers kit directly from oracle and compile on the command line. You can download the Netbeans or eclipse IDE to write java in a nice IDE.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Free Java Compiler
« Reply #2 on: January 23, 2011, 12:48:09 am »

Java is just... free. That's all there is to it!
As for a good IDE, may I suggest bluejay? This thing is both awesome and free.


Although I use SciTE, but only because it's so clean and cut down.

Sensei

  • Bay Watcher
  • Haven't tried coffee crisps.
    • View Profile
Re: Free Java Compiler
« Reply #3 on: January 23, 2011, 01:04:06 am »

Huh, didn't know Eclipse was free- that's what I use at school, so of course that's a first choice for me. Well, I guess I'm off to download my runtime environment and IDE!
Logged
Let's Play: Automation! Bay 12 Motor Company Buy the 1950 Urist Wagon for just $4500! Safety features optional.
The Bay 12 & Mates Discord Join now! Voice/text chat and play games with other Bay12'ers!
Add me on Steam: [DFC] Sensei

Sensei

  • Bay Watcher
  • Haven't tried coffee crisps.
    • View Profile
Re: Free Java Compiler
« Reply #4 on: January 23, 2011, 02:39:29 am »

So, I installed Eclispse and JRE5, but apparently I'm missing some import classes, such as Array Lists. Any idea where I'm supposed to get those/how I screwed up my installation?
Logged
Let's Play: Automation! Bay 12 Motor Company Buy the 1950 Urist Wagon for just $4500! Safety features optional.
The Bay 12 & Mates Discord Join now! Voice/text chat and play games with other Bay12'ers!
Add me on Steam: [DFC] Sensei

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Free Java Compiler
« Reply #5 on: January 23, 2011, 02:52:19 am »

Where did you download Java?
Did you remeber to import them in the head of the document?

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Free Java Compiler
« Reply #6 on: January 23, 2011, 03:23:26 am »

So, I installed Eclispse and JRE5, but apparently I'm missing some import classes, such as Array Lists. Any idea where I'm supposed to get those/how I screwed up my installation?

You may have just mis-configured things. Missing a basic class like that most likely means that you need to add something to your class path.

Depending on the version of eclipse you get, it should come with enough of the framework to do most things, you won't need a seperate jre. However you may want to get the JDK for java as it contains a few extra features that you may eventually want to take advantage of.
You should get java strait from the source http://www.oracle.com/technetwork/java/javase/downloads/index.html, java 1.6 is the latest version, but 1.5 is fine for most anything though.

Do you know how to set environment variables? JAVA_HOME should be set to your java directory, the bin directory for java should be in your PATH variable and you may need to set a CLASS_PATH, but eclipse should be able to do that for any projects it runs. In eclipse right click on the project, go to properties and select "java build path" make sure that you have your jre/jdk listed under the libraries tab.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Free Java Compiler
« Reply #7 on: January 23, 2011, 08:25:44 am »

So, I installed Eclispse and JRE5, but apparently I'm missing some import classes, such as Array Lists. Any idea where I'm supposed to get those/how I screwed up my installation?
You need the JDK.
Logged

Sensei

  • Bay Watcher
  • Haven't tried coffee crisps.
    • View Profile
Re: Free Java Compiler
« Reply #8 on: January 23, 2011, 01:31:22 pm »

I'm pretty sure the JDK installed with the JRE...

And, how DO I set environment variables?
Logged
Let's Play: Automation! Bay 12 Motor Company Buy the 1950 Urist Wagon for just $4500! Safety features optional.
The Bay 12 & Mates Discord Join now! Voice/text chat and play games with other Bay12'ers!
Add me on Steam: [DFC] Sensei

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Free Java Compiler
« Reply #9 on: January 23, 2011, 01:40:51 pm »

On XP you can set them by right clicking My Computer, hit Properties, choose the Advanced tab, and click Environment Variables. It's pretty much the same on 7, you just have to click Advanced System Settings button after hitting Properties.
Logged

Normandy

  • Bay Watcher
    • View Profile
Re: Free Java Compiler
« Reply #10 on: January 23, 2011, 02:02:09 pm »

So, I installed Eclispse and JRE5, but apparently I'm missing some import classes, such as Array Lists. Any idea where I'm supposed to get those/how I screwed up my installation?
You need the JDK.
You need the JRE6 and the JDK
« Last Edit: January 23, 2011, 02:04:32 pm by Normandy »
Logged

Eagleon

  • Bay Watcher
    • View Profile
    • Soundcloud
Re: Free Java Compiler
« Reply #11 on: January 23, 2011, 02:02:59 pm »

JDK is separate from JRE (Java Runtime Environment). JRE is pretty much what you need to run compiled java for your particular environment. JDK contains the compiler, though it might also contain a version of the JRE for convenience.
Logged
Agora: open-source, next-gen online discussions with formal outcomes!
Music, Ballpoint
Support 100% Emigration, Everyone Walking Around Confused Forever 2044

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Free Java Compiler
« Reply #12 on: January 23, 2011, 02:15:33 pm »

I'm pretty sure it does, I mean, what good is a compiler if you can't run the programs it compiles?
Logged

Eagleon

  • Bay Watcher
    • View Profile
    • Soundcloud
Re: Free Java Compiler
« Reply #13 on: January 23, 2011, 02:17:25 pm »

Well just about everyone and their mother has a JRE already installed, most likely auto-updating, so to me it's just extra padding on the download, but eh.
Logged
Agora: open-source, next-gen online discussions with formal outcomes!
Music, Ballpoint
Support 100% Emigration, Everyone Walking Around Confused Forever 2044

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Free Java Compiler
« Reply #14 on: January 23, 2011, 03:00:22 pm »

You may be right, I installed my JDK through my package manager, which probably just pulls in the JRE, etc. as dependencies.
Logged
Pages: [1] 2 3