Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 02:12 AM
Member
 
Join Date: Nov 2007
Posts: 45
sireesha is on a distinguished road
give me a advise
Hi,
I am learning JAVA.
I installed jdk6 in my pc.
But when i compiled some code,i got some errors.
(like when i am using System.out.format() for output)
am i using correct version ?
what i have to install ?
please tell me.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-11-2007, 02:31 AM
Member
 
Join Date: Dec 2007
Posts: 3
Krmeus is on a distinguished road
If this happens when you tried to compile code then it is more than likely just a syntax error. Try using something simple to start with, like a nice Hello World! script.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-11-2007, 02:35 AM
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Or you could always do the smart thing and post your error.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-11-2007, 02:38 AM
Member
 
Join Date: Dec 2007
Posts: 7
definewebsites is on a distinguished road
Re:
Code:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } }
Run that and see whether you still get the compilation error. If so then it is possible that your jdk installation was not 100% successful or your text editor cannot find the path to the java compiler..

HTH

Last edited by definewebsites : 12-11-2007 at 11:27 AM. Reason: Sorry, should have added the class declaration just incase you tried to run it as it is..:)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
anyone can give idea 2 my assignment? chen8735 Advanced Java 2 03-08-2008 07:03 PM
Is there anyone can give a instruction about Myoodb ibmzz Database 0 01-19-2008 10:04 AM
Give me some suggestion on wedding story book roots Forum Lobby 1 01-10-2008 05:17 PM
Friends could u plz give me solution 4 this Saritha Database 1 06-15-2007 05:42 PM


All times are GMT +3. The time now is 09:42 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org