Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / October 2003

Tip: Looking for answers? Try searching our database.

so finally I have successfully downloaded and installed netbeans and the jdk from sun now

Thread view: 
code_wrong - 03 Oct 2003 23:44 GMT
so finally I have successfully downloaded and installed netbeans and the jdk
from sun, now

I am having some trouble working out how to create apps.

I have mounted the folder containing my first java sourcefile but on
compilation receive the message

" hello.java [1:1] class Hello is public, should be declared in a file named
Hello.java"

I think this may have something to do with some files I need to mount that
will deal with creating the command box that the progrsm will run in,but
which ones?

I must say this IDE is extremely confusing fora newbie to java coming from
ms windows c, c++ and VB.

I realise the the mounting of drives and folders is a unix/Linux concept but
having poured over the net beans help system I am still in the dark.

Can any one advise?

I am very tempted to dump this ide, in favour of the Borland product but I
am fed up downloading stuff for this language already.

I need advice.................
code_wrong - 04 Oct 2003 00:54 GMT
> so finally I have successfully downloaded and installed netbeans and the jdk
> from sun, now
[quoted text clipped - 6 lines]
> " hello.java [1:1] class Hello is public, should be declared in a file named
> Hello.java"

ah .. case ....got it
mswindows is case blind netbeans is case sensitive
Now all I need to do is get the the console window to pop up and thence a
gui
any advice will still be welcome
cw
Juha Laiho - 04 Oct 2003 16:42 GMT
"code_wrong" <tac@tac.ouch.co.uk> said:
>so finally I have successfully downloaded and installed netbeans and the jdk
>from sun, now
[quoted text clipped - 6 lines]
>" hello.java [1:1] class Hello is public, should be declared in a file named
>Hello.java"

As you found out, this was a case issue. If I recall correctly, there are
some settings to make Windows file managers to show true case as well; try
to find these settings - they'll help you a lot. Also, the case issue is
not with NetBeans -- the issue is that _Java_ is case sensitive (by design
and by specification).

>I realise the the mounting of drives and folders is a unix/Linux concept but
>having poured over the net beans help system I am still in the dark.

As for mounting, this is a way you can use to point the IDE to a piece of
disk space you've designated for it -- and also you can mount resources
from various places to form a logical collection.

So, for example, over time you've accumulated several code libraries (JARs)
that provide functionality you need in several projects you're working on.
One solution would be to copy these JARs to each project directory - but
that doesn't make much sense. You can just maintain a single directory for
your JAR collection, and from this collection mount only the needed JARs
to each of your projects. If you find out you need a newer version of some
JAR, you update it once, and it will be updated for all your projects. Of
course, you'll need to look out for version incompatibilities -- it may
well be that this kind of upgrade will then break all of your projects.
So, it's a balance of benefits and drawbacks.

Another thing you can mount are CVS version control repositories -- so
source code that actually resides somewhere across the network, and from
which you can pick which of the various versions you want to view and work
on, and what differences exist between different versions.

>I am very tempted to dump this ide, in favour of the Borland product but I
>am fed up downloading stuff for this language already.

Hmm.. I recall the Borland JBuilder is NetBeans-based as well, so if you're
fed up with NB, I don't think you would be happy to see you've switched to
just another incarnation of it.

>I need advice.................

If you don't yet have it, get the Sun Java Tutorial from java.sun.com - or
if you don't want to download it, read it online.
Signature

Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
        PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.