 | |
11-26-2003, 08:39 AM
|
#1 (permalink)
| | Registered User
Join Date: Aug 2003 Location: Coeur D' Alene,Idaho
Posts: 1,426
| » 
Java Help PLZ
I don't know what I'm doing wrong. I'm a newbe at this and I downloaded a tutorial but I can't get the HelloWorldApp.java to work....lol how sad. I go to my command prompt and type in what it says and this is what i get....pic below...The system cannot find the path specified. I save my HelloWorldApp.java on the C: so it should work i guess but it won't. Then if I hit dir for C: it shows that my file is there it just won't run it. Help plz I really want to figure this out. TY
|
| |
11-26-2003, 08:44 AM
|
#2 (permalink)
| | Registered User
Join Date: Mar 2002 Location: Ft. Walton Beach, FL
Posts: 4,056
|
You're typing in javac HelloWorldApp.java and getting that error?
Just making sure you're getting it 100% correct.
Did you download/install the Java Platform?
Also, did you update your path variable?
It's been a little while since I've taken Java, but those are the basic beginner errors...
Last edited by Martoch; 11-26-2003 at 08:49 AM.
|
| |
11-26-2003, 08:49 AM
|
#3 (permalink)
| | Registered User
Join Date: Aug 2003 Location: Coeur D' Alene,Idaho
Posts: 1,426
|
I was just looking at that but i'm confused on what to do. The path they give on the variable isn't the same path as mine. Just put my path in??
__________________
http://www.speakeasy.org/~blakbas/Mitatron.JPG
|
| |
11-26-2003, 08:51 AM
|
#4 (permalink)
| | Registered User
Join Date: Mar 2002 Location: Ft. Walton Beach, FL
Posts: 4,056
|
It should look like my attachment...I'm using XP Pro.
|
| |
11-26-2003, 08:59 AM
|
#5 (permalink)
| | Registered User
Join Date: Aug 2003 Location: Coeur D' Alene,Idaho
Posts: 1,426
|
K got that but now what?? I tried cd C:\java and it still won't let me get there. In the tutorial it says to go there then type dir so that u can see that your file is there. I try to run javac HelloWorldApp.java and I put in the .exe path but it says a dll is missing :0(
__________________
http://www.speakeasy.org/~blakbas/Mitatron.JPG
|
| |
11-26-2003, 09:00 AM
|
#6 (permalink)
| | Registered User
Join Date: Mar 2002 Location: Ft. Walton Beach, FL
Posts: 4,056
|
In the pic, you're showing C:\ right?
If that's the case, DO NOT go to cd java, that was only where they saved the file in the example. If you have it saved under C:\, simply go there and type javac HelloWorldApp.java.
Don't go to any subfolders.
However, it IS much easier to create a folder called JAVA under C:\, move your downloaded file there and browse to it from dos.
I'm going to post up a pic in a minute to show you exactly what I mean, k?
|
| |
11-26-2003, 09:02 AM
|
#7 (permalink)
| | Registered User
Join Date: Aug 2003 Location: Coeur D' Alene,Idaho
Posts: 1,426
|
Woohoo I got it to work!!! Hurray for me lol
__________________
http://www.speakeasy.org/~blakbas/Mitatron.JPG
|
| |
11-26-2003, 09:05 AM
|
#8 (permalink)
| | Registered User
Join Date: Mar 2002 Location: Ft. Walton Beach, FL
Posts: 4,056
|
Yay!
Well, I guess I'm too late...but here's the easiest way to do it.
Also, rather than typing in cd.. twice, you can simply type in cd\ to take you straight to C:\
|
| |
11-26-2003, 09:07 AM
|
#9 (permalink)
| | Registered User
Join Date: Aug 2003 Location: Coeur D' Alene,Idaho
Posts: 1,426
|
lol got a new problem. It won't show up in the applet viewer
|
| |
11-26-2003, 09:10 AM
|
#10 (permalink)
| | Registered User
Join Date: Mar 2002 Location: Ft. Walton Beach, FL
Posts: 4,056
|
You're not running an applet, you're running an application...html files are used to run applets. After you type javac HelloWorldApp.java, type in the following:
java HelloWorldApp
Hmm...well maybe you are trying to run the applet...did you create your html file?
You're mixing both the application and the applet together...the HelloWorldApp file is for the application, the HelloWorld file is for the applet. You've got to pick one or the other.
Last edited by Martoch; 11-26-2003 at 09:13 AM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions  | | | | | Recent Discussions  | | | | | |