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 3797 times)

Angle

  • Bay Watcher
  • 39 Indigo Spear Questions the Poor
    • View Profile
    • Agora Forum Demo!
Re: Free Java Compiler
« Reply #15 on: January 23, 2011, 03:13:47 pm »

a slightly different question, but I downloaded libjcsi and I can't seem to figure out how to install it or whatever. I'm using ubuntu, Ive got netbeans and the JDK running, but installing libjcsi has me a little stumped.
Logged

Agora: open-source platform to facilitate complicated discussions between large numbers of people. Now with test site!

The Temple of the Elements: Quirky Dungeon Crawler

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Free Java Compiler
« Reply #16 on: January 23, 2011, 04:14:22 pm »

Installing a java library

A: add the jar to your global class path.
B: go in through eclipse and select the project properties, java build path, libraries, add external jar, and select the jar from where ever you downloaded it to.

I have looked at libjcsi, but have not used it for anything yet.
« Last Edit: January 23, 2011, 04:29:14 pm by Nadaka »
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.

Angle

  • Bay Watcher
  • 39 Indigo Spear Questions the Poor
    • View Profile
    • Agora Forum Demo!
Re: Free Java Compiler
« Reply #17 on: January 23, 2011, 08:33:01 pm »

I did that, I think, but it doesn't seem to have changed anything. Maybe I'm not importing  it right?

also, I am using NetBeans, not eclipse.
Logged

Agora: open-source platform to facilitate complicated discussions between large numbers of people. Now with test site!

The Temple of the Elements: Quirky Dungeon Crawler

Starver

  • Bay Watcher
    • View Profile
Re: Free Java Compiler
« Reply #18 on: January 23, 2011, 08:50:54 pm »

Haven't touched Java for a while (doesn't do the kind of thing I want to do as well as several other languages I use, although it would be good for portability and distribution) but I can confirm that the JDKs traditionally include the respective JREs.

But you might even want the SDK (Software Development Kit, having extra tools), and there might be complications regarding whether you want Java's SE, EE or ME variants (check Sun's website for details and differences), which may be closeley linked to which platform you're developing on/for, at least as far as getting it working (given the code shouldn't need to change).

You should be getting Array Lists in any version, though, if I've not completely mistaken what it is you're talking about.  (Too much Perl, recently.  Beyond the mainstay Statics, Arrays, Hashes and the occasional all-containing Globs, once I start using Refs absolutely anything is possible to do.  Or mess up.  :) )
Logged

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Free Java Compiler
« Reply #19 on: January 23, 2011, 08:58:30 pm »

Yea, array lists sort of died out to the linked list.

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Free Java Compiler
« Reply #20 on: January 24, 2011, 04:24:34 am »

But you might even want the SDK (Software Development Kit, having extra tools), and there might be complications regarding whether you want Java's SE, EE or ME variants (check Sun's website for details and differences), which may be closeley linked to which platform you're developing on/for, at least as far as getting it working (given the code shouldn't need to change).

They've got an SDK now? Been a while since I messed with Java too...

Definitely go for the SE. You'll only want/need the others once you know what they're for; for now they'll just be extra stuff you don't need.

And yeah, make sure to get the JDK ;)
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Starver

  • Bay Watcher
    • View Profile
Re: Free Java Compiler
« Reply #21 on: January 24, 2011, 05:56:15 am »

Yea, array lists sort of died out to the linked list.
You intrigue me, with that.  Either I was thinking of something different (terminology, huh... what is it good for? absolutely nuthing!) or they've taken what might be a retrograde direction.

I mean, I currently let Perl handle splicable lists natively of the kind I would have had to write handling code for back in the days of Pascal or K&R's C (acknowledging that there are overheads involved in Perl, of course), rather than use the ability to define $Item as ["Stuff",\$PrevItem], or \$NextItem (or both!) depending on whether I want a list, stack or bidirectional type.  I only tend to use indefinite-depth structures for poly-branching trees and directionally ambiguous nets of data.

