1 - University of North Carolina at Chapel Hill

advertisement
Subject:
Comp14 mail group
Date:
Fri, 25 Aug 2000 18:50:25 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
Organization:
University of North Carolina
To:
comp14@cs.unc.edu
We just created the comp14 mail group. We will be CCing answers to each
of your questions to this alias, so that we do not have to repeat them.
Feel free to use this mail group to communicate among yourselves - it is
possible some questions, specialy about installing the software, will
best be answered by some student who has a similar software
configuration.
Prasun
______________________________________________________________________________________
Subject:
Re: help on assignment
Date:
Fri, 25 Aug 2000 20:12:31 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
Organization:
University of North Carolina
To:
Omar Halawa <ohalawa@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
You do not have to open these files. Look at the instructions in chapter 2 on using a bare-bone
environment.
Prasun
Omar Halawa wrote:
This is Omar Halawa in your COMP 14 class, i downloaded all three files successfully from the webpage,
however, i am not sure of what application to use to open the files up. For examples i have object editor
saved,
but i dont know how to run it. Thank you. Omar Halawa
______________________________________________________________________________________
Subject:
Installing and executing ObjectEditor
Date:
Fri, 25 Aug 2000 20:53:23 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
comp14@cs.unc.edu
I have had a few students send me mail saying they had difficulty
following the instructions in chapter 2 on how to compile their program
and use ObjectEditor. I have updated the chapter to make the steps more
explicit. For those of you who have already printed it, I am attacihing
the portion I changed. If you still have problems, please be specific
about which step in the instructions failed, and I will send a
clarification to everyone.
Prasun
SoftwareInstallation.doc
Name:
SoftwareInstallation.doc
Type:
Microsoft Word Document (application/msword)
Encoding:
base64
Download Status:
Not downloaded with message
____________________________________________________________________________________
Subject:
Re: Comp14
Date:
Sat, 26 Aug 2000 10:23:35 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Jamie Brantley <brantley@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
You can mail to help14, you do not have to mail to a specific TA.
The TAs will tell you to read the instructions.
Why are you trying to open the software? Nowhere in the instructions are
you asked to do so.
Saying:
I really do not understand how to set the path.
is too general. You have to be specific about what you cannot understand.
Are you getting mail send to comp14? There is a new set of instructions I
mailed to everyone.
Prasun
Jamie Brantley wrote:
> Professor Dewan,
>
> My name is Jamie Brantley and I'm in your Comp14 class, Section 1. I
> don't know who my TA is, so I'm emailing you. Could you please give me
> the name and email address of either my TA, or someone that is capable
> of simply explaining how to go about opening the software required to
> complete Thursday's assignment. My recitation section number is 602.
> I really do not understand how to set the path. I can't even begin my
> assignment, because I am unable to open the software.
>
> Thank you in advance for your help.
>
> Jamie Brantley
> brantley@email.unc.edu
______________________________________________________________________________________
Subject:
Troubleshooting jvc and jview commands
Date:
Sat, 26 Aug 2000 11:36:48 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
comp14@cs.unc.edu
If the command:
jvc <Class File>
does not succeed, execute the command without the file name:
jvc
If this command succeeds, and the previous one did not, then check that
you have entered the file name correctly and are in the directory in
which the file was created. If this command also does not succeed, then
look at the autoexec file to check that you entered the line to set the
path correctly . In particular, check that the directory in which J++
was installed is consistent with the one specified in the line. You can
do so by checking that the J++ directory, Microsoft Visual Studio, is in
the default directory, C:\Program Files. If it is in a different
directory, enter its name instead of the default directory, C:\Program
Files in the autoexec file. Also check that the file Jvc.exe exists in
the VJ98 directory within Microsoft Visual Studio. If the autoexec file
is correct and Jvc.exe exists, then you probably did not reboot the
computer after changing the autoexec file.
If the command:
jview bus.uigen.ObjectEditor
does not work, execute jview without the name of the ObjectEditor:
jview
If this command does not work, check that you entered %PATH% in the
autoexec entry for setting the path. If this command works, but the
previous one did not, check that you entered the name of ObjectEditor
(bus.uigen.ObjectEditor) correctly. If you did, check the autoexec entry
to set the class path. In particular, check that all three jar files are
specified correctly in the entry – that is their names and the name of
the directory in which they have been downloaded are given correctly.
Also check that the sizes of the files are exactly the same as the ones
given in the web page from which you downloaded the files. You can find
the size of a file by selecting the file name in an explorer window,
right clicking to bring up the Properties menu, and selecting the
General properties.
____________________________________________________________________________________
Subject:
Re:
Date:
Sat, 26 Aug 2000 11:39:33 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Bisharah Libbus <BLibbus@nc.rr.com>
CC:
comp14@cs.unc.edu
References:
1
Yes, the page has not been made, as is th ecase with some other pages in the
home page. The comp14 mail group is being used to broadcast this information.
Prasun
Bisharah Libbus wrote:
> I am having a few difficulties logging on:
>
> 1. When I click on the "For Questions (& Answers) that have been asked
> about the assignments (Please look here before asking for help!), I get the
> following:
>
> The page cannot be found
> The page you are looking for might have been removed, had its name changed,
> or is temporarily unavailable.
>
> ---------------------------------------------------------------------------> --->
> Please try the following:
>
> If you typed the page address in the Address bar, make sure that it is
> spelled correctly.
>
> Open the www.cs.unc.edu home page, and then look for links to the
> information you want.
> Click the Back button to try another link.
> Click Search to look for information on the Internet.
>
> HTTP 404 - File not found
> Internet Explorer
>
> 2. I downloaded the files as instructed but I get:
> 321 kb for oe (instead of 329.577 kb)
> 101 kb for Graphics Library (instead of 103.765)
> and 2.09 kb instead of 219.234.
>
> 3. I also tried using Netscape Navigator to download but I got a page of
> jumbled text.
>
> What am I doing wrong.
>
> Bisharah Libbus
Subject:
Re:
Date:
Sat, 26 Aug 2000 11:52:13 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Bisharah Libbus <BLibbus@nc.rr.com>
CC:
comp14@cs.unc.edu
References:
1
You seem to be seeing the approximated numbers with the definition of KB as 1024
bytes rather than 1000. Check the file size by right clicking on the file name
in an explorer window, selecting Properties, and then selecting at the General
properties. The files should be copied correctly by IE.
>
>
> 2. I downloaded the files as instructed but I get:
> 321 kb for oe (instead of 329.577 kb)
> 101 kb for Graphics Library (instead of 103.765)
> and 2.09 kb instead of 219.234.
>
> 3. I also tried using Netscape Navigator to download but I got a page of
> jumbled text.
>
> What am I doing wrong.
>
> Bisharah Libbus
Subject:
Re: software
Date:
Sat, 26 Aug 2000 12:57:34 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Jamie Brantley <brantley@email.unc.edu>
CC:
help14@cs.unc.edu
References:
1
Read the instructions again, specially the updated ones. You are supposed
to edit the file using notepad. You are not using notepad.
Prasun
Jamie Brantley wrote:
> I know that you do not open the software that is downloaded from the
> web.
>
> I click the START menu and click RUN. Then, I key in
>
> C:/autoexec.bat:SETPATH=%PATH%;C:"/ProgramFiles/MicrosoftVisualStudio/
> VJ98"SETCLASSPATH=%CLASS
> PATH%;.;D:/Java/lib/oe.jar;D:Java/lib/shapes.jar;D:/Java/lib/swingall.
> jar"
>
> I keyed in all of the above information without any spaces. Then when
> I click OK, the following dialogue box appears:
>
> Cannot find the file
> C:/autoexec.bat:SETPATH=%PATH%;C:"/ProgramFiles/MicrosoftVisualStudio/
> VJ98"SETCLASSPATH=%CLASS
> PATH%;.;D:/Java/lib/oe.jar;D:Java/lib/shapes.jar;D:/Java/lib/swingall.
> jar"(or one of its components). Make sure the path and filename are
> correct and that all required libraries are available.
>
> So I checked the filename and checked to ensure that all libraries and
> J++ information was properly installed and in the correct drives.
>
> So what's up with that?
Subject:
Re: question
Date:
Sat, 26 Aug 2000 14:31:41 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Laura Van Dyke <lauravd@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
each .. takes you one level up. So in this case, you want to go up a single level, hence the command should
be:
cd ..
Prasun
Laura Van Dyke wrote:
When i try to set ms-dos prompt to D:\, this is what happens......it says: D:\My Documents>then i type
D:\My
Documents>cd ..\..and i get "invalid directory"Do you know what the problem must be?Thanks- Laura
VanDyke
Subject:
Re: Turning Comp14 programming assignments in
Date:
Sat, 26 Aug 2000 16:36:42 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
George Wagner <gwagner@email.unc.edu>
CC:
help14@cs.unc.edu
References:
1,2
Have you got it all working? You may be the first one!
The TAs will be posting the instructions soon.
Prasun
George Wagner wrote:
> Hello there,
> I'm wondering how you wanted us to turn these programming assignments in. I
> think I heard it in class once but can't recall the exact instructions now.
> Also I searched the webpage and syllabus and didn't find them. Of course, I
> could have just missed them, but assuming I didn't I'd like to suggest that
> the instructions be put up on the web.
> Thanks,
> George Wagner
> ----- Original Message ----> From: Prasun Dewan <dewan@cs.unc.edu>
> To: <comp14@cs.unc.edu>
> Sent: Friday, August 25, 2000 6:50 PM
> Subject: Comp14 mail group
>
> > We just created the comp14 mail group. We will be CCing answers to each
> > of your questions to this alias, so that we do not have to repeat them.
>>
> > Feel free to use this mail group to communicate among yourselves - it is
> > possible some questions, specialy about installing the software, will
> > best be answered by some student who has a similar software
> > configuration.
>>
> > Prasun
>>
>>
______________________________________________________________________________________
Subject:
Re:
Date:
Sat, 26 Aug 2000 19:31:23 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Jamie Brantley <brantley@email.unc.edu>
CC:
help14@cs.unc.edu
References:
1
Please read the instructions, specially the *updated ones*. You cannot
wing it by simply using your instuition. Next time you have a problem,
quote the exact lines from the instructions that did not work for you,
and explain what happened.
Prasun
Jamie Brantley wrote:
> After I reach the MS-DOS Prompt and key in
>
> notepad
>
> it takes me to the notepad. Do I type in
>
> SETPATH=%PATH%;C:"/ProgramFiles/MicrosoftVisualStudio/VJ98"
>
> in notepad? If so, how do you make it execute?
>
> J. Brantley
Subject:
Re: question
Date:
Sat, 26 Aug 2000 19:44:54 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Qiong Han <han@cs.unc.edu>
CC:
COMP14_TAs -- Bian Wu <bianwu@cs.unc.edu>,
Stephan Sherman <sherman@cs.unc.edu>, help14@cs.unc.edu
References:
1
The programs must be tested on on some test data. In general, you (the TAs)
need to come up with a grading sheet in which you specify what data you will test, the
LAs will check tthat the test data works and give the scores to you, and then you
will look at the source code for variale names etc. In this assignment, you can
ignore style but in later ones you will take points off, so if the program works,
they get full points - but do point out the style problems.
I have not heard from most of the LAs and many of the TAs. I assume yiou are all
settling in. I need to hear from all you TAs about office hours by Monday, and
you need to decide about grading sheet by then. Also, until the LAs get settled in,
you may also have to do the correctness grading. Ask the students in your
recitation to give you labelled disks before thursday (ideally they should bring
them to your office hours, but they could put them in your mailbox)h and you can
execute their code in front of them (preferably) or later.
Prasun
Qiong Han wrote:
> is it ok if we just record whether it's finished or not for this frist
> assignment? i think it kind of warming up?
> qiong.
>
> > Well that is what the updated instructions said. Maybe it was a bad idea to
> > go the MS DOS prompt way; we would have gone to J++ directly. I wanted them
> > to directly invoke the compiler and interpreter.
>>
> > You guys need to decide on how the assignment is to be graded. I have had an
> > inquiry already.
>>
> > Prasun
Subject:
Re:
Date:
Sat, 26 Aug 2000 20:32:36 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Hwi-Man Chung <chungh@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Hwi-Man Chung wrote:
> Dr. Dewan
>
> I did everthing following your guide from troubleshooting jvc and
> jview.
> jvc ABMICalculator.java works and jview works, but if I type
> jview bus.uigen.ObjectEditor, it does not work.
> Only jview bus.uigen.ObjectEditor command does not work.
>
> I checked the all paths and spells from notepad c:\autoexec.bat,
> everything is correct
> What else should I do?
>
> Hwi-Man Chung
> Ph.D. Student
> School of Journalism and Mass Communication
> University of North Carolina at Chapel Hill
> email: chungh@email.unc.edu
> tel: 919-969-1507
> homepage: http://www.unc.edu/~chungh/
This means your class path is giving problems, but yout path is right.
Execute the command:
set
in the MS-DOS window to check that the class path is what is specified
in the autoexec file.
The class path is a list of semicolon separated files.
Check that each file on the class path exists and is of the right size
by executing the dir command in the MS DOS window. For instance, if your
classpath has the file: D:\java\lib\oe.jar, execute the command:
dir D:\java\lib\oe.jar
Subject:
Re: Where are we supposed to get the roster for our session?
Date:
Sun, 27 Aug 2000 14:36:27 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Qiong Han <han@cs.unc.edu>
CC:
help14@cs.unc.edu
References:
1
I have the lists for each section in my office. Collect them from me on
Monday.
Prasun
Qiong Han wrote:
> This is gonna be the last question for today :)
>
> -Qiong("Chiong") Han
> -Sitterson Hall Rm 034, UNC @ Chapel Hill
> -Phone#: (O)919-962-1709 (H)919-968-4758
Subject:
Re: Fractions
Date:
Sun, 27 Aug 2000 14:40:30 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
adam-shupe@excite.com
CC:
help14@cs.unc.edu
References:
1
Adam Shupe wrote:
> Professor Dewan,
> I've gotten everything to work, believe it or not. ObjectEditor came
> up fine after a while. The Document you sent helped a lot. I only
> have one question...
> My code goes as follows:
> public class ATemperatureConverter
>{
> public double fahrenheit(double cent)
> {
>
return(cent * (9/5) + 32);
> }
>}
> While this code runs without any errors in the compiler, when I
> actually run it, it doesn't register the "*(9/5)" part of the
> function.
> For instance, if I was to enter "30" as cent, I would receive 62, or
> 30 + 32. I ran the function numerous times, in many different forms.
> But each time, I would only get an addition of 32.
> Not until I actually put "1.8" into the function instead of "9/5"
> did the function actually work as its supposed to.
> So, does the OE have a problem with fractions or something? Why
> wouldn't it accept it at first?
> Since you might not want to put this email on the group discussion,
> since it kinda spoils the code, my email is adam-shupe@excite.com, if
> you wanna just send it straight to me.
> Thanks for your help,
> Adam
>
> _______________________________________________________
> Say Bye to Slow Internet!
> http://www.home.com/xinbox/signup.html
Try (cent*9)/5 + 32
which ie the same as:
cent*9/5 + 32
It is not ObjectEditor but Java that does the rounding up. You will
understand this better when we study expressions.
I am glad you got it all working and the document helped.
Prasun
Subject:
Re:
Date:
Sun, 27 Aug 2000 14:46:18 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Brian Buckley <bbuckley@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Brian Buckley wrote:
> i am having a similar problem, except that it is the jvc that i can not get
> working. jview is associated fine, but jvc is not. i have actually
> finished the assignment, so i know that it works, but typing in the entire
> path rather than just jvc is a pain. i added the line to my autoexec.bat as
> it appears in the class notes, but for some reason when i run SET
> c:\*.*\vj98 doesn't appear. any ideas?
> brian
>
>>
> > Hwi-Man Chung wrote:
>>
> > > Dr. Dewan
>>>
> > > I did everthing following your guide from troubleshooting jvc and
> > > jview.
> > > jvc ABMICalculator.java works and jview works, but if I type
> > > jview bus.uigen.ObjectEditor, it does not work.
> > > Only jview bus.uigen.ObjectEditor command does not work.
>>>
> > > I checked the all paths and spells from notepad c:\autoexec.bat,
> > > everything is correct
> > > What else should I do?
>>>
> > > Hwi-Man Chung
> > > Ph.D. Student
> > > School of Journalism and Mass Communication
> > > University of North Carolina at Chapel Hill
> > > email: chungh@email.unc.edu
> > > tel: 919-969-1507
> > > homepage: http://www.unc.edu/~chungh/
>>
> > This means your class path is giving problems, but yout path is right.
>>
>>
> > Execute the command:
>>
> > set
>>
> > in the MS-DOS window to check that the class path is what is specified
> > in the autoexec file.
>>
> > The class path is a list of semicolon separated files.
>>
> > Check that each file on the class path exists and is of the right size
> > by executing the dir command in the MS DOS window. For instance, if your
> > classpath has the file: D:\java\lib\oe.jar, execute the command:
>>
> > dir D:\java\lib\oe.jar
>>
>>
>>
>
> -- End original message -Your path is not set correctly - be sure you put the quotes and rebooted the
computer. Try the dir comand also.
Subject:
Re:
Date:
Sun, 27 Aug 2000 14:47:04 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
nhuner <nhuner@email.msn.com>
CC:
comp14@cs.unc.edu
References:
1
The instructions will be posted on the web before the assignment due date.
nhuner wrote:
Does anyone know how do we have to return our assignments? on the paper? notepad file? or .class
file?via
e-mail? Hasmet Uner
Subject:
Re: swingall file
Date:
Sun, 27 Aug 2000 14:54:24 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
DANIEL SERRANO <dserrano@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
For anyone having problems with downloading the files, go to the office hours
of one of us (or a class mate who who has downloaded them) with a zip disk
and we will download the files to it. Unfortunately, the ATN machines do not
have zip disks.
If you are having computer problems in genetral, you will have to use the ATN
machines. We are trying our best to help you set the software on your
computers, but there can be computer-specific problems we cannot solve given
the time constraints. If you use the Venable labs, you have the added benefit
that LAs will be manning them as soon as they get settled into the semester.
Prasun
DANIEL SERRANO wrote:
> Hey folks, I sent this message out earlier, recieved a response, and then
> atn sent it back to me saying there was an error in the message. So, if
> you've seen this already ignore. I'm having trouble downloading the
> swingall file from the oe site. If your suggestions include:
> talking to atn, saving to the a drive, using the proxy server to download
> to email where it can be transfered to a disk or the hard drive, or
> emailing a TA, don't bother, they have all been tried, and failed. Any
> other suggestions would be welcome.
> thanks,
> daniel
Subject:
Re: comp 14
Date:
Sun, 27 Aug 2000 20:28:21 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Nicole Feldl <nfeldl@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Nicole Feldl wrote:
> Dr. Dewan--
> Hello. I think I've successfully completed assignment 1, however some of
> the steps i had to use to get the thing to work were not exactly as stated
> in chapter 2. So even though my assignment works, i wanted to check with
> you to see if the slightly different commands i used are acceptable, or
> if i need to fix things.
> First of all, I worked in an ATN lab, and I'm pretty sure all the paths
> and classpaths were set up correctly.
> Secondly, I worked off a 3.5disk, so at first i thought i was running into
> problems because i was doing a lot of switching back and forth between
> directories.
>
> When I went to use ObjectEditor, the only way I could get it to work was:
>
> a:\java\fahrenheit> c:\winnt\jview bus.uigen.ObjectEditor
>
> The folder fahrenheit contains my source code and object code of
> the class. C:\winnt was a directory I found on the ATN computer I used
> that had an application "jview" in it. If I left out the c:\winnt part of
> the command, object editor would not work. If i was in the c:\winnt\
> directory (instead of a:\) to run object editor, it couldn't find my
> ATemperatureConverter.class
>
> Did I do okay or have i just made things really messy? If it's the latter,
> do you have any suggestions on what i need to fix?
>
> Nicole Feldl
Did you use the 14 MS-DOS Prompt or the regular MS-DOS prompt. I suspect the
latter - you must have run "command" directly. Read the assignment on how to
access the fotrmer. If you ran the former, please let me know in which lab
this happened and we will check it.
Prasun
Subject:
Re: BABY STEPS TO PROGRAMMING
Date:
Sun, 27 Aug 2000 20:29:51 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
John Shaulis <tarchin@email.unc.edu>
CC:
Comp14 <comp14@cs.unc.edu>
References:
1
John Shaulis wrote:
> Dear fellow students, here is the problem:
>
> using my own computer
>
> installed the 3 downloadable and one pkg of software
>
> stored them on my c drive
>
> created the lib as discussed in Professor Dewan's email
>
> attempting to set the Path and Classpath
>
> problem
>
>
when trying to enter the following
>
SET PATH=%PATH%;C:"\Cc\Microsoft Visual Studio\VJ98"
>
>
I end up with an error msg - too many parameters
>
> Suggestions.
>
> Thanks. Sincerely, Chin
>
> LCDR JOHN "CHIN" SHAULIS
> UNC Naval ROTC
> Chapel Hill, NC
> Assistant Professor of Naval Science
> 919-843-9279
> fax/962-0105
I suspect you entered the set command directly in the MS-DOS window as
opposed to entering it in the autoexec file, as the instructions asked.
Subject:
Re: anybody seen this error message:
Date:
Sun, 27 Aug 2000 20:33:20 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Brian Thomas <bthomas@email.unc.edu>
CC:
help14@cs.unc.edu
References:
1
What is the exact argument you give to jvc? Does jvc run without an
argument?
Prasun
Brian Thomas wrote:
> I get the following from my dos promtp when i try to
> compile: java.lang.ClassFormatError
>
> I'm not sure how to get around this.
>
> brian thomas
Subject:
Re: Java stuff for other OS's
Date:
Sun, 27 Aug 2000 20:34:54 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Erik Severinghaus <ezs@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Assuming you can download Java (1.1) from the sun site, the instructions in
chapter 2 do talk a bit about how to use Unix systems. I would not
recommend it, because the J++ editor is really nice.
Prasun
Erik Severinghaus wrote:
> Does anyone have any recommendations for doing the java programming on
> Linux/*BSD? I'll probably install the J++ stuff to be on the safe side,
> but I would *really* hate to reboot just to code. I'll probably just
> download all of 'em and try them all out, but if anyone has
> recommendations, it would be very much appreciated.
>
> Erik
Subject:
Re:
Date:
Sun, 27 Aug 2000 20:52:59 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Yu Xue <yxue@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Yu Xue wrote:
> Hello, Dr. Dewan:
>
> I am not sure if we will use integer as input and output because the
> result is not correct if we use integer, Ithink it is better to use
> double.
> Thanks
>
> yuxue
Yes double is more precise, but integer provides rounding off.. So use
integer,as the assignment requires
Subject:
Re: lots of questions
Date:
Fri, 25 Aug 2000 16:10:32 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
Organization:
University of North Carolina
To:
iamhisbeloved@lycos.com
CC:
help14@cs.unc.edu
References:
1
Erin Gubitz wrote:
> I need help. I know how the program should be written, but I have no idea how
to access the ObjectEditor to check it. I tried to follow what the notes said,
but my computer can't find the files I specify. I downloaded the files, but
perhaps they're in the wrong place? Is there anyway that I can get
In which directory did you download the files? You can use the find command to
figure that out. Make sure it is consistent with what you put in the auoexec
file.
I have updated the notes - the instructions may be more clear to you now.
I dont think you are going to be able to find help this late on a firday evening.
You will have plenty of time next week to fix this problem.
> someone to look at my computer? I know you've said it, but where should I go to
get help?
> Thank you.
> Erin Gubitz
>
> Get your FREE Email and Voicemail at Lycos Communications at
> http://comm.lycos.com
Subject:
Re: Assignment #1- Question
Date:
Sun, 27 Aug 2000 23:50:47 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Scott Hackworth <hackwort@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Scott Hackworth wrote:
Hi. I'm Scott Hackworth and this is my first computer class. I'm trying very hard to follow the directions
in the
notes for our assignment but it is not working. Specifically, when I bring up MS-DOS Prompt and type in
notepadC:\autoexec.bat it says bad command or file name? Since this hasn't worked I haven't been able to
continue. What should I do? I have Jplusplus and the objecteditor files installed. Thanks for your time, I
know
this is probably really easy stuff but I have never been exposed to it before. Thanks again bye!
There should be a space between notepad and C:\autoexec.bat.
Subject:
Re: Suggestion for classnotes: 2Objects.doc
Date:
Sun, 27 Aug 2000 23:56:41 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
Chris Lin <chrisl@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Chris Lin wrote:
> Professor Dewan,
>
> I have a suggestion for your class notes on chapter 2, on the "Program
> Development" section of the notes.
>
> I don't think the notes state clearly enough that the class name in the
> .java program itself must be the exact same, in spelling and case, as the
> name of the file. I wrote the homework assignment with the class name
> ATemperatureConverter and saved it as tempconvert.java and had to look
> more closely at the notes before I realized the names must be identical.
>
> May I suggest adding an image such as this:
>
> www.unc.edu/~chrisl/compare.jpg
>
> in order to clarify the importance of identical class names.
>
> Chris Lin
> chris.lin@unc.edu
That is a very useful picture! For those of you who have not completed the
assignment, please have a look at it.
Prasun
Subject:
Re: downloading
Date:
Sun, 27 Aug 2000 23:57:04 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
To:
july <july@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
july wrote:
> Everytime I attempt to download the object editor and swingall files , I
> get a message that the files have been successfully downloaded but
> whenever I attempt to open these files from the specified discs on which
> they have been saved they are non-existent, what is wrong here.
Use the find command to locate them.
Subject:
Re:
Date:
Mon, 28 Aug 2000 12:04:43 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
Organization:
University of North Carolina
To:
Briana <bozolins@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
Briana wrote:
> Hi - I'm having a slight problem, just like everyone else. I get as far
> as the
>
>
jview bus.uigen.ObjectEditor
>
> command. The first window of the Object Editor comes up but when I
> enter "ATemperatureConverter" as the Current Class Name, and go to "New"
> in the Object Editor menu, the following is displayed:
>
>
ClassNotFoundException: ATemperatureConverter.
I assume that the . at the end of the message was not part of the error
message, otherwise you entered a spurious . as part of the current class
name
>
>
> I've gone back and checked my source code and file names. Everything
> seems to be in order. I don't know what I'm doing wrong.
>
> Briana Ozolins
This means the object file does not exist. You may have forgotten to execute
the jvc command. Before executing the jview command, execute the command:
dir ATemperatureConverter.class
The command will probaly say file not found. Execute dir to see what files
you do have in that directory.
Subject:
Re:
Date:
Mon, 28 Aug 2000 12:00:03 -0400
From:
"Prasun Dewan" <dewan@cs.unc.edu>
Organization:
University of North Carolina
To:
Brian Buckley <bbuckley@email.unc.edu>
CC:
comp14@cs.unc.edu
References:
1
That should not happen. If you have a laptop, come by during office hours and we
can try
to fix this problem. In the meantime, cd to the directory in which jvc is and
work from
there, creating your assignment in that directory.
Prasun
Brian Buckley wrote:
>>>
Ok, after reading some other posts and talking to some of my
classmates, it
> > > seems that some of us are having a problem setting the jvc path...i have it
> > > EXACTLY as it appears in the class notes, but it still does not work
> > > yes, i have the quotes
>>
> > in the autoexec file?
>
>
Yep
>
>
> > what does appear for path and classpath.
>
classpath works fine when i type set the following appears:
> classpath= ;D:\java\lib\oe.jar;d:\java\lib\shapes.jar;d:\java\lib\swingall.jar
> path on the otherhand has all my regular stuff and that's it
> here is EXACTLY what i have typed in the autoexec
> set path=%path%;c:"\program files\microsoft visual studio\vj98"
> i'm not sure i understand what the quotes are for...i have experimented with
them and
> tried leaving them out all together, all to no avail.
> here is what appears with SET:
>
path=c:\windows;c:\windows\command;c:\windows;c:\windowsd\command;f:\windows;f:\window
> s\command;c:\dos
> again, classpath works fine.
>b
______________________________________________________________________________________
Subject:
Re: your mail
Date:
Fri, 25 Aug 2000 17:51:42 -0400 (EDT)
From:
"Qiong Han" <han@cs.unc.edu>
To:
amy <aspruill@email.unc.edu>
CC:
help14@cs.unc.edu
Hi, you need all the .jar files to set-up the CLASSPATH environment. say,
you download these three files in some certain directory, and execute this
line
SET
CLASSPATH=%CLASSPATH%;.;?:\???\oe.jar;?:\???\shapes.jar;?:\???\Java\lib\
swingall.jar
?:\??? stands for the certain directory you put these 3 files in. For more
details, see prof.Prasun's slide 2, page 19.
You can also add this line to your autoexec.bat file(which is under the
root directory of your c drive). Then you don't need to execute this line
every time you start your computer.
> what are we suppose to use to download the ObjectEditor files? i
> remember that we were not suppose to use Netscape Navigator, but i can
> not remember what we were to use. thanks, amy spruill
>
>
>
______________________________________________________________________________________
Subject:
When you set the PATH & CLASSPATH,
Date:
Sat, 26 Aug 2000 11:55:18 -0400 (EDT)
From:
"Qiong Han" <han@cs.unc.edu>
To:
help14@cs.unc.edu
make sure you "tell" the computer the exact directory on your own
computer, instead of the path or directories prof.Prasun used in his
slides. That's just an example. good luck.
-Qiong("Chiong") Han
-Sitterson Hall Rm 034, UNC @ Chapel Hill
-Phone#: (O)919-962-1709 (H)919-968-4758
__________________________________________________________________________________
Subject:
Re: your mail
Date:
Sat, 26 Aug 2000 17:49:08 -0400 (EDT)
From:
"Qiong Han" <han@cs.unc.edu>
To:
Jamie Brantley <brantley@email.unc.edu>
CC:
help14@cs.unc.edu, comp14@cs.unc.edu
yes, it's a bad command because actually this line contains two commands,
c:\autoexec.bat
notepad c:\autoexec.bat (notepad is a command, and c:\autoexec.bat is the
file to be edited by it)
one command in one line please, this is the way in DOS. and i guess you
need to use "notepad" to edit the c:\autoexec.bat first before you execute
it.
> I clicked the START menu, clicked RUN, and typed command. Then, I was
> able to access the MS-DOS Prompt screen, but when I typed in
> C:/autoexec.bat:notepadC:/autoexec.bat
> it states that this is a bad command or file name.
>
> What am I doing wrong?
>
> J. Brantley
>
>
>
>
>
________________________________________________________________________________
Subject:
Re: Assignment #1-Question
Date:
Sun, 27 Aug 2000 23:47:33 -0400 (EDT)
From:
"Qiong Han" <han@cs.unc.edu>
To:
Scott Hackworth <hackwort@email.unc.edu>
CC:
comp14@cs.unc.edu
hi Scott,
notepad is a single command, so you need to use it like
notepad c:\autoexec.bat
instead of notepadc:\auteoxec.bat
so
notepad is the command and c:\autoexec.bat is the file you want to edit
with notepad, good luck.
> Hi. I'm Scott Hackworth and this is my first computer class. I'm trying very
hard to follow the directions in the notes for our assignment but it is not
working. Specifically, when I bring up MS-DOS Prompt and type in
notepadC:\autoexec.bat it says bad command or file name? Since this hasn't worked
I haven't been able to continue. What should I do? I have Jplusplus and the
objecteditor files installed. Thanks for your time, I know this is probably
really easy stuff but I have never been exposed to it before. Thanks again bye!
>
Subject:
Re: downloading
Date:
Sun, 27 Aug 2000 23:48:15 -0400 (EDT)
From:
"Qiong Han" <han@cs.unc.edu>
To:
july <july@email.unc.edu>
CC:
comp14@cs.unc.edu
did you try to use the right button on the link of the downloadable files
and choose "save as", then you can determine where to put them. good luck.
-Qiong("Chiong") Han
-Sitterson Hall Rm 034, UNC @ Chapel Hill
-Phone#: (O)919-962-1709 (H)919-968-4758
Download