Post Reply

Java (jre) on Surface RT

OP binnym

29th October 2012, 08:42 PM   |  #1  
OP Member
Thanks Meter: 1
 
41 posts
Join Date:Joined: Feb 2011
More
So I have a question?

Is there a way to enable java on the surface rt.
Because for my remote access to work I need JRE.


Thanks
29th October 2012, 09:31 PM   |  #2  
ags29's Avatar
Senior Member
Flag New York, NY
Thanks Meter: 64
 
512 posts
Join Date:Joined: Jun 2010
More
I wanna know this too. Need to be able to play Yahoo Games when I'm bored ��
29th October 2012, 09:44 PM   |  #3  
brummiesteven's Avatar
Senior Member
Flag Birmingham
Thanks Meter: 29
 
1,323 posts
Join Date:Joined: Aug 2008
More
Not yet but Java exists on everything pretty much... I'm sure at some point someone will recompile it for Windows RT
29th October 2012, 11:15 PM   |  #4  
Recognized Developer
Flag Seattle
Thanks Meter: 2,712
 
5,739 posts
Join Date:Joined: Jan 2011
More
There's two ways I could see this happening.

The simplest would be for somebody to take the Java source code, build it for Windows but target ARM, then sign it and tell people to go through the hoops needed to run third-party desktop-mode apps on RT. This would probably actually be pretty easy, if Java has a target for "use ARM instructions" in its JIT. If not, it would have to interpret the bytecode, which is very slow (although usable).

The second way is for the JRE to be built as a Metro-style app. It would probably have to hook a bunch of native APIs that aren't allowed in Store apps, so it would remain as homebrew, but it could be packaged as an APPX and would be easy enough to install. It would be both more difficult to port and possibly more of a hassle to use, though. With care and luck, it might even be possible to get it submitted to the Store, though, which (combined with setting it up as a file handler for .JAR) would make it widely usable. I doubt MS would approve it, though.
The Following 3 Users Say Thank You to GoodDayToDie For This Useful Post: [ View ]
9th October 2013, 08:41 AM   |  #5  
filfat's Avatar
Member
Flag Mellerud
Thanks Meter: 6
 
49 posts
Join Date:Joined: Sep 2013
Donate to Me
More
Quote:
Originally Posted by GoodDayToDie

There's two ways I could see this happening.

The simplest would be for somebody to take the Java source code, build it for Windows but target ARM, then sign it and tell people to go through the hoops needed to run third-party desktop-mode apps on RT. This would probably actually be pretty easy, if Java has a target for "use ARM instructions" in its JIT. If not, it would have to interpret the bytecode, which is very slow (although usable).

The second way is for the JRE to be built as a Metro-style app. It would probably have to hook a bunch of native APIs that aren't allowed in Store apps, so it would remain as homebrew, but it could be packaged as an APPX and would be easy enough to install. It would be both more difficult to port and possibly more of a hassle to use, though. With care and luck, it might even be possible to get it submitted to the Store, though, which (combined with setting it up as a file handler for .JAR) would make it widely usable. I doubt MS would approve it, though.

I guess that the source isent available. And the open source version for Linux would be quite hard to port right?
9th October 2013, 10:45 AM   |  #6  
Senior Member
Thanks Meter: 324
 
1,620 posts
Join Date:Joined: Dec 2012
Quote:
Originally Posted by filfat

I guess that the source isent available. And the open source version for Linux would be quite hard to port right?

Actually, it is available.

---------- Post added at 10:42 AM ---------- Previous post was at 10:38 AM ----------

Quote:
Originally Posted by GoodDayToDie

There's two ways I could see this happening.

The simplest would be for somebody to take the Java source code, build it for Windows but target ARM, then sign it and tell people to go through the hoops needed to run third-party desktop-mode apps on RT. This would probably actually be pretty easy, if Java has a target for "use ARM instructions" in its JIT. If not, it would have to interpret the bytecode, which is very slow (although usable).

The second way is for the JRE to be built as a Metro-style app. It would probably have to hook a bunch of native APIs that aren't allowed in Store apps, so it would remain as homebrew, but it could be packaged as an APPX and would be easy enough to install. It would be both more difficult to port and possibly more of a hassle to use, though. With care and luck, it might even be possible to get it submitted to the Store, though, which (combined with setting it up as a file handler for .JAR) would make it widely usable. I doubt MS would approve it, though.

Oracle do now offer ARMv6 hard float (which is then compatible with ARMv7) as a JIT option, it is standard software in raspbian on the raspberry pi as of a few weeks ago, in fact that is why they added that support. Now if only regular ARMv7 code worked on RT instead of THUMB_2. Don't know if java will actually build under visual studio either, funnily enough googling for any combination of "compile" "java" and "visual studio" gets you results for compiling java source code to the JRE under visual studio rather than compiling the JRE itself :P

---------- Post added at 10:45 AM ---------- Previous post was at 10:42 AM ----------

Quote:
Originally Posted by binnym

So I have a question?

Is there a way to enable java on the surface rt.
Because for my remote access to work I need JRE.


Thanks

You would need a jailbroken RT, that isn't hard (look in windows RT development and hacking, pinned thread right up top).
Then you would need the JRE which doesn't exist.
Its slow and incompatible with a fair amount of software but if you get as far as jailbreaking your RT you could *try* IKVM, its a java virtual machine running ontop of .NET and does work on RT. It can't be used as a browser plugin though so your remote access would need to be a standalone .jar rather than a web applet.
The Following User Says Thank You to SixSixSevenSeven For This Useful Post: [ View ]
9th October 2013, 10:59 AM   |  #7  
filfat's Avatar
Member
Flag Mellerud
Thanks Meter: 6
 
49 posts
Join Date:Joined: Sep 2013
Donate to Me
More
Quote:
Originally Posted by SixSixSevenSeven

Actually, it is available..

Well, Do You Have Any Links? Want to test if I can get it to compile... yes I know, im giving away freedom
12th October 2013, 07:05 PM   |  #8  
Recognized Developer
Flag Seattle
Thanks Meter: 2,712
 
5,739 posts
Join Date:Joined: Jan 2011
More
Why yes, I have a link:
http://letmebingthatforyou.com/searc...re+source+code

Rule number one of the forum, please follow it!
The Following 2 Users Say Thank You to GoodDayToDie For This Useful Post: [ View ]
12th October 2013, 07:58 PM   |  #9  
Senior Member
Thanks Meter: 324
 
1,620 posts
Join Date:Joined: Dec 2012
Quote:
Originally Posted by GoodDayToDie

Why yes, I have a link:
http://letmebingthatforyou.com/searc...re+source+code

Rule number one of the forum, please follow it!

Let me bing that... lol, seen the google version before but not the bing one.
5th November 2013, 09:22 AM   |  #10  
filfat's Avatar
Member
Flag Mellerud
Thanks Meter: 6
 
49 posts
Join Date:Joined: Sep 2013
Donate to Me
More
Quote:
Originally Posted by GoodDayToDie

Why yes, I have a link:
http://letmebingthatforyou.com/searc...re+source+code

Rule number one of the forum, please follow it!

I cant find it, that's why I asked. I have ofcourse already searched :P

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes