Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Very First Thing To learn?
Index -> Programming, Java -> Java Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Kyle




PostPosted: Wed Jun 29, 2005 10:11 pm   Post subject: (No subject)

hmm buy comand lines do you mean the command promt..
so it will look like
C:> javac hello world.java
if so when i open comand prompt it says c:/Documents and Settings/Owner>
and the file is on the desktop to so it would be c:/Documents and Settings/Owner>Desktop/javac hello world.java ?? or is there another whay to open this?.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Wed Jun 29, 2005 11:33 pm   Post subject: (No subject)

You'll need to setup the Path environment variable. so you can access java and javac from anywhere. Right now my brain is so dead, that I'll leave it up to someone like rizzix, though.
[Gandalf]




PostPosted: Thu Jun 30, 2005 1:34 am   Post subject: (No subject)

Oh, oh, I know how to do this now. If you are using Windows XP for sure, if something else then maybe. This is what you need to do to change the PATH.

1. Right click on My Computer from the desktop.
2. Select properties.
3. Go to advanced.
4. Click environmental variables.
5. Under system variables select Path
6. Click edit.
7. Add ; and then where you installed Java to. Like if it was C:/Program Files/Java then you would add ;C/Program Files/Java to the end of what is already there. Do not delete what is already there.


A pretty simple Java editor, and I think it comes with a compiler and everything is Crimson Editor. Not sure if its free, you might want to look into it.
Aziz




PostPosted: Thu Jun 30, 2005 9:33 am   Post subject: (No subject)

I good one (the one I use) is JCreator...it's pretty nice, and small file too. Google it up, it's free.

Oh and I might be out of my mind, but did you click the "compile" button before you clicked "run"?
Kyle




PostPosted: Thu Jun 30, 2005 12:20 pm   Post subject: (No subject)

Ok thanks for all your help guys. I downloaded Jcreator and its simple and easy thanks Very Happy Very Happy Very Happy Very Happy . I used the code
code:
/**
 * The HelloWorldApp class implements an application that
 * simply displays "Hello World!" to the standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}

This is the same original code that was giving me the problems in the firs place with Netbeans. So it probly was a setting error on my part. Thanks for the help guys Very HappyVery Happy. Laughing 8) Exclamation
rizzix




PostPosted: Thu Jun 30, 2005 7:17 pm   Post subject: (No subject)

yes.. as i suggested... it's a netbeans project settings issue..

nevertheless wtd and I have been driving the point that all beginners should start out with the command line. not only because it is easier to use for the beginners and that it lacks all the unnecessary complications of some IDE's.. but also, it is infact a necessary requirement to be fimiliar with the basic command line tools for any java programmers (actually any developer of any sort)... seriously if you didn't know how to compile a simple .java files using the standard tools.. well lets just say i'd consider you worse than a noob hehe Very Happy .. so yea.. just... try and get ur self fimiliar with them.. Wink
Kyle




PostPosted: Thu Jun 30, 2005 9:56 pm   Post subject: (No subject)

ok.....
ps im far from a noob. Twisted Evil Very Happy Very Happy Very Happy
Aziz




PostPosted: Fri Jul 01, 2005 12:03 am   Post subject: (No subject)

*noob* I've tried it, about a year ago, then had NetBeans, then got into school so java go byebye. Now I use Jcreator, though Razz I'm sure I could, given about an hour, get the hang of command-line
Sponsor
Sponsor
Sponsor
sponsor
Spartan_117




PostPosted: Fri Jul 08, 2005 12:33 pm   Post subject: (No subject)

this is probably real stupid, or i just missed something , but wut do u guys mean by Command Line?
[Gandalf]




PostPosted: Fri Jul 08, 2005 1:38 pm   Post subject: (No subject)

Ever heard of DOS? It's what you get when you go to "command prompt" in the start menu - the black screen outputting the current directory. You can do a heck of a lot on it if you know how to use it. "a heck of a lot" includes compiling and executing programs for most languages.

*stupid windows brainwashing people...*
Spartan_117




PostPosted: Sat Jul 09, 2005 9:19 am   Post subject: (No subject)

thats wut ur talking about??? lol well i kno wut the Windows Command Line is, but how do u Run Java Programs on it?
Aziz




PostPosted: Sat Jul 09, 2005 9:39 am   Post subject: (No subject)

Here, I think you should read this:

http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 27 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: