473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

simple beginners question

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
anything.

Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)

best regards,
martin
Jul 17 '05 #1
10 3178
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software

"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
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
anything.

Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)

best regards,
martin

Jul 17 '05 #2
Any good suggestions for a good online tutorial on Java?
martin

"Tony Morris" <di******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software

"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
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
anything.

Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)

best regards,
martin


Jul 17 '05 #3
"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
Any good suggestions for a good online tutorial on Java?
martin

"Tony Morris" <di******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software

"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
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
anything.

Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)

best regards,
martin



java.sun.com

Since they switched their site up, I don't know where the Java tutorial is
hiding.
Jul 17 '05 #4
Classes are not added to the 'project' by default.
Right click on each file and select Tools->Add To Project
The classes will then appear in the 'set project main class' dialog.

Alternatively just open the file with the main in and press F6 to execute.
Regards,

Jon.
"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
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
anything.

Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)

best regards,
martin

Jul 17 '05 #5
http://java.sun.com/tutorial

There is a "Getting Started" section, and also sections covering various
topics in detail.
A good to place to start !

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software

"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
Any good suggestions for a good online tutorial on Java?
martin

"Tony Morris" <di******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software

"martin" <no****@nowhere.org> wrote in message
news:bs**********@reader10.wxs.nl...
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
anything.

Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)

best regards,
martin



Jul 17 '05 #6
"Tony Morris" <di******@optusnet.com.au> wrote in message news:<3f***********************@news.optusnet.com. au>...
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.


Now, to be fair, martin's question seems more like a NetBeans
beginner's question than a Java beginner's question. I've found
NetBeans to be a rather clunky and unintuitive IDE, even for
experienced Java programmers.
Jul 17 '05 #7
Karl von Laudermann wrote:
"Tony Morris" <di******@optusnet.com.au> wrote in message news:<3f***********************@news.optusnet.com. au>...
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.


I've got a similar question. I was introduced to Java through the
Borland IDE but only really understood what was going on when I
downloaded the SDK and used notepad, javac and java from the command
line. I've tried eclipse but what I'd really like is something that is
in between a simple text editor and an IDE. Automatically closing
brackets and a side panel listing the methods and data fields is fine,
and perhaps also pop-up access to APIs. But what I don't want is
something that decides a directory structure for me, introduces its own
files or manages my projects. So all I want is something that will help
me write the code, and I'll do the rest, i.e. file management and
compiling. Any recommendations?

Jul 17 '05 #8
Paul wrote:
Karl von Laudermann wrote:
"Tony Morris" <di******@optusnet.com.au> wrote in message
news:<3f***********************@news.optusnet.com. au>...
I strongly suggest that you learn Java, and not NetBeans.
Integrated Development Environments are intended for use by competent
developers only, since they hide many of the details of what is actually
happening, and it is assumed that the user can determine what that is.
Clearly, in this case, you can't.
Grab the Sun SDK and a decent text editor and get cracking.



I've got a similar question. I was introduced to Java through the
Borland IDE but only really understood what was going on when I
downloaded the SDK and used notepad, javac and java from the command
line. I've tried eclipse but what I'd really like is something that is
in between a simple text editor and an IDE. Automatically closing
brackets and a side panel listing the methods and data fields is fine,
and perhaps also pop-up access to APIs. But what I don't want is
something that decides a directory structure for me, introduces its own
files or manages my projects. So all I want is something that will help
me write the code, and I'll do the rest, i.e. file management and
compiling. Any recommendations?

http://www.jedit.org

Ray

Jul 17 '05 #9
Raymond DeCampo wrote:

<snip>

http://www.jedit.org


Thanks for that Raymond. I think it's exactly what I was looking for.

Paul

Jul 17 '05 #10

I've got a similar question. I was introduced to Java through the
Borland IDE but only really understood what was going on when I
downloaded the SDK and used notepad, javac and java from the command
line. I've tried eclipse but what I'd really like is something that is
in between a simple text editor and an IDE. Automatically closing
brackets and a side panel listing the methods and data fields is fine,


I'm currently using GVIM or VIM, its a VI editor (best to just get it over
and learn VI), it has support for CTAGS, which is a library of language
syntax parsers, it allows for syntax colorization.. You can use it with
Java to recognize parts of syntax. IDE tend not to be helpful, only for
graphical editing of the GUI elements, command completion and inheritance
searches.. Java is incredibly hard to program in if you haven't the ability
to browse the class structure, but then again you have to understand the
class structure and the function of everything to really use it..

I'm still learning myself but spent a year fuddling around in the source
distribution of www.openemed.org . Its not much fun when people use
CORBA.any's, Java interface classes and adhoc programming styles (see anti-
pattern "the Blob" at www.antipatterns.com). Java can be just as dirty to
code in as C.. Its a matter of how good a coder you are.. Fortunately
Java is heavy on Exception handling and Abstraction. If it wasn't it would
be awful. I'm waiting for Sun to open source Java, if they ever do, because
I feel like they use Java to leverage their business goals, and that means
deprecations don't happen for obvious reasons.. If Java was trully object
oriented, nobody would have to refactor their code.. Its just the politics
of business, bad decisions and poor design that ruin interoperability.
Well its my little gripe, its harder to deprecate stuff in open source,
because deprecation doesn't make any natural sense considering that Java is
compiled in pieces, the entire class hiearchy doesn't have to travel with
the application for it to be useful (??). Otherwise it would be smalltalk!!

Anyhow..
Jul 17 '05 #11

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

Similar topics

4
by: Richard Shea | last post by:
Hi - I'm trying to use ZODB but I'm having trouble getting started. Can anyone point me at a very simple example ? I've had a look at 'ZODB/ZEO Programming Guide'...
6
by: Alec | last post by:
Newbie question. I have a database for displaying the names of bed and breakfasts searched for by the town they are in as below. <?php $result = @mysql_query ("SELECT name FROM...
4
by: Eggnog | last post by:
Hi, Is there a newsgroups for beginners questions? Cheers, Nawg
6
by: Brian | last post by:
Hello, I am using a beginners book on VB .net and already stumped....when using this code (below) , it will tell me that MsgBox is not valid. This is a very simple program and I can't figure out...
12
by: Michael S | last post by:
Why do people spend so much time writing complex generic types? for fun? to learn? for use? I think of generics like I do about operator overloading. Great to have as a language-feature, as...
2
by: =?Utf-8?B?UmFrZXNo?= | last post by:
Hi, I have worked in Windows development for some time and want to learn ASP.Net - Web Application. Can some one redirect me to some site where I can find some good start up for beginners course...
8
by: David Barr | last post by:
I am brand new to Python (this is my second day), and the only experience I have with programming was with VBA. Anyway, I'm posting this to see if anyone would be kind enough to help me with this...
9
by: deja | last post by:
Hi all, For a couple of nights I have been trying to figure something out.. I am trying insert a couple of fields into a database. My url looks something like this; ...
5
by: pawelr74 | last post by:
Hello all, I'm beginner in c#. In my web application I have class myTool with few public methods. How can I attached this class to other classes and use method from myTool class. In VB I can use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.