Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Question about Java on non-x86 architectures
New Posts  All Forums:Forum Nav:

Question about Java on non-x86 architectures

post #1 of 8
Thread Starter 
I've been curious about this for awhile: I know Java can run on a lot of other architectures such as SPARC, but are Java applications truly portable to the point where a single executable Jar could theoretically be run on anything that can run Java? For example, could I take the executable Minecraft jar and run it on a SPARC system under Solaris, or would the application need to be specifically compiled for Solaris and SPARC?

Just a note that I don't have any plans to actually do this, I'm just curious. tongue.gif
post #2 of 8

Java is a very favorable platform since it's famous for being multi-platform. If a machine can run Java, it can run any Java application. So yeah, Minecraft will be able to run on a SPARC machine :).

 

By the way, nice choice of motherboard and CPU thumb.gif.

Orion IV
(12 items)
 
Supernaut II
(8 items)
 
 
CPUMotherboardGraphicsRAM
Core i7 3930k Gigabyte GA-X79-UD3 2x EVGA GTX 770 SC in SLI 16GB (4x4GB) G.SKILL Sniper 1600 
Hard DriveCoolingOSMonitor
ADATA 128GB SSD + 2x WD Blue 500GB AAKX (RAID 0) Thermaltake Water2.0 Extreme Dual Rad | 10x Yat... Windows 7 Ultimate x64 ASUS PB278Q, ASUS VG248QE, 2x Dell 20" 16:10 
KeyboardPowerCaseMouse
Two. Browns & Blues LEPA G900 (900W) CoolerMaster HAF 932 Advanced Logitech G700 
CPUMotherboardGraphicsRAM
AMD A6 6400k Black Edition Gigabyte F2A85XM-D3H Integrated 8GB Kingston HyperX 
Hard DriveOSPowerCase
4x 2TB WD Green (RAID 5), 80GB OS Windows 7 Ultimate 400W Generic Thermaltake V3 Black 
CPUMotherboardGraphicsRAM
Core i5 750 ASUS P55 XFX 5750 8GB Kingston 
Hard DriveOSPowerCase
160GB WD Blue Windows 7 Ultimate 600w FEMA Diablotek Short-Midtower 
  hide details  
Reply
Orion IV
(12 items)
 
Supernaut II
(8 items)
 
 
CPUMotherboardGraphicsRAM
Core i7 3930k Gigabyte GA-X79-UD3 2x EVGA GTX 770 SC in SLI 16GB (4x4GB) G.SKILL Sniper 1600 
Hard DriveCoolingOSMonitor
ADATA 128GB SSD + 2x WD Blue 500GB AAKX (RAID 0) Thermaltake Water2.0 Extreme Dual Rad | 10x Yat... Windows 7 Ultimate x64 ASUS PB278Q, ASUS VG248QE, 2x Dell 20" 16:10 
KeyboardPowerCaseMouse
Two. Browns & Blues LEPA G900 (900W) CoolerMaster HAF 932 Advanced Logitech G700 
CPUMotherboardGraphicsRAM
AMD A6 6400k Black Edition Gigabyte F2A85XM-D3H Integrated 8GB Kingston HyperX 
Hard DriveOSPowerCase
4x 2TB WD Green (RAID 5), 80GB OS Windows 7 Ultimate 400W Generic Thermaltake V3 Black 
CPUMotherboardGraphicsRAM
Core i5 750 ASUS P55 XFX 5750 8GB Kingston 
Hard DriveOSPowerCase
160GB WD Blue Windows 7 Ultimate 600w FEMA Diablotek Short-Midtower 
  hide details  
Reply
post #3 of 8
Thread Starter 
Haha, twins.
post #4 of 8
Yep. That's the beauty of virtual machines. The way Java works is that any application written in 'Java' is compiled down to an intermediate language called byte-code. Java is portable because ALL programs written in it will compile to the same byte-code.

The implementation of the run-time environment is all that matters. When you go to a different target architecture, all that is needed is to implement the back-end portion that translates the byte-code to the machine code of the architecture. This allows me to use my Java program on ANY machine that has an identical (or backwards compatible) java run-time environment.

This is the same exact way that .NET works with it's "common runtime language".
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
post #5 of 8
This isn't quite as simple as its being made out to be. Java code will run, but you need compiled linked libraries for the native code.

In Minecraft's case, they're using the LWJGL java wrapper which has natives pre-compiled for Windows, Linux, OS X, and Solaris. SPARC builds, I believe, have never been officially maintained, but there were one or two floating around (one might have even made it to an Ubuntu PPA).

