Results 1 to 5 of 5
  1. #1
    kabinet is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default jvm on flash drive

    Hello, i want to carry all my useful java-applications on my usb flash drive. But there is not everywhere java virtual machine is installed. Is there any ability to install jvm on flash drive? Of course, for some class of OS (e.g. Windows-based).

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by kabinet View Post
    Hello, i want to carry all my useful java-applications on my usb flash drive. But there is not everywhere java virtual machine is installed. Is there any ability to install jvm on flash drive? Of course, for some class of OS (e.g. Windows-based).
    Sure, simply install the entire jre (and jdk if you wish) on your flash drive; make sure there's a path component on your target machine pointing to the appropriate bin directory/directories on your flash drive.

    kind regards,

    Jos

  3. #3
    kabinet is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default

    Thanks a lot, i guess it also works for linux-based systems? Maybe it possible to create *.bat or *.sh file for each apps, in this way i don't need to link the bin directory with the environment variable PATH?
    e.g.:
    ./java.exe -jar myapp.jar

  4. #4
    rdtindsm is offline Member
    Join Date
    Feb 2009
    Posts
    92
    Rep Power
    0

    Default

    For windows systems, the site "PortableApps.com" has an application that will launch a java application. Can't tell you all the details. May require a .jar file rather than .class, but I can run JEDIT on a windows system with it from a flash drive. Open source, free.

  5. #5
    CodesAway's Avatar
    CodesAway is offline Senior Member
    Join Date
    Sep 2009
    Location
    Texas
    Posts
    238
    Rep Power
    5

    Default

    Yeah, I use the PortableApps version on my flash drive (works great).

    I have it setup as one of the JVMs I use in Eclipse (which is also on my flash drive). This way, if I'm on a different computer I can still use the current JRE. I also copied src.zip to the directory and linked it in Eclipse, so I can browse the source code and have the JavaDocs with me as well.

    Also, PortableApps has Java Portable Launcher, which allows you to easily run jar files. The user.home and user.dir System properties reflect the location of the launcher (not the jar) so that your settings (if any are saved by the jar) are portable as well.

    Links:
    Java Portable
    Java Portable Launcher
    CodesAway - codesaway.info
    writing tools that make writing code a little easier

Similar Threads

  1. How to index drive and database.
    By jazz2k8 in forum Lucene
    Replies: 0
    Last Post: 03-31-2009, 07:07 AM
  2. NetBeans 6.5 installation on flash drive
    By andre1011 in forum NetBeans
    Replies: 3
    Last Post: 03-23-2009, 04:19 AM
  3. Reading Pen Drive
    By ravjot28 in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2008, 02:48 PM
  4. Drive names
    By alwz_nikhil in forum New To Java
    Replies: 0
    Last Post: 11-28-2007, 10:04 AM
  5. access cd drive
    By milinkp in forum New To Java
    Replies: 0
    Last Post: 07-20-2007, 06:14 AM

Posting Permissions

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