This week's book giveaway is in the Open Source forum.
We're giving away four copies of Programmers Guide to Apache Thrift and have Randy Abernethy on-line!
See this thread for details.
Win a copy of Programmers Guide to Apache Thrift this week in the Open Source 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Use Java7 without installing from dmg  RSS feed

 
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use Java7 for some development work but I don't want to install it and make it the default VM over the entire system. What I tried to do was download the linux tar.gz file, throw it in a directory, setup some PATH info and run java - version but when I do that it says 'cannot execute binary file'. So much for *nix.

Anything I can do to make the above work or is there another way to go about this? Again, I don't want (can't) disrupt the OSX version of Java that is currently installed.
 
author and jackaroo
Posts: 12199
280
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Gregg Bolinger wrote:So much for *nix.



Huh? I don't think I have ever seen anything anywhere stating that *nix systems should be binary compatible. In fact it is pretty much guaranteed that they wont be, since you can run *nix on both big-endian and little-endian machines, and the libraries that your binaries are linked to will be different on different machines, and ....
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read this and what it sounds like to me is that I can just use the settings to manage which VM is accessible. I would rather control this via shell scripts but if going into a UI and clicking checkboxes work, I can live with that. Can anyone confirm?
 
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Gregg Bolinger wrote:I read this and what it sounds like to me is that I can just use the settings to manage which VM is accessible. I would rather control this via shell scripts but if going into a UI and clicking checkboxes work, I can live with that. Can anyone confirm?



Yeah on a Mac, I would install Java without a dmg. And you can easily have many versions of Java installed. To set the default you go to Utilities - Java Preferences and just move the one you want as the default to the top. But all the others can be checked on and usable. For instance, Open Office requires Java 6. But all I needed was Java 6 installed and check boxed for Open Office to find it, I didn't have to set any command line variables for Open Office.

Mark
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mark Spritzler wrote:Yeah on a Mac, I would install Java without a dmg.



Is that a typo? It contradicts the rest of your post.
 
author & internet detective
Posts: 39281
727
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,
I installed the Java 7 dmg and then set my existing Java 6 to be the default. It works just fine. (What I did)
 
Mark Spritzler
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Gregg Bolinger wrote:

Mark Spritzler wrote:Yeah on a Mac, I would install Java without a dmg.



Is that a typo? It contradicts the rest of your post.



Sorry I meant I wouldn't install Java without. Or more positively instead of a double negative.

Only use the .dmg for installation.

Mark
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to both. I think I am good to go now.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!