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 2 of 2

Thread: Is it possible to package Java

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Is it possible to package Java

    First time posting to this forum, and I thought I'd see if anyone could answer a question for me. Not sure what location to put this question, so I apologize if I picked the wrong place to put it.

    Can I specify a specific jre to use when I'm using the command "java"?

    i.e.

    If I have Foo.class can I specify java Foo -? [ pathnameToJre? ]

    Thanks any help or insights.

    Tim


  2. #2
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: Is it possible to package Java

    You can specify the full path to the Java executable you wish to invoke. Depending on your CLASSPATH environment setting you may need the -cp (or -classpath) flag to ensure use of the desired rt.jar.

    db

Similar Threads

  1. Re: Accessing Package from a Different Directory
    By smolina in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 7th, 2010, 03:47 PM
  2. creating a package
    By x3rubiachica3x in forum Object Oriented Programming
    Replies: 6
    Last Post: September 26th, 2010, 11:10 PM
  3. Accessing Package from a Different Directory
    By rameshiit19 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 15th, 2010, 11:39 PM
  4. How to instal JDBC driver package in eclipse
    By sathish in forum JDBC & Databases
    Replies: 2
    Last Post: September 2nd, 2010, 10:09 AM
  5. [SOLVED] Finding acm package
    By javapenguin in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 12th, 2010, 11:50 AM