Running SDK from a USB key?

  • Follow


Hello, the kinds folks that replied to my Book Recommendations threadprobablyknow what I'm up to here. I was just wondering whether you can run theJ2SE SDKstraight from a USB key without molesting the host machine. This isbecause I'mpondering using it (and if possible a C++ equivalent) in a net cafe.Totally impractical,I know, but I'm curious as to if it would work. I suspect thatinstallation would requiresome registry gubbins being installed on the host (Windows) machine?Gordy
0
Reply gordon.is.a.moron (21) 3/11/2007 10:52:34 PM

<gordon.is.a.moron@gmail.com> wrote in message news:1173653554.473134.123350@8g2000cwh.googlegroups.com...>> Hello, the kinds folks that replied to my Book Recommendations thread> probably> know what I'm up to here. I was just wondering whether you can run the> J2SE SDK> straight from a USB key without molesting the host machine. This is> because I'm> pondering using it (and if possible a C++ equivalent) in a net cafe.> Totally impractical,> I know, but I'm curious as to if it would work. I suspect that> installation would require> some registry gubbins being installed on the host (Windows) machine?>> Gordy>I don't know about running the JDK from a key . . but it is easy enough to run Putty from a USB key ;)Have you considered setting up a remote server (Linux) and just working remotely?--LTP:) 
0
Reply Luc 3/12/2007 2:08:31 AM


Luc The Perverse wrote:> > I don't know about running the JDK from a key . . but it is easy enough to > run Putty from a USB key ;)Putty is designed to be easily used from an internet cafe.I don't see any reason why the JDK shouldn't work from a flash drive. It wouldn't have file associations, paths or be installed into the browser, but it should just run. I switch between various JDKs on Linux simply by specifying the path to the binary I want to run each time.Tom Hawtin
0
Reply Tom 3/12/2007 2:29:30 AM

"Tom Hawtin" <usenet@tackline.plus.com> wrote in message news:45f4ba11$0$8728$ed2619ec@ptn-nntp-reader02.plus.net...> Luc The Perverse wrote:>>>> I don't know about running the JDK from a key . . but it is easy enough >> to run Putty from a USB key ;)>> Putty is designed to be easily used from an internet cafe.>> I don't see any reason why the JDK shouldn't work from a flash drive. It > wouldn't have file associations, paths or be installed into the browser, > but it should just run. I switch between various JDKs on Linux simply by > specifying the path to the binary I want to run each time.>> Tom HawtinIf you were running on a Windows machine I would suggest making a batch file to setup your paths - and just use %1 for the drive letter - so you can specify it while calling the batch file.--LTP:) 
0
Reply Luc 3/12/2007 3:32:42 AM

Luc The Perverse wrote:> "Tom Hawtin" <usenet@tackline.plus.com> wrote in message > news:45f4ba11$0$8728$ed2619ec@ptn-nntp-reader02.plus.net...>> Luc The Perverse wrote:>>> I don't know about running the JDK from a key . . but it is easy enough >>> to run Putty from a USB key ;)>> Putty is designed to be easily used from an internet cafe.>>>> I don't see any reason why the JDK shouldn't work from a flash drive. It >> wouldn't have file associations, paths or be installed into the browser, >> but it should just run. I switch between various JDKs on Linux simply by >> specifying the path to the binary I want to run each time.>>>> Tom Hawtin> > If you were running on a Windows machine I would suggest making a batch file > to setup your paths - and just use %1 for the drive letter - so you can > specify it while calling the batch file.Some Linucex, like Fedora, use the alternatives mechanism. Another alternative is to use a symlink or mountpoint (UNIX) or drive mapping (MS) to peg the JAVA_HOME directory to the USB - e.g.,   export JAVA_HOME=/media/EXTUSB/java/or   set JAVA_HOME=U:/java/, respectively.These will, of coure, fubar if the USB drive is disconnected, but that shouldn't be a real problem.-- Lew
0
Reply Lew 3/12/2007 6:26:09 AM

gordon.is.a.moron@gmail.com wrote:> ... I was just wondering whether you can run the J2SE SDK> straight from a USB keyI'm curious; why don't you just try it?Or, if you did try it, and you encountered problems - why do you not mention this? And possibly even describe what you tried and what problems you encountered.
0
Reply Thomas 3/12/2007 6:41:21 AM

On Mar 11, 6:08 pm, "Luc The Perverse"<sll_noSpamlicious_z_XX...@cc.usu.edu> wrote:> <gordon.is.a.mo...@gmail.com> wrote in message>> news:1173653554.473134.123350@8g2000cwh.googlegroups.com...>>>> > Hello, the kinds folks that replied to my Book Recommendations thread> > probably> > know what I'm up to here. I was just wondering whether you can run the> > J2SE SDK> > straight from a USB key without molesting the host machine. This is> > because I'm> > pondering using it (and if possible a C++ equivalent) in a net cafe.> > Totally impractical,> > I know, but I'm curious as to if it would work. I suspect that> > installation would require> > some registry gubbins being installed on the host (Windows) machine?>> > Gordy>> I don't know about running the JDK from a key . . but it is easy enough to> run Putty from a USB key ;)>> Have you considered setting up a remote server (Linux) and just working> remotely?>> --> LTP>> :)I can't set up a remote server. Although you've just given me an idea,I could in theory use my PC that is about 10k miles away as a server,but I'm not convinced that would be too practical. Worth ponderingthough.Thanks,Gordy
0
Reply gordon 3/12/2007 11:03:25 PM

