Michelle Suschinsky

+ Follow
since May 03, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michelle Suschinsky

Hi - I want to use EditPlus to write my java, compile and test in a browser, but I am unsure as to how to configure it. Does anyone have any familiarity with this? Can you help - please?? I need the specific arguments like is it $(FileName) etc.. I am working on a Windows2000 platform.

Thanks in advance..

Tobias and Gregg,
Thanks so much for your help and explanations. I've printed out most of what I've learned here today so that I can re-read and digest. I see what you mean (Tobias) about making my directory at the root level and leaving it at that.
My teacher last year was certainly a programming genius - the problem was that the rest of the class was NOT. Also, the school provided the computers where all the java and other programs (Oracle databases and etc) had been previously installed, so fat chance on learning how to do that as part of the course. I understand that they were trying to save time, but a morning of being led through it back then would have saved me a boatload of confusion today.
I thank EVERYONE for their time and thoughts and responses! It's nice to know there's a friendly corner of the world where one can come to get a few questions answered and explained. I'm sure you'll be hearing from me again (possibly tonight )
[ April 21, 2004: Message edited by: Michelle Suschinsky ]
18 years ago
Hi Tobias,
I also see what you mean about the file not needing to be in the "bin" directory along with the javac executable. I could still SWEAR that when I took the java class last year, the Nutty Professor had us saving files at the root level in a "java" folder and in the DOS window, we would simply change directory to C.
I'm confused. I'm still in my pajamas. It's been a long day....
Michelle D.
18 years ago
Hi Tobias!
I'm sorry to be dense - please define log and also console (session).
However, if you're referring to what I'm doing at the DOS window, which is at this prompt when I open it: "C:\Documents and Settings\Michelle>"
If I'm trying to compile without changing the environmental variables, I change directory all the way down to "bin" sub-directory like this:
cd c:\j2sdkk1.4.2_04\bin and press ENTER....
Then I type "javac hello.java" and the file compiles.
Then I type "java hello" and the program runs. YEAH!
However, if I'm trying to see if I've set the PATH and CLASSPATH environmental variables correctly, I type this at the DOS prompt:
C:\Docs and Settings\Michelle>cd c:\
Which gives me the root C directory, and I type "javac hello.java" and get the error message. PHEW!
Should I send you what I'm doing in the environmental variables? Because it's the only place I can think of that's generating this problem.
Thanks in advance for your help.
Michelle D.
18 years ago
Hi Tobias,
Check my original message. I SWEAR that those are all the steps and that is the EXACT wording of the error message. The file is in the "bin' sub-directory, as is the JAVAC executable.
Does it have something to do with the fact that I'm working on a Windows XP Professional machine? I'm grasping at straws here...
I've tried moving the file around and still got the same error message. I tried DELETING the .java file and got the same message. Cross my heart and hope to die....It's puzzling, isn't it?!
Thanks for your thoughts!
Michelle D.
18 years ago
Hi guys!
Ok, I went in to control panel --> system --> advanced --> enviromental variables and added the java directory (j2sdk1.4.2_04) to the existing path command. I also added the CLASSPATH command. I get the previous error message....
Soooo, at least I have figured out how to compile a program - but I would DEARLY love to know why I can't add the PATH and CLASSPATH and get it to compile.
I did find a javac.exe attached to another program (DREAMWEAVER MX). However, that path is NOT specified in the environmental variables area.
There's also something called javac.exe-28d787113.pf in a WINDOWS\Prefetch directory. Anyone ever heard anything like that.
Arg! And thanks a bunch!
Michelle D.
18 years ago
Well, yay! First success! I reinstalled everything and re-wrote the hello.java program. Then, I went straight to the command prompt and changed my directory all the way to c:\j2sdk1.4.2_04\bin. When I achieved this (which surprised the daylights outta me!), I typed "javac hello.java" at the prompt. NO ERROR MESSAGE! Whoohooo!
I then typed "java hello" and my program ran! YIPPEEE!! Thanks you guys!
But - that's just the battle - not the war. I want to set the path in the environmental variables. I'll check back as that progresses (hopefully more success!
THANKS GUYS! More later!
Michelle D.
18 years ago
Hi Greg,
I have tried what you suggested - but am going to try it again. I've just uninstalled the whole shebang and am going to re-install and re-write the hello world program.
I'll also check for that additional javac now before I reinstall anything.
Thanks for your input. I'll report back any results.

Michelle D.
18 years ago

Originally posted by Antoine Waugh:
this may be a stupid quetion, but is your class name the same as the files name?
unline c and other languages that create an executable.. java insists that there is ONE public class per file, and that class name (case sensitive) is the filename
so you MUST have
class Hello
for it to be called Hello.java
otherwise there will be an error..
and if in your c:\java....\bin directory, and you type 'dir' is hello.java listed?
[ April 21, 2004: Message edited by: Antoine Waugh ]

No, not a stupid question. I've checked that several times. The program reads....
"public class hello...." (in lower-case, also)
and the file is named "hello.java" It is saved in the "bin" sub-directory.
The file shows up when I check the j2sdk1.4.2_04 directory at the command prompt.
(small piles of pulled-out hair surrounding my computer chair...)
Thanks again!
Michelle D.
18 years ago

Originally posted by Antoine Waugh:
out of curiosity, if your in the cmd and type:
cd C:\J2SDK1.4.2_04\BIN
then javac hello.java
does it compile?

You read my mind. See my other reply (above).
18 years ago

Originally posted by Antoine Waugh:
is it possible your not in the same directory as your hello.java file?
cd c:\whatever...\bin\
javac hello.java
java hello

Antoine -
I thought that was the whole idea of setting the PATH in the Environmental Variables. I also tried specifying the path at the DOS prompt, like this:
C> \j2sdk1.4.2_04\bin\javac hello.java
and got the same error message. The file is definitely in the "bin" sub-directory of the j2sdk1.4.2_04 folder on my C drive. Should it (the bin directory or the java file itself) be someplace else?
If I can't get the thing running, I certainly don't hold out much hope for rekindling the programming part of my brain. (sigh).
Thanks for any help!
Michelle D.
18 years ago
Hi everyone!
I took a java course last year and, of course, have forgotten almost every bit of it. Well, I'm inspired to hit the books once again and see if I can rekindle some of the old java-magic in my brain. My problem is that I can't get the PATH and CLASSPATH issues resolved on my Win XP Pro computer. (different computer than the one I had when I took the class)
Here's my steps so far:
1) downloaded and installed j2sdk1.4.2_04. Installed in the C directory. Javac and all other executables are in the "bin" sub-directory.
2) Wrote a "Hello World" program in Notepad - saved as "hello.java" - there is no .txt extension (good!). The file is also in the "bin" subdirectory.
3)According to my Course Technology textbook (by Joyce Farrell) - I set the path and classpath this way:
Control Panel --> System --> Advanced --> Enviromental Variables....there was already a PATH command. I added "C:\J2SDK1.4.2_04\BIN;.;" to the end of the PATH. I have since moved this to the beginning of that line - to no avail.
4) Again, according to the Farrell textbook, I clicked "new" and added a CLASSPATH command with this "C:\J2SDK1.4.2_04\BIN;.;" I then re-started my system.
I opened the command prompt screen and changed the directory to root C. At the C prompt, I type "javac hello.java" and the error message is this:
"error: cannot read: hello java
1 error"
ARGH!!! I've tried this 37 ways in the last day and half. I get the same error message no matter what I try - even if I remove the hello.java file from the "bin"! And because I keep getting the same error message, I'm inclined to think it's got something to do with my settings in PATH and CLASSPATH - or maybe system incompatibility.
Can anyone help me? It's threatening my sanity!
Thanks in advance!
Michelle D (and please forgive me if this post is in the wrong forum!)
18 years ago