»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 11-26-2003, 08:39 AM   #1 (permalink)
Registered User
 
MitaDC's Avatar
 
Join Date: Aug 2003
Location: Coeur D' Alene,Idaho
Posts: 1,426
MitaDC is on a distinguished road
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
Attached Images
File Type: jpg java.jpg (73.4 KB, 24 views)

MitaDC is offline   Reply With Quote
Old 11-26-2003, 08:44 AM   #2 (permalink)
Registered User
 
Martoch's Avatar
 
Join Date: Mar 2002
Location: Ft. Walton Beach, FL
Posts: 4,056
Martoch is on a distinguished road
Send a message via AIM to Martoch
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.
Martoch is offline   Reply With Quote
Old 11-26-2003, 08:49 AM   #3 (permalink)
Registered User
 
MitaDC's Avatar
 
Join Date: Aug 2003
Location: Coeur D' Alene,Idaho
Posts: 1,426
MitaDC is on a distinguished road
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
MitaDC is offline   Reply With Quote
Old 11-26-2003, 08:51 AM   #4 (permalink)
Registered User
 
Martoch's Avatar
 
Join Date: Mar 2002
Location: Ft. Walton Beach, FL
Posts: 4,056
Martoch is on a distinguished road
Send a message via AIM to Martoch
It should look like my attachment...I'm using XP Pro.
Attached Images
File Type: jpg path.jpg (47.8 KB, 21 views)
Martoch is offline   Reply With Quote
Old 11-26-2003, 08:59 AM   #5 (permalink)
Registered User
 
MitaDC's Avatar
 
Join Date: Aug 2003
Location: Coeur D' Alene,Idaho
Posts: 1,426
MitaDC is on a distinguished road
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
MitaDC is offline   Reply With Quote
Old 11-26-2003, 09:00 AM   #6 (permalink)
Registered User
 
Martoch's Avatar
 
Join Date: Mar 2002
Location: Ft. Walton Beach, FL
Posts: 4,056
Martoch is on a distinguished road
Send a message via AIM to Martoch
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?
Martoch is offline   Reply With Quote
Old 11-26-2003, 09:02 AM   #7 (permalink)
Registered User
 
MitaDC's Avatar
 
Join Date: Aug 2003
Location: Coeur D' Alene,Idaho
Posts: 1,426
MitaDC is on a distinguished road
Woohoo I got it to work!!! Hurray for me lol
__________________
http://www.speakeasy.org/~blakbas/Mitatron.JPG
MitaDC is offline   Reply With Quote
Old 11-26-2003, 09:05 AM   #8 (permalink)
Registered User
 
Martoch's Avatar
 
Join Date: Mar 2002
Location: Ft. Walton Beach, FL
Posts: 4,056
Martoch is on a distinguished road
Send a message via AIM to Martoch
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:\
Martoch is offline   Reply With Quote
Old 11-26-2003, 09:07 AM   #9 (permalink)
Registered User
 
MitaDC's Avatar
 
Join Date: Aug 2003
Location: Coeur D' Alene,Idaho
Posts: 1,426
MitaDC is on a distinguished road
lol got a new problem. It won't show up in the applet viewer
Attached Images
File Type: jpg javano.jpg (63.6 KB, 18 views)
MitaDC is offline   Reply With Quote
Old 11-26-2003, 09:10 AM   #10 (permalink)
Registered User
 
Martoch's Avatar
 
Join Date: Mar 2002
Location: Ft. Walton Beach, FL
Posts: 4,056
Martoch is on a distinguished road
Send a message via AIM to Martoch
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.
Martoch is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:56 PM.