On Mar 11, 7:32 pm, "Luc The Perverse"<sll_noSpamlicious_z_XX...@cc.usu.edu> wrote:> "Tom Hawtin" <use...@tackline.plus.com> wrote in message>> news:45f4ba11$0$8728$ed2619ec@ptn-nntp-reader02.plus.net...>> > Luc The Perverse wrote:>> >> I don't know about running the JDK from a key . . but it is easy enough> >> to run Putty from a USB key ;)>> > Putty is designed to be easily used from an internet cafe.>> > I don't see any reason why the JDK shouldn't work from a flash drive. It> > wouldn't have file associations, paths or be installed into the browser,> > but it should just run. I switch between various JDKs on Linux simply by> > specifying the path to the binary I want to run each time.>> > Tom Hawtin>> If you were running on a Windows machine I would suggest making a batch file> to setup your paths - and just use %1 for the drive letter - so you can> specify it while calling the batch file.>> --> LTP>> :)Good idea. Looks like it would work then, which is good.Gordy
0
Reply gordon 3/12/2007 11:05:10 PM

On Mar 11, 10:41 pm, Thomas Schodt <spamtrap0...@xenoc.demon.co.uk>wrote:> gordon.is.a.mo...@gmail.com wrote:> > ... I was just wondering whether you can run the J2SE SDK> > straight from a USB key>> I'm curious; why don't you just try it?>> Or, if you did try it, and you encountered problems - why do you not> mention this? And possibly even describe what you tried and what> problems you encountered.Good question, really. I don't have a lot of time, is the main reason.So I wanted to know the likelihood of it working before spending agesmucking about only to find it was never likely to work.I forgot to mention the machines run on Windows (it being a netcafeand all).Good point, though. Maybe I'm just lazy? ;)Gordy
0
Reply gordon 3/12/2007 11:07:34 PM

gordon.is.a.moron@gmail.com wrote on 11.03.2007 23:52:> Hello, the kinds folks that replied to my Book Recommendations thread> probably> know what I'm up to here. I was just wondering whether you can run the> J2SE SDK> straight from a USB key without molesting the host machine. This is> because I'm> pondering using it (and if possible a C++ equivalent) in a net cafe.> Totally impractical,> I know, but I'm curious as to if it would work. I suspect that> installation would require> some registry gubbins being installed on the host (Windows) machine?Yes. It's possible. Simply copy the installed JDK from another machine.The big question is: what do you understand with "running the JDK"?You can certainly run a Java based application without "installing" the JDK e.g.: e:\jdk\bin\java -jar MyApp.jar, assuming your USB Stick is e:\You can also compile a .java file using e:\jdk\bin\javac MyClass.javaOnly the browser plugin for running applets require a proper JDK installation. If you need to run Ant, make sure JAVA_HOME is defined to point to your USB stick.Setup of environment variables for your IDE depend on your IDE. NetBeans will run happily if you give it the path to the JDK on the commandline (--jdkhome) or through netbeans.confThomas
0
Reply Thomas 3/12/2007 11:14:27 PM

On Mar 13, 12:14 pm, Thomas Kellerer <TAAXADSCB...@spammotel.com>wrote:> gordon.is.a.mo...@gmail.com wrote on 11.03.2007 23:52:>> > Hello, the kinds folks that replied to my Book Recommendations thread> > probably> > know what I'm up to here. I was just wondering whether you can run the> > J2SE SDK> > straight from aUSBkeywithout molesting the host machine. This is> > because I'm> > pondering using it (and if possible a C++ equivalent) in a net cafe.> > Totally impractical,> > I know, but I'm curious as to if it would work. I suspect that> > installation would require> > some registry gubbins being installed on the host (Windows) machine?>> Yes. It's possible. Simply copy the installed JDK from another machine.>> The big question is: what do you understand with "running the JDK"?>> You can certainly run a Java based application without "installing" the JDK> e.g.: e:\jdk\bin\java -jar MyApp.jar, assuming yourUSBStick is e:\>> You can also compile a .java file using e:\jdk\bin\javac MyClass.java>> Only the browser plugin for running applets require a proper JDK installation.> If you need to run Ant, make sure JAVA_HOME is defined to point to yourUSBstick.>> Setup of environment variables for your IDE depend on your IDE. NetBeans will> run happily if you give it the path to the JDK on the commandline (--jdkhome) or> through netbeans.conf>> ThomasBy running the JDK (I should have said using, really) I mean havingthe compileras well as just the JRE, since I want to write and compile on the USBkey. Nothaving applet/browser support would be fine though, since I'm not toworried aboutapplets at the moment (is anyone?).As for using putty, probably not a good idea since the networkconnection hereis horribly slow and the practicalities of running from my home PCwith thetime difference/distance etc. isn't really very sensible.Thanks everyone, though. Looks like it's do-able for what I want,anyway.Gordy
0
Reply gordon 3/13/2007 9:27:56 PM

10 Replies
98 Views

(page loaded in 0.087 seconds)

Similiar Articles:













7/26/2012 6:49:41 PM


Reply: