473,623 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java IDE for Beginners

JD
hi, i m new to java, i want to know if there is a good and free Java IDE
that i can use that'll help me, i dont care if its complicated , i just
want it to be good, i tried netbeans which comes bundled with java sdk 6
from sun, the prob with it is that , if i use for-each loop, it says to
use option -source 1.5, i used it, didnt work, so either the IDE is
faulty, or somethin is wrong with my sys config. so, can anyone
recommend an IDE for me?
Jan 2 '07 #1
17 9381
cp
You can try Eclipse. Its quites powerfull and you can download alot of
plugins to it for free.
Jan 2 '07 #2
JD wrote:
hi, i m new to java, i want to know if there is a good and free Java IDE
that i can use that'll help me, i dont care if its complicated , i just
want it to be good, i tried netbeans which comes bundled with java sdk 6
from sun, the prob with it is that , if i use for-each loop, it says to
use option -source 1.5, i used it, didnt work, so either the IDE is
faulty, or somethin is wrong with my sys config. so, can anyone
recommend an IDE for me?
Well the other popular free IDE is Eclipse: http://www.eclipse.org

If I was just starting out with Java I would not user Netbeans nor
Eclipse. You will spend a lot of time figuring out the IDE and its
functionality and not the Java language.

I would start with an IDE called 'BlueJ' http://www.bluej.org
It is a simpler interface and it will teach you how to program Java with
an OOD\OOP approach.

They also have worked with the Netbeans development people and have just
release a BlueJ-Netbeans version.

--
Thanks in Advance... http://ichbinquotations.awardspace.com
IchBin, Pocono Lake, Pa, USA http://ichbin.9999mb.com
_______________ _______________ _______________ _______________ __________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Jan 2 '07 #3
Lew
IchBin wrote:
JD wrote:
>hi, i m new to java, i want to know if there is a good and free Java IDE
that i can use that'll help me, i dont care if its complicated , i just
want it to be good, i tried netbeans which comes bundled with java sdk 6
from sun, the prob with it is that , if i use for-each loop, it says to
use option -source 1.5, i used it, didnt work, so either the IDE is
faulty, or somethin is wrong with my sys config.
Or you made a mistake, which is by far the most likely. I use Netbeans and
have not received such a message.

Why don't you post the construct that is failing? (Copy-and-paste it; do not
paraphrase.)

- Lew
Jan 2 '07 #4
JD
Lew wrote:
IchBin wrote:
>JD wrote:
>>hi, i m new to java, i want to know if there is a good and free Java IDE
that i can use that'll help me, i dont care if its complicated , i just
want it to be good, i tried netbeans which comes bundled with java sdk 6
from sun, the prob with it is that , if i use for-each loop, it says to
use option -source 1.5, i used it, didnt work, so either the IDE is
faulty, or somethin is wrong with my sys config.

Or you made a mistake, which is by far the most likely. I use Netbeans
and have not received such a message.

Why don't you post the construct that is failing? (Copy-and-paste it; do
not paraphrase.)

- Lew
public class VariableArgumen tList {
for(int a,a<=10;a++);

/** Creates a new instance of VariableArgumen tList */
public static void main(String[] args) {
printAll(2,"two ",4,"Four",4.5, "Four Point Five");
printAll();
printAll(25,"An ything Goes",4E4,false );
}
public static void printAll(Object ... args){ // Error Here
for(Object a:args){ // Error Here
System.out.prin tln(a);

}
}

}
here's the class. it wants to use -source 1.5 option, i gave it, but
still nothing, i already did a clean install of the setup bout 5 times
now, still it persists.
Jan 2 '07 #5
JD
Scratch Last code, this is the correct code.

public class VariableArgumen tList {
// Removed faulty code from here.
/** Creates a new instance of VariableArgumen tList */
public static void main(String[] args) {
printAll(2,"two ",4,"Four",4.5, "Four Point Five");
printAll();
printAll(25,"An ything Goes",4E4,false );
}
public static void printAll(Object ... args){ // Error Here
for(Object a:args){ // Error Here
System.out.prin tln(a);

}
}

}
Jan 2 '07 #6
JD wrote:
Scratch Last code, this is the correct code.

public class VariableArgumen tList {
// Removed faulty code from here.
/** Creates a new instance of VariableArgumen tList */
public static void main(String[] args) {
printAll(2,"two ",4,"Four",4.5, "Four Point Five");
printAll();
printAll(25,"An ything Goes",4E4,false );
}
public static void printAll(Object ... args){ // Error Here
A method can not have a parm list the way you have it defined.
Could do it this way:

public static void printAll(int v1, String v2, int v3 String v4, float
v5,String v6 ){

Or create an arraylist with the stuff you want to print and then pass that.
for(Object a:args){ // Error Here
System.out.prin tln(a);

}
}

}
Your code is completely wrong.

You need to look at the Java documentation for calling and passing data
to a method.

You need to be reading up on Java in of these places:

The Java Language Specification, Third Edition
http://java.sun.com/docs/books/jls/t...tml/j3TOC.html

The Really Big Index (A list of all content pages in the The Java Tutorial)
http://java.sun.com/docs/books/tutor...ybigindex.html

Java Platform, Standard Edition 6 API Specification
http://java.sun.com/javase/6/docs/api

The Java Developers Almanac
http://www.exampledepot.com

--
Thanks in Advance... http://ichbinquotations.awardspace.com
IchBin, Pocono Lake, Pa, USA http://ichbin.9999mb.com
_______________ _______________ _______________ _______________ __________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Jan 3 '07 #7
JD
IchBin wrote:
JD wrote:
>Scratch Last code, this is the correct code.

public class VariableArgumen tList {
// Removed faulty code from here.
/** Creates a new instance of VariableArgumen tList */
public static void main(String[] args) {
printAll(2,"two ",4,"Four",4.5, "Four Point Five");
printAll();
printAll(25,"An ything Goes",4E4,false );
}
public static void printAll(Object ... args){ // Error Here

A method can not have a parm list the way you have it defined.
Could do it this way:

public static void printAll(int v1, String v2, int v3 String v4, float
v5,String v6 ){

Or create an arraylist with the stuff you want to print and then pass that.
> for(Object a:args){ // Error Here
System.out.prin tln(a);

}
}

}
Your code is completely wrong.

You need to look at the Java documentation for calling and passing data
to a method.

You need to be reading up on Java in of these places:

The Java Language Specification, Third Edition
http://java.sun.com/docs/books/jls/t...tml/j3TOC.html

The Really Big Index (A list of all content pages in the The Java Tutorial)
http://java.sun.com/docs/books/tutor...ybigindex.html

Java Platform, Standard Edition 6 API Specification
http://java.sun.com/javase/6/docs/api

The Java Developers Almanac
http://www.exampledepot.com
i tried this exact same code on eclipse IDE (besides, netbeans is far
better than eclipse, especially for beginners like me coz it gives
popups with explaination of methods) and it works, i tried this exact
code using javac.exe , it works, i m using the book form WROX called
ivor horton's beginning java sdk 5. the for-each loop and the new
parameter passing was introduced in jdk 5, i can do it another way, but
i wanna try this way to learn it, i like netbeans, but it looks like
that i really have no choice but to go for eclipse.

besides, does JRE has anything to do with netbeans, i have JRE 5
installed. but i have JDK 6.
Jan 3 '07 #8
IchBin wrote:
JD wrote:
>Scratch Last code, this is the correct code.

public class VariableArgumen tList {
// Removed faulty code from here.
/** Creates a new instance of VariableArgumen tList */
public static void main(String[] args) {
printAll(2,"two ",4,"Four",4.5, "Four Point Five");
printAll();
printAll(25,"An ything Goes",4E4,false );
}
public static void printAll(Object ... args){ // Error Here

A method can not have a parm list the way you have it defined.
Could do it this way:

public static void printAll(int v1, String v2, int v3 String v4, float
v5,String v6 ){

Or create an arraylist with the stuff you want to print and then pass that.
> for(Object a:args){ // Error Here
System.out.prin tln(a);

}
}

}
Your code is completely wrong.

You need to look at the Java documentation for calling and passing data
to a method.

You need to be reading up on Java in of these places:

The Java Language Specification, Third Edition
http://java.sun.com/docs/books/jls/t...tml/j3TOC.html

The Really Big Index (A list of all content pages in the The Java Tutorial)
http://java.sun.com/docs/books/tutor...ybigindex.html

Java Platform, Standard Edition 6 API Specification
http://java.sun.com/javase/6/docs/api

The Java Developers Almanac
http://www.exampledepot.com
Very sorry.. I should have tested the code. I have never seen a method
have an argument list like this.. Guess I should read those docs.

--
Thanks in Advance... http://ichbinquotations.awardspace.com
IchBin, Pocono Lake, Pa, USA http://ichbin.9999mb.com
_______________ _______________ _______________ _______________ __________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Jan 3 '07 #9
Lew
JD wrote:
i tried this exact same code on eclipse IDE (besides, netbeans is far
better than eclipse, especially for beginners like me coz it gives
popups with explaination of methods) and it works, i tried this exact
code using javac.exe , it works, i m using the book form WROX called
ivor horton's beginning java sdk 5. the for-each loop and the new
parameter passing was introduced in jdk 5, i can do it another way, but
i wanna try this way to learn it, i like netbeans, but it looks like
that i really have no choice but to go for eclipse.

besides, does JRE has anything to do with netbeans, i have JRE 5
installed. but i have JDK 6.
I use Netbeans 5.5 with JDK 6 and it accepts these constructs just fine. But
you must hook your project up to a JDK, not a JRE.

From the Netbeans menu: "Tools / Java Platform Manager".

What are the exact error messages you get?

- Lew
Jan 5 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3206
by: martin | last post by:
Hello, I just got the SUN Java IDE. (Netbeans IDE 3.5.1) Very very nice, and I worked myself through the tutorial (about making a colorswitch). Now, When I compile it gives no errors at all. So far so good. But when I want to execute, it askes to "set project main class". The only option it displays is the default project. But the "okay" button won't highlight. I cannot select anything else, nor can I roam directories to select
7
48453
by: Gil | last post by:
In C++, I can rethrow the exception I just caught with the throw statement. Can I do something similar in Java? } catch (Exception ex) { throw; }
1
2933
by: enki | last post by:
I have been learning perl and C++, and I have been looking into Java. I know very little about the language, I have found some realy bad books that realy served to confues me and I have to find medicore C++ books to explain objects. Now working with C++ and perl understand object oriented programming. I know that Java is realy good for the web and applets, but how is java for sprites and graphics? Are there good built in libraries for...
5
1708
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech These are long since retired newsgroups. You may have ended up in one by
11
9239
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
20
2539
by: mayershome | last post by:
Hi! I'dont have any experiences in programming... what language should I start learning???? C? C++ or Java`? greetz
458
21093
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers simply aren't smart enough to understand C++? This is not merely a whimsical hypothesis. Given my experience with Java programmers --- the code they write and the conversations they have --- Occam's Razor points to this explanation. For example,...
15
5082
by: RAM | last post by:
Hello, I graduated computer science faculty and decided to became a programmer. Please help me to make a decision: Java or Microsoft .NET? What is the future of Java? Thanks! /RAM/
9
1856
by: iceman4022 | last post by:
Here is a program I have to write for an assignment. I cannot get it to exit when I click cancel and for some reason I get an error when you enter 3 as your option. I am sure it is a beginners mistake but I am stuck. Any assistance would be greatly appreciated. Just be easy...I am still new. Thanks. ********************************************************************* import java.io.*; import javax.swing.JOptionPane; import...
0
8168
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8672
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8614
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4075
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2603
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1474
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.