Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


JAVA problem....

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
EliteLuver
Cheater
Reputation: 0

Joined: 08 Jul 2007
Posts: 49
Location: Floating on that one cloud...

PostPosted: Tue Sep 04, 2007 9:16 pm    Post subject: JAVA problem.... Reply with quote

..So ima nub and I'm trying to learn Java.
I know I'm starting out with a hard language, but I think I can take it.


But so I make the "Hello World" application in Notepad.

Then, I go into Cmd prompt, and try to compile it using the "Javac HelloWorld.java" command


IT DONT BE WORKIN PEEPLES!

So if you guys could help me, with a STEP BY STEP guide, thanks.

_________________
Back to top
View user's profile Send private message AIM Address
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Sep 04, 2007 9:20 pm    Post subject: Reply with quote

cd "file path"
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Sep 04, 2007 9:23 pm    Post subject: Reply with quote

YOU NEED TO BE MORE SPECIFIC THAN "IT DOES NOT WORK"
Back to top
View user's profile Send private message
EliteLuver
Cheater
Reputation: 0

Joined: 08 Jul 2007
Posts: 49
Location: Floating on that one cloud...

PostPosted: Tue Sep 04, 2007 9:23 pm    Post subject: Reply with quote

1 sec.


oh and appal - I dont think we've met. I'm AJ.

Im usually on the Runescape forums or the fagex forums...

But, uh, nice to meet you?




Ok, I enter the following:

Code:

public class HelloWorld
{
    public static void main( String[] args )
    {
        System.out.println( "Hello world" );
    }
}


Then, i save it as a .java file.
I go into CMD Prompt, and type "cd desktop"
Then, I type in "javac HelloWorld.java"

_________________
Back to top
View user's profile Send private message AIM Address
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Tue Sep 04, 2007 9:30 pm    Post subject: Reply with quote

And the error you receive is?
_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
EliteLuver
Cheater
Reputation: 0

Joined: 08 Jul 2007
Posts: 49
Location: Floating on that one cloud...

PostPosted: Tue Sep 04, 2007 9:34 pm    Post subject: Reply with quote

'javac' is not recognized as an internal or external command, operable program or batch file."

Same thing as if you typed in askl;dghlkfhfd as a command.

_________________
Back to top
View user's profile Send private message AIM Address
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Sep 04, 2007 9:58 pm    Post subject: Reply with quote

cd "C:\Documents and Settings\%username%\Desktop"

Javac HelloWorld.java

If it still doesn't work, I suggest putting it in the folder where your java compiler is. Then changing directories to there and trying to use "Javac HelloWorld.java"

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Programmer
Cheater
Reputation: 0

Joined: 02 Sep 2007
Posts: 48

PostPosted: Wed Sep 05, 2007 4:56 am    Post subject: Reply with quote

Put it in the same folder as javac and try again -_-.
_________________
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Wed Sep 05, 2007 7:57 am    Post subject: Reply with quote

Programmer wrote:
Put it in the same folder as javac and try again -_-.


Exactly what he said, or navigate to your javac path and point to the directory of your file;

command C:\path\path\file.extension

It's not recognising your javac as a program since it's not in the directory of your code (or in the system directory)

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Sep 05, 2007 8:10 am    Post subject: Reply with quote

or

winkey+pause/break -> advanced -> environment variables -> PATH

add the directory where javac resides to path (paths are seperated by semicolons); now you can use javac from anywhere.
Back to top
View user's profile Send private message
EliteLuver
Cheater
Reputation: 0

Joined: 08 Jul 2007
Posts: 49
Location: Floating on that one cloud...

PostPosted: Wed Sep 05, 2007 3:33 pm    Post subject: Reply with quote

Actually -

I fixed the problem (I think...)

WITH THE ALMIGHTY TEXTPAD!

_________________
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites