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.
Yes, you can, and you can install the compiler on your ubs driver too.
posted 11 years ago
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.
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?
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
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