What to use?
I'm new to things in general. Know c++ to the AP level, know a load of lingo (director (macromedia)) and thats about it, + I'm on a mac
I want to make games that are real applications (no offense meant by real to you noble souls who develope for web, all I mean is an Icon you double click on that runs and maybe can do full screen, etc) What do I use, J2ee? the other ones? I'm confused, can java make standalone apps? which one should I use?
You must understand that Java is an 'interpreted' language which basically means that your machine code is not understandable by the OS. Instead, the JVM (Java Virtual Machine) will interpret the machine code so the OS understands (kind of like a translator for your app and the host OS). The JVM is an exe called java.exe found in the JRE's bin folder.
You can make Java applications run as stand alone applications (just like a regular application) but you'll need to do a few tricks. Your application must contain the entire JRE (like in a directory) and you'll have to write a batch file that will look something like this:
@ECHO OFF
jre\bin\java.exe Main_Class
PAUSE
this would be your directory tree for your application:
DIR:Application
DIR:JRE
run.bat (the above batch file)
Main_Class.class
all other .class files needed --
Finally, you'll need to get an installer for your application so that
the client can install this just like a normal application (Icons on the
desktop and so on).
You want [url http://java.sun.com/j2se/]J2SE (Java 2 Standard Edition)[/url], which is for desktop applications.
[url http://java.sun.com/j2ee/]J2EE (Java 2 Enterprise Edition)[/url] is used for servers.
[url http://java.sun.com/j2me/]J2ME (Java 2 Mobile Edition)[/url] is for mobile devices (mobile phones, PDAs)
You will also want to read the following [url http://java.sun.com/docs/books/tutorial/index.html]tutorials[/url]:
[url http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html]First Cup O Java[/url]
[url http://java.sun.com/docs/books/tutorial/2d/index.html]2D Graphics[/url]
[url http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html]Full-Screen Exclusive Mode API[/url]
For distribution and "double clickable-ness"
[url http://java.sun.com/docs/books/tutorial/jar/index.html]JAR files[/url]
[url http://java.sun.com/products/javawebstart/]JavaWebStart[/url]
mlka at 2007-7-14 20:48:45 >