Time to dig up the Java bug again, though, because I've a feeling I haven't got the right idea at all, possibly because I've avoided any serious use of it for too long... :)
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Free Java Compiler
« Reply #22 on: January 24, 2011, 09:40:17 am »

Java collections underwent a major revamp between 1.4 and 1.5. But the ArrayList is still there.
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 #23 on: January 24, 2011, 06:21:56 pm »

Yes, it is still there, you can use either, but arraylists are rerly used compaired to linked lists. Array lists start to slow down.

Blank Expression

  • Bay Watcher
    • View Profile
Re: Free Java Compiler
« Reply #24 on: January 24, 2011, 08:14:19 pm »

Also, (tangentially) for making games, what do you guys think of XNA?
.NET is excellent. Learning XNA before you actually understand graphics programming, not so much. I use it as the basis for my cross-platform game library (XNA on Windows/360/WP7, OpenTK/OpenGL on OS X, OpenTK/OpenGL ES on Android/iOS) and it is satisfactory, but the value of it is proportional to your general competence in both programming and graphics programming.

With all due respect, seeing as how you asked where to get a Java compiler (and you failed to ask a smart question in the process, this question was trivially answered via Google), I feel confident in suggesting you aren't there yet. One step at a time.



Yes, it is still there, you can use either, but arraylists are rerly used compaired to linked lists. Array lists start to slow down.
This is so egregiously and offensively false to the point where I question whether you actually know the difference between an ArrayList and a LinkedList.

If anything, the LinkedList is rerly[sic] used in comparison to the ArrayList. Traversals of LinkedLists are O(n) to the ArrayList's O(1), and the insert step of the ArrayList is an amortized O(1) while the insert step of the LinkedList is a constant O(1) (as, IIRC, the Java implementation retains a tail reference). The value of a LinkedList is slight in the overwhelming majority of cases, whereas an ArrayList allows for significantly more flexibility in terms of most operations--to the point where, in any non-sequential use case, the LinkedList construct becomes utterly unusable beyond n=10000 or so. While over-capacity recopies of ArrayLists are not cheap, they do not completely hose your ability to access your data.

You shouldn't give advice if you don't understand what you're talking about. You do not.
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Free Java Compiler
« Reply #25 on: January 24, 2011, 08:18:21 pm »

I can't stress enough how right Blank Expression is about ArrayLists vs. LinkedList, or any other dynamic array/linked list implementation. If you use a linked list as a general-usage data structure, you're going to have serious problems if you ever need to actually access arbitrary elements, which is going to happen very, very often. It is my understanding that a linked list, by comparison, is not what you'd want for general use.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Free Java Compiler
« Reply #26 on: January 24, 2011, 08:48:35 pm »

I typically don't use lists at all. An array is better for general use and maps, sets, queues and stacks exist for almost everything else.

The only purpose off the top of my head that a LinkedList is a serious option is for a queue that needs to allow inserts at both the head and tail.

On an unrelated note, JAVA SUCKS HORRIBLY at grayscale images. As in it is practically (perhaps even completely) impossible to actually do one using the image libraries because they were written on the assumption that a 16bit grayscale value is an unsigned short. A type that does not exist. You bastards. Now I need to dive into image format specifications to make it possible save and load generated 16bit height maps to a non raw format.
« Last Edit: January 24, 2011, 08:58:41 pm by Nadaka »
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.

Blank Expression

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

I typically don't use lists at all. An array is better for general use
Only if you have a predetermined size of your data set.
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Free Java Compiler
« Reply #28 on: January 24, 2011, 09:14:24 pm »

I typically don't use lists at all. An array is better for general use
Only if you have a predetermined size of your data set.

It has been my experience that you generally do have a predetermined size or are feeding to/reading from a stream and need arrays for efficient  IO buffers anyway.
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 #29 on: January 25, 2011, 01:20:47 am »

You shouldn't give advice if you don't understand what you're talking about. You do not.

I will be sure to use an array list next time I have a list countless clients and i need to be able to add, subtract and sort them at a moments notice. Because the space saved from not having nodes is so worth it when your waiting for a large array to rewrite itself.
Pages: 1 [2] 3