This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

usb drive

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to put all my files on a usb drive and compile them from there. That way I can transport files back and forth to work and home. If so how can this work?
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What operating system are you running?
 
Marshal
Posts: 65792
250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried it on Windows and Linux and never had any problems.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can, and you can install the compiler on your ubs driver too.
 
Dustin Eldridge
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Mac OS 10 on one computer at my house. Then I would like to take the usb to work and that is a Windows XP pro machine. If all I need to do is get the java (Which ones I am not for sure javac, java etc..) files (I can find the folder they are in on my mac) and move them to the usb with my lesson files that would be great. I am guessing that it will work.
 
marc weber
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Dustin Eldridge:
...If all I need to do is get the java (Which ones I am not for sure javac, java etc..) files (I can find the folder they are in on my mac) and move them to the usb with my lesson files...


Your .java and .class files can move between a Mac and a Windows machine with no problem, but the applications javac and java are entirely different on these platforms. Macs come with a JDK already installed, but you cannot simply "move" these files to a Windows machine. Instead, you need to download and install a JDK for Windows (if this has not already been done). You will probably want to ensure that the JDK versions match. What version of OS X and Java are you using on the Mac?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another thing worth mentioning is that you will have to set your "Environment Variables --> Path" to include the location of your %USB-DRIVE%\Java\Bin directory... for example s:\JavaSDK\Bin. In windows to access this you need to right click on My Computer --> Properties --> Advanced --> Environment Variables is at the bottom. Locate "Path" under "System Variables" and add the location of your %USB-DRIVE%\Java\Bin (entries are separated by semi-colons.)

The reason for this is that when you want to compile a file the Windows operating system looks for the javac.exe compiler in any locations listed in the path.

Hope this helps.
 
Screaming fools! It's nothing more than a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!