What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Able to run Java files on Asuswrt?

dom2114

Occasional Visitor
Very basic question for anyone that can help.
I'm trying to figure out if I can run a jar file on my RT-AC66R.
Could someone advise what additional packages I would need to install?

As further background, I'm trying to run a very small web application found here:
https://code.google.com/p/stoker-web/

Many thanks.
 
According to various web pages, Java SE embedded 8 was released for MIPS in 2015, however if you look on the java website, all you can find for SE embedded is ARM.

Edit: I did find a link for Java ME, scroll all the way to the bottom: http://www.oracle.com/technetwork/java/embedded/javame/embed-me/downloads/index.html

Thanks for this info.
Don't suppose you can offer any guidance on how to install this on the router? I'm somewhat lost.
Sorry for such a noob question. Grateful for any help you can offer.
 
The site requires an account to download, which I don't have so I can't give the best description.

You'd have to download the zip file, using wget or curl or something. Or download it to your computer and transfer to the router it using ssh.

For example: cd /tmp && wget http://download.oracle.com/otn/java...b02-linux-x86-generic-product-22_apr_2013.zip

Unzip the file: unzip ojec-1.1.1-rr-bin-b02-linux-x86-generic-product-22_apr_2013.zip

Move into the folder: cd ojec-1.1.1-rr-bin-b02-linux-x86-generic-product-22_apr_2013

Then you move the binary files in that folder, like javah / java / etc.. to your /opt/usr/local/bin

List the files in the folder with ls -l, look for the ones with execute permission on all 3 levels (3 x's) (for example -rwxr-xr-x), those are probably the binaries.

Move the binaries (the name of those files is in the right of the previous ls -l command) into your entware or optware usr/local/bin folder:

mv java /opt/usr/local/bin
mv javah /opt/usr/local/bin
etc
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top