Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: running java program without jdk installed

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default running java program without jdk installed

    Hello frns..

    I want to know is there any way to run java program without installing jdk.
    I want to run my code on system which dnt have jdk installed on it. is it possible??
    plz rply..thanx..


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: running java program without jdk installed

    way to run java program without installing jdk
    The JRE should be all that is needed to execute a normal java program.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: running java program without jdk installed

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers, including a few "house rules" that you'd try to follow when visiting someplace new.
    I want to run my code . . .
    In what form is the code? Has it been compiled into .class files?

  4. #4
    Junior Member
    Join Date
    Jan 2014
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: running java program without jdk installed

    ya i have web server code.
    and its compiled in .class
    its working with command line and eclipse. I want to know is there any other way to run it .

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: running java program without jdk installed

    .class files can be taken to and run on any system on which the JRE has been installed, providing the JRE isn't so old that the .class files aren't compatible. You can copy them directly or package them into a runnable .jar file. I've had good luck exporting runnable .jar files from Eclipse, but others recommend building .jar files outside the IDE, which is relatively simple. Refer to the Eclipse Wiki/tutorials and the Java tutorials for help in these areas, if needed.

  6. The Following User Says Thank You to GregBrannon For This Useful Post:

    eku (January 25th, 2014)

Similar Threads

  1. Detect if JDK is installed?
    By sci4me in forum Java Theory & Questions
    Replies: 1
    Last Post: August 7th, 2013, 11:23 AM
  2. [SOLVED] Installed Android program which I created bombs out
    By HanneSThEGreaT in forum What's Wrong With My Code?
    Replies: 20
    Last Post: July 12th, 2013, 04:40 AM
  3. Replies: 21
    Last Post: June 12th, 2013, 11:33 AM
  4. Replies: 0
    Last Post: December 12th, 2012, 09:02 PM
  5. jdk is not installed properly error..
    By bczm8703 in forum Java SE APIs
    Replies: 6
    Last Post: June 1st, 2011, 06:33 AM