Friday, July 31, 2009

How do I get up and running to program in Java?

I'm a .net programmer using Visual Studio I'm familar with J# never programmed it but I want to code in just good old Java. I"ve taken courses but anyone know how I setup a complier to do so I've attempted to it's not an easy setup like visual studio. It, was all CLI and I ended up not even get it working.

How do I get up and running to program in Java?
If you want a visual-studio-like environment, go to java.sun.com to get JavaSE (Standard Edition) as outlined by others here. After installing it, go to www.eclipse.org and download/install the latest version of Eclipse.





Eclipse is a free shareware development environment brought to you by your friends at IBM. It is very robust and has an almost limitless number of plugins that can be found for free and for purchase out on them there internets.





There is a tutorial on the eclipse website and the equivalent of a tutorial in the help docs, but even without that you should not have to look to hard to find your favorite MSVS development features.





Give it a whirl.





CAVEAT DOWNLOADOR: Eclipse is not the only free dev environment for Java, and there are some who would say it is not the best dev environment for Java. However, most Java developers would probably agree (some grudgingly) that Eclipse is the best free development environment for Java.
Reply:You keed the JDK, Java Development Kit:





http://java.sun.com/javase/





You compile program with JAVAC. To run the compiled program, you use JAVA.
Reply:Go here: http://java.sun.com/javase/downloads/ind... and download the JDK which contains the runtime environment (JRE) and the compilers%26amp;debuggers
Reply:If you just want to do it command line, just download the JDK as mentioned. Though configuring 'path' and 'classpath' in Windows can be a headache for newbies (if you have OS X it's already setup).





%26gt; javac MyJavaApp.java


%26gt; java MyJavaApp





too bad it won't be that simple when you first try it ;-)





If you are use to VS, then download any number of Java IDEs. NetBeans is fairly simple and free.





However, if you are already doing .NET programming, just switch to C#. There are a lot of things about Java you are going to hate compared to C#. C# fixes a lot of Java's shortcomings. Java JUST got enumerations but still does not have accessors, structs, pointers. And don't get me started on exception handling in Java - what a hack job.


No comments:

Post a Comment