Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Compiler Choice.  (Read 3168 times)
0 Members and 1 Guest are viewing this topic.
Offline Antony

Junior Newbie

I love YaBB 1G - SP1!

« Posted 2002-10-24 05:21:49 »

Which compiler is best,Borland JBuilder7 or Microsoft Visual J++?Unless their is a free one.
Offline princec

« JGO Spiffy Duke »

Medals: 1033
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2002-10-24 08:09:18 »

The JDK is free itself if you want to use commandline.
Otherwise I rather like Eclipse more than Borland, but it's down to personal preference. Don't touch Microsoft's stuff as it doesn't generally produce valid Java bytecode, judging from the number of "Invalid Bytecode" applets I find on the web these days.

Cas Smiley

Offline Breakfast

Senior Devvie

for great justice!

« Reply #2 - Posted 2002-10-24 08:18:36 »

Roll Eyes This is pretty much off topic for this forum, being more of a question for the Newbie forum a little further down.

You are getting a little confused here by the distinction between an IDE, which is a program that helps you type code and offers you tools for formatting, maintainance, visual design and so on, and a compiler, which takes your code files and makes them into the applications your system can run.

There are various compilers around, the reference implementation is the one from Sun which you can download here but there are others from IBM and elsewhere.

In pretty much any language you can write your code in a simple text editor like notepad, save it with the right filename and then compile it directly with a compiler. You don't need JBuilder, Visual J++ or whatever. If you want a more full featured text editor there are a whole lot around, many of them offering some degree of integration with your compiler as well. My personal favourite is jext but different people use different ones. I find this useful for editing all the accompanying files you will start using as you get further on. There comes a point where a text editor becomes an IDE- I would say something close to Jcreator lite and beyond that you get into the really big compilers like Forte and eclipse.  All the products I have mentioned can be downloaded for free.

To start with, do some downloading, try stuff out and see how it suits you. You don't need to spend any money to start with, and you may not need to spend much later on. There are many disputes about what is the best IDE but it comes down to what you like using in the end. Get started, give it a try and decide for yourself.

Good luck with it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder

Got any cats?

« Reply #3 - Posted 2002-10-24 21:14:08 »

So just one mroe explaiantory newbie note.

Java is very different in this regard from C++ or C.  In C or C++ the compiler converts your program to machine code that excutes on the computer's processor.

All the Java compilers mentioned compile Java down to Java Byte code.  This is a machien code for an imaginary piece of hardware called the Java Virtual machine.  This is stored in the .class file.

Most modern Java VMs will, at execution time, then compile down the important code from Java Byte Code to the local processor's machine code.

Choice of a compiler in the C/C++ days made a fair bit of difference because it was the alst step in the process. Dependign on how well the compiler optimized the code you might get better or worse performance.

With Java however, the Java compiler typically does little to no optimization.  Such premature optimization gets in the way of the run time compiler optimizing when it converts the byet code to machine code, which is where you really want all the optimizations.

Now there ARE a few Java "pre-compilers" or "ahead of time compilers" that will act like C or C++ compilers.  In doing so however you lose all portability for your compield code, and the advantages if any seem small and highly debatable.  But YMMV.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!
Offline Conzar

Junior Devvie

There is nothing common about common sense

« Reply #4 - Posted 2002-11-25 17:28:54 »

Most modern Java VMs will, at execution time, then compile down the important code from Java Byte Code to the local processor's machine code.

The JVM does not Compile it.  It iterpretes.  To find out more about the JVM check out

Offline rreyelts

Junior Devvie

There is nothing Nu under the sun

« Reply #5 - Posted 2002-11-25 18:30:57 »

The JVM does not Compile it.  It iterpretes.  To find out more about the JVM check out

To be pedantic, many different JVMs do many different things depending upon their target execution environment. For example, JVMs that run on personal devices (i.e. cell phones) typically interpret all of the time. Sun's client Hotspot VM spends a decent amount of time interpreting for quick startup speeds. Sun's server Hotspot VM spends very little time interpreting bytecode.

You might read the same document to which you linked:

The first prototype implementation of the Java virtual machine, done at Sun Microsystems, Inc., emulated the Java virtual machine instruction set in software hosted by a handheld device that resembled a contemporary Personal Digital Assistant (PDA). Sun's current Java virtual machine implementations, components of its JavaTM 2 SDK and JavaTM 2 Runtime Environment products, emulate the Java virtual machine on Win32 and Solaris hosts in much more sophisticated ways. However, the Java virtual machine does not assume any particular implementation technology, host hardware, or host operating system. It is not inherently interpreted, but can just as well be implemented by compiling its instruction set to that of a silicon CPU. It may also be implemented in microcode or directly in silicon.

God bless,
-Toby Reyelts

About me:
Jace - Easier JNI:
Retroweaver - Compile on JDK1.5, and deploy on 1.4:
Pages: [1]
  ignore  |  Print  

EgonOlsen (74 views)
2018-06-10 19:43:48

EgonOlsen (55 views)
2018-06-10 19:43:44

EgonOlsen (74 views)
2018-06-10 19:43:20

DesertCoockie (254 views)
2018-05-13 18:23:11

nelsongames (154 views)
2018-04-24 18:15:36

nelsongames (154 views)
2018-04-24 18:14:32

ivj94 (895 views)
2018-03-24 14:47:39

ivj94 (156 views)
2018-03-24 14:46:31

ivj94 (808 views)
2018-03-24 14:43:53

Solater (172 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!