Results 1 to 15 of 15
  1. #1
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Exclamation Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Starting with Eclipse , Nothing works out :D nEED hELP !!!-java-quest1.png

    THATS ALL WHATS HAPPENING TO ME !!
    thanks all :D

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Eclipse may not be configured properly to find the current JRE. Click on the errors in the description window and paste them
    in the thread.

    You should first learn to edit java using a text editor and then compile it in a regular console window. That way you
    can learn more about proper class paths and such.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    How can i compile java code in .txt using command (console window) ?? thanks :)

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    First, you have to make certain your path is set up correctly. The two commands you need
    are javac.exe for compiling the program and java.exe for running it. .exe assumes Windows app.

    Usually these are in the bin directory of your installed Java Development Kit.

    Then, using the text editor of your choice, create your program.

    There are other subtleties (e.g. classpath) that may arise. For more detail consult
    this link.

    And I or someone else are still available to help with your Eclipse problem.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Starting with Eclipse , Nothing works out :D nEED hELP !!!-java-quest2.png
    here are everything you said , what should i do nexT ? :)

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    I think your locale is messed up. Looks like some form of Arabic. Anyway, please don't past editor images. Just paste the
    code in the message between code tags. See BB Code List - Java Programming Forum - Learn Java Programming for more info on them.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  8. #8
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Sorry SIR !!

    here is the code !! :

    Java Code:
    public class helloworlz {
    
    	
    	public static void main(String[] args) {
    System.out.println("hellooooooooooo!!!!!!!!");
    	}
    
    }
    thanks sir :)

  9. #9
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Okay, that's better. Is the file called helloworld.java? Your class is helloworlz.java. The public
    class name and file name should be the same (case sensitive).

    Regards,
    Jim
    Last edited by jim829; 08-24-2016 at 08:26 PM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  10. #10
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    yes , i have the file named (helloworlz.java) , i wrote that code into .txt then i change its name from ( helloworlz.txt ) to ( helloworlz.java)

  11. #11
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Ok, try the following:

    1. Make certain the file is helloworlz.java.
    2. Make certain the class name is helloworlz (for now at least).
    3. to compile, type "javac helloworlz.java"
    4. to run, type "java helloworlz"
    5. If step 4 does not work, try "java -cp . helloworlz"

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  12. #12
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    that is working very perfectly thanks sir :) my question now , can i convert this simple programme to an .EXE so i can run it instantly ? just like C++ and visual studio .
    with C++ i can save my programme as an .EXE easily .

    thanks Sir.

  13. #13
    theunlockeRRR is offline Code Child
    Join Date
    Aug 2016
    Location
    Serbia
    Posts
    45
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    Quote Originally Posted by Tony Stark View Post
    that is working very perfectly thanks sir :) my question now , can i convert this simple programme to an .EXE so i can run it instantly ? just like C++ and visual studio .
    with C++ i can save my programme as an .EXE easily .

    thanks Sir.
    You need to make a jar file first. After that download a software called jar2exe, its free. With that software you convert from .jar files to .exe.

  14. #14
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    The only (or at least primary) reason for doing that is that there is no JRE on the target system. Otherwise, you
    can simply make an executable jar file. Then you can simply double click on it and have it run. Note that one of the
    advantages of using java is portability and OS independence.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  15. #15
    Tony Stark is offline Member
    Join Date
    Aug 2016
    Posts
    26
    Rep Power
    0

    Default Re: Starting with Eclipse , Nothing works out :D nEED hELP !!!

    thanks all for everything , you just push me further than nothing i could expect , i will post a new thread with another questions not to make this stuff so long :) :*

Similar Threads

  1. Replies: 18
    Last Post: 03-26-2014, 10:43 PM
  2. Error in starting eclipse
    By chaitanya_r in forum Eclipse
    Replies: 3
    Last Post: 06-26-2013, 10:32 AM
  3. Replies: 3
    Last Post: 10-31-2011, 06:54 PM
  4. Eclipse Europa Starting problem
    By prashant.kadake in forum Eclipse
    Replies: 0
    Last Post: 04-18-2009, 10:06 AM
  5. JVM error when starting Eclipse[with Debian]
    By cakirhal in forum Eclipse
    Replies: 0
    Last Post: 03-07-2009, 08:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •