Results 1 to 10 of 10
- 03-20-2012, 06:45 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
I am brand new to Java and am having trouble. Help!
So I am following this guide here:
"Hello World!" for Microsoft Windows (The Java Tutorials > Getting Started > The "Hello World!" Application)
I am using Notepad++ to edit, and I saved it as HelloWorldApp.java. When I tried to compile it in the command prompt, it displayed that 'javac' could not be found. I updated the PATH to where the JDK bin is using this as a guide:
JDK Installation for Microsoft Windows
Now when I type >javac HelloWorldApp.java nothing happens.
I have never used Java this way, so I have no idea what to do. Help!
- 03-20-2012, 07:01 PM #2
Member
- Join Date
- Feb 2012
- Location
- Phoenix, AZ
- Posts
- 26
- Rep Power
- 0
Re: I am brand new to Java and am having trouble. Help!
It may mean that your code has compiled finely and that a .class file has been created. Check the directory where your HelloWorldApp.java file is located and see if a HelloWorldApp.class file has been created.
- 03-20-2012, 07:02 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
Re: I am brand new to Java and am having trouble. Help!
Type "dir" and check if the compiler has produced a "HelloWorldApp.class" file. If so, you can run it with the java.exe virtual machine: "java HelloWorldApp".
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-20-2012, 07:06 PM #4
Member
- Join Date
- Jan 2012
- Posts
- 55
- Rep Power
- 0
Re: I am brand new to Java and am having trouble. Help!
simple dear
install java.
go to java >> jdk1.5 or your installed version folder >> bin directory
copy the path of the bin director.
right click on my computer >> select properties >> click advanced tab >> press environmental variables button >> under system variable check if any variable named path is defined or not. if not click new button, enter variable name as path and paste the url of ur jdk bin path under variable value field. now press ok buttons followed by apply and ok button. restart ur system and go to run type cmd and then in the command prompt type javac to check
- 03-20-2012, 08:42 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
Re: I am brand new to Java and am having trouble. Help!
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-20-2012, 09:41 PM #6
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Re: I am brand new to Java and am having trouble. Help!
Does it make a difference if my jdk is installed to Program Files x86 instead of Program Files?
Also, it's giving me loads of errors.
Edit: It compiles, but it doesn't run.Last edited by injustpotato; 03-20-2012 at 09:43 PM.
- 03-21-2012, 12:37 AM #7
Re: I am brand new to Java and am having trouble. Help!
Why do they call it rush hour when nothing moves? - Robin Williams
- 03-21-2012, 01:08 AM #8
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
- 03-21-2012, 03:49 AM #9
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Re: I am brand new to Java and am having trouble. Help!
I love that you are using a simple text editor. What does your code look like? When you typed
you got the above error?Java Code:javac HelloWorld.java
- 03-21-2012, 04:25 AM #10
Similar Threads
-
Help please?// Brand new here.
By GoodThing007 in forum New To JavaReplies: 10Last Post: 12-04-2011, 09:08 PM -
Brand New To Java, what does it actually do?
By Geslincm in forum New To JavaReplies: 1Last Post: 11-10-2011, 07:14 PM -
Brand new to java ... window is closing
By drw4d in forum New To JavaReplies: 5Last Post: 03-20-2011, 05:48 PM -
BRAND new to Java (editor question)
By hayden06f4i in forum New To JavaReplies: 2Last Post: 10-20-2010, 10:11 PM -
Brand New to Java needs directions
By NatasjaA in forum New To JavaReplies: 13Last Post: 04-07-2008, 04:34 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks