473,386 Members | 1,835 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.

S.O.S!!

Hey there.

Sad to say I'm a complete java ignoramus. That's why I have this
problem that I hope someone here can help me with:

I just downloaded 2 zipped archives that apparently contain java files
for an emulator or two which I would REALLY REALLY like to get
running:

1) The "java applet emulator" is described as:
-"...an Analytical Engine emulator which runs as a Java applet within
a Web page. If your browser supports Java, you can run Analytical
Engine simulations with no additional software or installation."

2) The "command-line emulator":
a command-line emulator for The Analytical Engine which you can
download in either ready-to-run object code or source code form, which
runs on any computer with a compatible Java virtual machine
implementation.
Unfortunately the webpage don't give any kind of explanation of what
I'm supposed to do with their content. :o(

All it says is:
- "Source code (.java files) for both the applet and command-line
emulators. Emulator source code is intended for experienced Java
developers, and is utterly unsupported. The program is in the public
domain and you can do anything you like with it, but you're entirely
on your own."
As for the downloaded archives themselves:

The first download is the "sourcecode" download
(http://www.fourmilab.ch/babbage/release/aesource.zip), just
described.
It contains 15 files with the ".java" extension, and 1 file called
"Makefile" (with no extension).

The second download (http://www.fourmilab.ch/babbage/release/aeclass.zip)
is announced as the "Object code (.class files) for the command line
emulator"
It contains 30 files, all with the ".class" extension.
Now, I would be really really glad if someone here can please explain
to me what I should do with these components in order to get the
emulators to run. - Am I supposed to write an html-document for the
"applet"?! And what script should it contain? - And what the frog am I
supposed to do with the .class files?

Please, please, please help.

And thank you SOOO much in advance!
Kind regards
Rasmus Nielsen.
Jul 17 '05 #1
8 1887
ei**********@yahoo.co.uk (Rasmus Nielsen) wrote in message news:<22**************************@posting.google. com>...
Hey there.

Sad to say I'm a complete java ignoramus. That's why I have this
problem that I hope someone here can help me with:

I just downloaded 2 zipped archives that apparently contain java files
for an emulator or two which I would REALLY REALLY like to get
running:

1) The "java applet emulator" is described as:
-"...an Analytical Engine emulator which runs as a Java applet within
a Web page. If your browser supports Java, you can run Analytical
Engine simulations with no additional software or installation."

2) The "command-line emulator":
a command-line emulator for The Analytical Engine which you can
download in either ready-to-run object code or source code form, which
runs on any computer with a compatible Java virtual machine
implementation.
Unfortunately the webpage don't give any kind of explanation of what
I'm supposed to do with their content. :o(

All it says is:
- "Source code (.java files) for both the applet and command-line
emulators. Emulator source code is intended for experienced Java
developers, and is utterly unsupported. The program is in the public
domain and you can do anything you like with it, but you're entirely
on your own."
As for the downloaded archives themselves:

