Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Begginer questions about Java programing

0 views
Skip to first unread message

Alan Estrada Adler

unread,
Aug 18, 1997, 3:00:00 AM8/18/97
to

Well, I just started with Java, I studied C++ for one semester and Im not
an expert by any way, but I want to improve my homepages so Im starting
with Java...

I have a few questions...

is there a program, let's say a compilator to do Java? because the little
java lines I've written I put them on the html code with the web editor,
but I dont know if more complicated codes will have problems so I want a
program that debugs my codes to see the errors....

And other question...is all the java programing on the html code or do
you have to use other programs (like in C++ you use .h .cpp etc..)? I
want to know more about the simpliest java programing, so please email me
with your comments and help, I will apreciatte, thanks a lot


-

Visit my Homepage at http://www.geocities.com/collegepark/2025
Visit The Shredder's Lair at: http://homepages.mty.itesm.mx/~al766074

Visit Jason Kramer's Extreme Korner at:
http://www.kramerskorner.com/extreme.html
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ Alan Estrada Adler @
@ @
@ al76...@mail.mty.itesm.mx @
@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
"You've got your whole life to write your first album,
and six months to do your next."

Kerry Ginn

unread,
Aug 18, 1997, 3:00:00 AM8/18/97
to Alan Estrada Adler

X-comment: This message has been posted on the comp.lang.javascript and
also send as email.

Alan Estrada Adler wrote:
>
> Well, I just started with Java [...]


> is there a program, let's say a compilator to do Java? because the little
> java lines I've written I put them on the html code with the web editor,
> but I dont know if more complicated codes will have problems so I want a
> program that debugs my codes to see the errors....

People new to web authoring often get JavaScript confused with Java; but
they are entirely different programming languages. On web pages,
JavaScript is embedded within HTML tags that look like this:
<SCRIPT LANGUAGE="JavaScript>
.
:
</SCRIPT>

Java is referenced in HTML tags that look like this:
<APPLET CODEBASE=... CODE=...>
.
:
</APPLET>

This newsgroup, comp.lang.javascript, is the right newsgroup to discuss
JavaScript. For help with Java, use the comp.lang.java.help newsgroup
instead. In both newsgroups, it helps to read the articles that
contain Frequently Asked Questions, called "FAQs", which are posted at
least once a month.

All that is usually needed to write JavaScript is a simple text editor;
however there are also some text editors that recoginize HTML (and
perhaps JavaScript). All that is usually needed to debug JavaScript is
a web brower like Netscape Navigator or Microsoft Internet Explorer that
can interpret JavaScript; however there are debuggers for the language,
too. Lengthly JavaScript may be written in files seperate from the HTML
files, but older web browsers, like version 2.0 of Navigator and version
3.0 of Internet Explorer, cannot read seperate JavaScript files.

--
Kerry Ginn
Austin, Texas

Catherine Skidmore

unread,
Aug 18, 1997, 3:00:00 AM8/18/97
to

Alan Estrada Adler wrote:
>
> Well, I just started with Java, I studied C++ for one semester and Im not
> an expert by any way, but I want to improve my homepages so Im starting
> with Java...

why don't you start by asking in comp.lang.java instead of the
javascript
NG?

-catherine

--

Catherine Skidmore
http://www.suck-my-big.org
everybody knows that the world is full of stupid people.

Bryn Waibel

unread,
Aug 18, 1997, 3:00:00 AM8/18/97
to Alan Estrada Adler

It looks to me like you're talking about JavaScript, which is what this
newsgroup is for, but you'll get a mailbox full of flames if you keep
calling it Java. If you are talking about java, this is a flame, you're
in the wrong place, if you want help with java, pay me.

JavaScript, is not a compiled language, but I think you can find debuggers
for it at Netscape's homepage. Your major source of problems will not be
syntax bugs though, JavaScript itself is a very simple language, the
problems come from code which is "correct" to one browser, and an
explosive error in another :( have fun. I don't use a debugger, I just
use alert messages to lead me to my problems, you might want to check into
this. For instance, if I am getting sh*tty errors in some function, I'll
just add an alert which gives me the values of my current variables, and
return values, this usually helps me narrow down the problem. If you
can't find the bug, post it on this ng, people love finding nasty bugs,
there's a swarm of sadists in this newsgroup.

> is there a program, let's say a compilator to do Java? because the little
> java lines I've written I put them on the html code with the web editor,
> but I dont know if more complicated codes will have problems so I want a
> program that debugs my codes to see the errors....

Yes, for now, all of your JavaScript code is in the HTML, when you get
better, I'm sure you'll learn other ways.

> And other question...is all the java programing on the html code or do
> you have to use other programs (like in C++ you use .h .cpp etc..)? I
> want to know more about the simpliest java programing, so please email me
> with your comments and help, I will apreciatte, thanks a lot


I just took a look at your page, it's definitely JavaScript, so ignore my
question as to what it was.

BTW (By The Way) comp.lang.javascript replies are filled with good sites
for beginners, read through a few messages, and go to peoples pages.

Bryn


Bill Bohan

unread,
Aug 21, 1997, 3:00:00 AM8/21/97
to

If you're programming in Java you need a compiler.
You can get one for free from http://java.sun.com/
but
If you're programming in JavaScript you just put the code in the HTML file.
I hope this clarifies things for you.
bilbohan


Alan Estrada Adler wrote:

> Well, I just started with Java, I studied C++ for one semester and Im not
> an expert by any way, but I want to improve my homepages so Im starting
> with Java...
>

> I have a few questions...
>

> is there a program, let's say a compilator to do Java? because the little
> java lines I've written I put them on the html code with the web editor,
> but I dont know if more complicated codes will have problems so I want a
> program that debugs my codes to see the errors....
>

> And other question...is all the java programing on the html code or do
> you have to use other programs (like in C++ you use .h .cpp etc..)? I
> want to know more about the simpliest java programing, so please email me
> with your comments and help, I will apreciatte, thanks a lot
>

0 new messages