That all said, in the case of Minecraft and OpenGL, the hardware needs to actually support OpenGL... For devices such as phones you need OpenGL ES support which is a different box of worms smile.gif
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
post #6 of 8
Quote:
Originally Posted by FearMeansControl View Post

This isn't quite as simple as its being made out to be. Java code will run, but you need compiled linked libraries for the native code.
In Minecraft's case, they're using the LWJGL java wrapper which has natives pre-compiled for Windows, Linux, OS X, and Solaris. SPARC builds, I believe, have never been officially maintained, but there were one or two floating around (one might have even made it to an Ubuntu PPA).
That all said, in the case of Minecraft and OpenGL, the hardware needs to actually support OpenGL... For devices such as phones you need OpenGL ES support which is a different box of worms smile.gif

Thanks. Learned something here. +rep
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
post #7 of 8
Thread Starter 
Interesting info, guys. Thanks for input thumb.gif
post #8 of 8
Quote:
Originally Posted by FearMeansControl View Post

This isn't quite as simple as its being made out to be. Java code will run, but you need compiled linked libraries for the native code.

In Minecraft's case, they're using the LWJGL java wrapper which has natives pre-compiled for Windows, Linux, OS X, and Solaris. SPARC builds, I believe, have never been officially maintained, but there were one or two floating around (one might have even made it to an Ubuntu PPA).

That all said, in the case of Minecraft and OpenGL, the hardware needs to actually support OpenGL... For devices such as phones you need OpenGL ES support which is a different box of worms smile.gif


 

Learned something as well smile.gif And from another Long Islander!

Orion IV
(12 items)
 
Supernaut II
(8 items)
 
 
CPUMotherboardGraphicsRAM
Core i7 3930k Gigabyte GA-X79-UD3 2x EVGA GTX 770 SC in SLI 16GB (4x4GB) G.SKILL Sniper 1600 
Hard DriveCoolingOSMonitor
ADATA 128GB SSD + 2x WD Blue 500GB AAKX (RAID 0) Thermaltake Water2.0 Extreme Dual Rad | 10x Yat... Windows 7 Ultimate x64 ASUS PB278Q, ASUS VG248QE, 2x Dell 20" 16:10 
KeyboardPowerCaseMouse
Two. Browns & Blues LEPA G900 (900W) CoolerMaster HAF 932 Advanced Logitech G700 
CPUMotherboardGraphicsRAM
AMD A6 6400k Black Edition Gigabyte F2A85XM-D3H Integrated 8GB Kingston HyperX 
Hard DriveOSPowerCase
4x 2TB WD Green (RAID 5), 80GB OS Windows 7 Ultimate 400W Generic Thermaltake V3 Black 
CPUMotherboardGraphicsRAM
Core i5 750 ASUS P55 XFX 5750 8GB Kingston 
Hard DriveOSPowerCase
160GB WD Blue Windows 7 Ultimate 600w FEMA Diablotek Short-Midtower 
  hide details  
Reply
Orion IV
(12 items)
 
Supernaut II
(8 items)
 
 
CPUMotherboardGraphicsRAM
Core i7 3930k Gigabyte GA-X79-UD3 2x EVGA GTX 770 SC in SLI 16GB (4x4GB) G.SKILL Sniper 1600 
Hard DriveCoolingOSMonitor
ADATA 128GB SSD + 2x WD Blue 500GB AAKX (RAID 0) Thermaltake Water2.0 Extreme Dual Rad | 10x Yat... Windows 7 Ultimate x64 ASUS PB278Q, ASUS VG248QE, 2x Dell 20" 16:10 
KeyboardPowerCaseMouse
Two. Browns & Blues LEPA G900 (900W) CoolerMaster HAF 932 Advanced Logitech G700 
CPUMotherboardGraphicsRAM
AMD A6 6400k Black Edition Gigabyte F2A85XM-D3H Integrated 8GB Kingston HyperX 
Hard DriveOSPowerCase
4x 2TB WD Green (RAID 5), 80GB OS Windows 7 Ultimate 400W Generic Thermaltake V3 Black 
CPUMotherboardGraphicsRAM
Core i5 750 ASUS P55 XFX 5750 8GB Kingston 
Hard DriveOSPowerCase
160GB WD Blue Windows 7 Ultimate 600w FEMA Diablotek Short-Midtower 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Question about Java on non-x86 architectures