The first download is the "sourcecode" download
(http://www.fourmilab.ch/babbage/release/aesource.zip), just
described.
It contains 15 files with the ".java" extension, and 1 file called
"Makefile" (with no extension).

The second download (http://www.fourmilab.ch/babbage/release/aeclass.zip)
is announced as the "Object code (.class files) for the command line
emulator"
It contains 30 files, all with the ".class" extension.
Now, I would be really really glad if someone here can please explain
to me what I should do with these components in order to get the
emulators to run. - Am I supposed to write an html-document for the
"applet"?! And what script should it contain? - And what the frog am I
supposed to do with the .class files?

Please, please, please help.

And thank you SOOO much in advance!
Kind regards
Rasmus Nielsen.


Emulate what?
Jul 17 '05 #2
..class files can be executed by a Java Virtual Machine (JVM)
which you need to have installed on your computer.
Type 'java' on the command line to find out.
If you don't have it - go to java.sun.com and
download Java2 JRE ver 1.4.2 for your system (Win, Mac, etc).
Install it (this process is automatic).

Now you can play with the emulator.
I've peeked at the code and found that
eas.class is the entry point of the application.
You have to:
- Open a command prompt.
- Change the current working directory
to the location where you have put
the .class files.
- type 'java -cp . eas' (that dot is important, so are spaces) and
press enter

Adam
Jul 17 '05 #3
[comp.lang.javascript removed from groups list]

ei**********@yahoo.co.uk (Rasmus Nielsen) wrote in message news:<22**************************@posting.google. com>...
Hey there.

Sad to say I'm a complete java ignoramus. That's why I have this
problem that I hope someone here can help me with:

I just downloaded 2 zipped archives that apparently contain java files
for an emulator or two which I would REALLY REALLY like to get
running:
[snipped...]

As for the downloaded archives themselves:

The first download is the "sourcecode" download
(http://www.fourmilab.ch/babbage/release/aesource.zip), just
described.
It contains 15 files with the ".java" extension, and 1 file called
"Makefile" (with no extension).
Right, that will be the source code used by programmers to build the
software. Unless you are a Java programmer (or very very curious)
avoid this. You'd need a developer kit to translate ('compile') the
source files into runnable form anyway - which I'm sure you'd know
about already if you had one.

The second download (http://www.fourmilab.ch/babbage/release/aeclass.zip)
is announced as the "Object code (.class files) for the command line
emulator"
It contains 30 files, all with the ".class" extension.
This is the runnable code itself. These files are input to the Java
Virtual Machine, which runs the Java bytecode software. As a non-
programmer, this is the file you need.

Now, I would be really really glad if someone here can please explain
to me what I should do with these components in order to get the
emulators to run. - Am I supposed to write an html-document for the
"applet"?! And what script should it contain? - And what the frog am I
supposed to do with the .class files?


Firstly you need to find out if you have Java (aka the Java plugin)
installed on your computer. Windows PC's with Sun's JRE installed
usually have a Java icon in the Control Panel section, with a swirly
coffee-cup logo. This tool enables you to configure Java and gives
useful info. The latest full version of Java is 1.4 - but I suspect
the code you're using will work under far earlier versions.

The Java Runtime Environment (JRE) can be downloaded from this
user-friendly site: http://java.sun.com/getjava/

To run the applet you'll need to find an appropriate HTML file. If
one isn't provided in the Zip file, try scouting around the site you
downloaded the applet from to see if you can find one.

To run the code stand alone, you'll need to use MS-DOS, as the author
doesn't appear to have packaged the code so it can be run from just
clicking an icon. Make sure the directory where the java.exe program
lives is in your path (be careful, as Microsoft bundled ancient versions
of Java with some version of Windows - make sure it is the java.exe from
the Sun version) and follow the command line instructions on the site
you downloaded the software from.
-FISH- ><>
Jul 17 '05 #4
JRS: In article <22**************************@posting.google.com >, seen
in news:comp.lang.javascript, Rasmus Nielsen <ei**********@yahoo.co.uk>
posted at Thu, 26 Feb 2004 16:09:37 :-

Sad to say I'm a complete java ignoramus. That's why I have this
problem that I hope someone here can help me with:


Firstly, the Subject line of a news article should describe the topic of
the article, not the state of the author. You should find that stated
either in the newsgroup FAQ or in material that it links to. You should
always seek and read a newsgroup FAQ before posting to the group, unless
you have been reading the group for some reasonable while; preferably
both.

Secondly, the first thing that a Java or Javascript programmer should be
taught is that they are not the same language; in particular, they have
different newsgroups. The comp.lang.javascript FAQ is clear enough on
this point; the comp.lang.java[.*] FAQ[s], if extant, ought to be
equally clear.

About the only question positively on-topic for both groups is "why do
people not understand that?"

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 17 '05 #5
Ivo
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote
(...) different newsgroups. The comp.lang.javascript FAQ is clear enough
on this point; the comp.lang.java[.*] FAQ[s], if extant, ought to be
equally clear.
About the only question positively on-topic for both groups is "why do
people not understand that?"

© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk
Usenet continues to attract new users.
Just a guess. (And we may be both thankful and proud that it does.)
They may even become the majority one day. And change the rules.
Just a thought.
Ivo

Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items,

links.

Jul 17 '05 #6
Thank you, Adam, and Fish, for your great help! Now I can manage.
Thanx again. :o)

Kind regards.
-P.S. Dr Stockton: Just out of curiosity: Were your remarks somehow
supposed to be helpful?! Or is it a territorial thing?
Jul 17 '05 #7
JRS: In article <22**************************@posting.google.com >, seen
in news:comp.lang.javascript, Rasmus Nielsen <ei**********@yahoo.co.uk>
posted at Sat, 28 Feb 2004 13:30:22 :-
-P.S. Dr Stockton: Just out of curiosity: Were your remarks somehow
supposed to be helpful?! Or is it a territorial thing?

ISTM useful that you should realise your stupidity; and others are
likely to learn from the example provided.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 17 '05 #8
Dr John Stockton <sp**@merlyn.demon.co.uk> wrote in message news:<zm**************@merlyn.demon.co.uk>...
[snipped...]
ISTM useful that you should realise your stupidity; and others are
likely to learn from the example provided.

The confusion between Java and JavaScript stretches back to Netscape's
decision to rename LiveScript. It is tiresome to both parties to deal
with misplaced postings, but in this case pointing the finger of blame
at the novice is probably not so productive.

It is natural to assume that two entities within the same 'field' which
share a similar name stem are related. C and C++. Coke and Diet-Coke.
MacBurger, MacFries, MacEverything... This is an often used naming
convention - particularly useful in branding. With Java and JavaScript
you have the added problem that they both came to prominence through the
same field - dynamic web content - and at the same time. The seeds of
confusion were sown such that even if the original poster in this thread
was to do extensive searches on Google, the odds are low that they would
run into a site which *prominently* explains that Java != JavaScript.
(Indeed, even your own JavaScript 'FAQ' doesn't appear to explain the
difference! (?))

Perhaps if the term 'JavaScript' was phased out (except them specifically
refering to Netscape's implementation) in favour of 'ECMAScript', this
might in time reduce the level of confusion? Until then, Java and
JavaScript programmers will just have to continue to *politely* guide
misdirected posters to the right group...
-FISH- ><>
Jul 17 '05 #9

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.