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

Thread: Run JDK from USB for BlueJ

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

    Default Run JDK from USB for BlueJ

    Hello,

    Im a bit new to this, I have a class requiring the use of BlueJ, I found the portable version on SourceForge and would like to have it run from the USB but as it requires the JDK. I am having very little success, I have tried installing it to the USB (Both BlueJ and JDK) created a bat file setting the path to the bin folder then tried running BlueJ but yet to no avail. The portable app works on any machine with the JDK installed, is there any way of redirecting paths via windows or the portable app itself so it looks for the Java libraries on the USB stick?

    any help would be appreciated.

    Thanks


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

    Default Re: Run JDK from USB for BlueJ

    I ended up getting the problem solved Thanks though. Not sure if people are concerned about my solution but if so so this is what i found:

    Copy the lib, bin and jre folders of an installed JDK onto the USB drive, i.e. from C:\Program Files\Java\jdk1.5.0_10 to E:\jdk1.5.0_10
    Copy the lib folder of your BlueJ installation onto the USB drive, i.e. from C:\BlueJ to E:\BlueJ
    Create a file bluej.bat in the root of your USB drive, containing:

    start jdk1.5.0_10\bin\javaw -jar BlueJ\lib\bluej.jar -bluej.userHome=home

    The last bit forces the user's BlueJ home to be on the USB drive in the folder "home", which will be created if necessary.
    If you want running BlueJ to be offered as part of the USB drive's autorun options, create a file called autorun.inf in the root of the containing the following:

    [autorun]
    open=bluej.bat
    icon=bluej.ico
    ACTION = Launch BlueJ-on-a-Stick

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,790
    My Mood
    Mellow
    Thanks
    236
    Thanked 717 Times in 703 Posts

    Default Re: Run JDK from USB for BlueJ

    Moved. Thanks for updating with the solution.

Similar Threads

  1. usb hid about communication
    By serifvatansever in forum Android Development
    Replies: 1
    Last Post: November 2nd, 2013, 08:01 PM
  2. Replies: 4
    Last Post: August 16th, 2013, 03:25 PM
  3. Replies: 2
    Last Post: November 18th, 2012, 01:09 PM
  4. USB signal
    By mp3rara in forum Java Networking
    Replies: 3
    Last Post: May 6th, 2011, 03:57 AM
  5. Java and usb
    By righi in forum Java Theory & Questions
    Replies: 1
    Last Post: January 28th, 2011, 09:21 AM