Run a Java applet on HD2? - HD2 General

Is there anyway to get the Oanda FXTrade platform to run on the HD2? The only solution I've been able to come up with is remote desktop, but that is far from optimal. This link: http // www smartphonemag com/cms/blog/9/how-do-i-run-well-known-oandacom-stocks-applet-my-pocket-pc-incl-tons-brand-new-never-publish (had to edit out the "."'s and replace them with spaces to get around the spam filter) talks about running it on WM, but the link to the .jar file is bad (and I had tried it before on my Tilt when the link did work, but never could figure out how to get it to work).
Here is link to the Java Web Start that I normally run from my PC: https //fx1 oanda com/java/beta jnlp (again "."'s replaced with spaces).
Has anyone had any luck at finding a way to run Java programs on the HD2/other WM devices? The 800x480 screen and 1GHz CPU would be perfect for mobile trading. I would be so grateful if anybody has any suggestions.

yup man..been waitin the same... pls help..

Same here, if anyone finds a solution I will be really interested to know!!
For now, I'm using Metatrader for the same purpose...

Yes, this is needed so much. I have different websites that need java applets for my hd2. Is there a solutuion today?

I think the Oanda FXTrade platform has changed since he wrote this article.
even this page: http://www.winmobiletech.com/sekalaiset/OandaComAppletInvoke.html
that he wrote to access the oanda platform is failling due to http 404 (file not found) edit: not the page itself but the page trys to request the platform.class file for the beta.jar and it returns a http connection failed to the java console.
I have looked into this quite fully.
It seems the stuff he was referring to was all beta code and has now been removed.
I have found the current jnlp file:
http://fxtrade.oanda.com/fxgui/desktop/fxtrade.jnlp
The new codebase seems like it should be:
https://fxtrade.oanda.com/fxgui/www/fxtrade
and there are now three jar files instead of one:
https://fxtrade.oanda.com/fxgui/www/fxtrade/trading-app.1.10.17.jar
https://fxtrade.oanda.com/fxgui/www/fxtrade/trading-res.1.10.17.jar
https://fxtrade.oanda.com/fxgui/www/fxtrade/protobuf-java-2.1.0.jar
I have tried to modify what he has done in the tutorial you posted to add the new information.
Unfortunately this has been unsuccessful and I am unsure where to go from here.
maybe someone who knows a bit more about jar/jnlp architecture could take it from here?

download the applet, then go to start > tools > jblend
there should be a list of applets.

Related

Exe files on Android?

This might be in another thread. I searched pretty extensively for an answer and can't find one. Is there an app or way to install exe files and run them on my Magic 32B? My phone is rooted and running Cyanogen's 4.2.5 I figured my phone does everything else, why shouldn't it be able to run exe files?
Sorry for the bump. I can access the exe file on my memory card with Linda File manager, but I don't know what the open the file with??? Linda File Manager gives me the option to > Open With... Any ideas?
Android cannot open Windows based files.......
WEAK!
One thing I have learned from xda is that if theres a will theres a way! Comon guys there has gotta be a way!
Android is not windows..
In theory you could port qemu or something and run it in that. But that would be so slow a turtle would think of itself as fast if it saw it
Sent from my Gingerbread on Sapphire using XDA Premium App
tvall said:
Android is not windows..
In theory you could port qemu or something and run it in that. But that would be so slow a turtle would think of itself as fast if it saw it
Sent from my Gingerbread on Sapphire using XDA Premium App
Click to expand...
Click to collapse
Agreed. I want to say someone got Wine to install in Android but could never get it to work right.
Sent from my LG-P500 using Tapatalk
The idea is sweet and innocent but is much more complex...
The "exe" files are binaries. The .exe extension is something windows has as a standard for postfix, and is not necessary for running binaries (linux does not use any postfix and therefor also Android).
So what is a binary?
It's a list of machine instructions which the intended cpu understands. Every cpu has it's own instruction set ( a language). You need to make sure that the list of instructions you are running can be understood by the cpu. Inside this list you will find special instructions which is called "system calls". They are not intended for the cpu but for the operation system which you are running on.
So to sum up;
1) to run windows binaries on Android you need to change to instruction set of the binary because the cpu you have is not the same as those running on the Android device. E.g. x86 cpu on computer vs. ARM cpu on mobile devices vs. PIC micro-controllers. So the binary does not speak the same language as the cpu.
2) You need to change the system calls because Windows and Android does not have the same system calls.
So as a final sum up, it's not easy to make those binaries to run on Android, specially those which has a instructions list bigger than 20-30 instructions... They are just to complex and sometimes not even possible!
The WINE project is shot of doing the exact problem. It will run the binaries and translate them on the fly for the operating system. It succeed most times and fail others. But it's a HUGE project and need a normal computer power for it to run. The devices we have right now, does not have the horse power to run such projects.
I hope the info shades some lights on the problem :0)
NB: i know some of the info is not 100% but it's REALLY simplified to give the general idea and complexity of the problem :0)
mumilover said:
The idea is sweet and innocent but is much more complex...
The "exe" files are binaries. The .exe extension is something windows has as a standard for postfix, and is not necessary for running binaries (linux does not use any postfix and therefor also Android).
So what is a binary?
It's a list of machine instructions which the intended cpu understands. Every cpu has it's own instruction set ( a language). You need to make sure that the list of instructions you are running can be understood by the cpu. Inside this list you will find special instructions which is called "system calls". They are not intended for the cpu but for the operation system which you are running on.
So to sum up;
1) to run windows binaries on Android you need to change to instruction set of the binary because the cpu you have is not the same as those running on the Android device. E.g. x86 cpu on computer vs. ARM cpu on mobile devices vs. PIC micro-controllers. So the binary does not speak the same language as the cpu.
2) You need to change the system calls because Windows and Android does not have the same system calls.
So as a final sum up, it's not easy to make those binaries to run on Android, specially those which has a instructions list bigger than 20-30 instructions... They are just to complex and sometimes not even possible!
The WINE project is shot of doing the exact problem. It will run the binaries and translate them on the fly for the operating system. It succeed most times and fail others. But it's a HUGE project and need a normal computer power for it to run. The devices we have right now, does not have the horse power to run such projects.
I hope the info shades some lights on the problem :0)
NB: i know some of the info is not 100% but it's REALLY simplified to give the general idea and complexity of the problem :0)
Click to expand...
Click to collapse
Just in addition, most programs aren't just based on the .exe file. DLLs and other files are needed for the program to run, attempting to port all this stuff to Android would most probably result in failing.
K3n H1mur4 said:
Just in addition, most programs aren't just based on the .exe file. DLLs and other files are needed for the program to run, attempting to port all this stuff to Android would most probably result in failing.
Click to expand...
Click to collapse
I just hope Android is so popular that, like turning Windows into Linux using Wine (excuse the metaphor or whatever that was), someone might persist with this no doubt huge endeavour. I'm sure I'm not alone in wanting to never run a Windows app in Windows ever again, nor kowtow to Apple's interface demands even though I'd like something as responsive, integrated and occasionally useful as an iSomething.
Android was my future salvation till my employer handed over a handy Win App recently that I can't really avoid using - well I could, but I'd have to work that much harder - fat chance! So I'm stuck with a Samsung XP netbook and WM6.5 on my HTC Touch HD until someone somewhere, or lots of someones everywhere, do a Wine for Android
Seriously, you want to pretend in some reality somewhere that someone will first create an x86 emulator for an arm chip that barely likes to play xvid files then on top of that use wine to run a mobile windows app rather than just use something similar or pay someone to write you something similar that runs natively on android?
Which do you think is the non-insane option?
you cant run it on android persay but you can download dosbox and run it that way sorry for the bump
work for now
For now install your exe app on a windows PC if you have one. And run something like team viewer. Won't look the best but you'll get basic function out of it.
Thanks for the suggestions (cellsafemode excepted! )
I ended up buying a couple of iPads and have installed VMWare View, ICAB HD and Slashtop/CamCam giving remote access to my Windows PC at home. Gets the job done - bit slower, but the small Windows-only app I need to run infrequently isn't a huge load on the hardware or the network. Saves carting a netbook around for just one small but important task, and I guess it's accomplishing much the same as the Android suggestions above. When my iPad enthusiasm wears off, I'll have an Android option
Found a Way
Ok, I got a way! You need root, and itll be very slow on a phone but faster on a tablet!!
http s : / / play . google. com / store / a pps / de tail s? id = com . galoula.LinuxInstall&feature=search_result#?t=W251bGwsMSwyL DEsImNvbS5nYWx vdWxhLkxpbnV4S W5zdG FsbCJd
1)Download Above Link remove spaces
2)On your new Ubuntu or whatever you chose get wine from winehq
3)Get your exe and presto!!
--DISCLAIMER--
I havent tried it so if it breaks your phone/tablet its not my fault... USE AT OWN RISK
nikhiljha said:
Ok, I got a way! You need root, and itll be very slow on a phone but faster on a tablet!!
http s : / / play . google. com / store / a pps / de tail s? id = com . galoula.LinuxInstall&feature=search_result#?t=W251bGwsMSwyL DEsImNvbS5nYWx vdWxhLkxpbnV4S W5zdG FsbCJd
1)Download Above Link remove spaces
2)On your new Ubuntu or whatever you chose get wine from winehq
3)Get your exe and presto!!
--DISCLAIMER--
I havent tried it so if it breaks your phone/tablet its not my fault... USE AT OWN RISK
Click to expand...
Click to collapse
Good luck finding wine compiled for arm and some windows programs built for the (currently nonexistent) arm version of windows
2Noob4U said:
This might be in another thread. I searched pretty extensively for an answer and can't find one. Is there an app or way to install exe files and run them on my Magic 32B? My phone is rooted and running Cyanogen's 4.2.5 I figured my phone does everything else, why shouldn't it be able to run exe files?
Click to expand...
Click to collapse
if your mobile does everything else then can you do multitasking just like people do in Nokia N9??
yes its possible ..
ohhh yaaa its possible to install .exe file on any android device ..
just follow these simple steps and you are done :
Step 1
Install a DOSBox app on your Android device. AnDOSBox, aDosBox and DosBox Turbo are three different DOSBox apps available from the Google Play store.
Step 2
Open the DOSBox app.
Step 3
Type "cd \foldername" into the command line, where "foldername" denotes the folder in which your EXE is contained. For example, if your EXE is in the Download folder, type "cd \download."
Step 4
Click Enter on your Android keyboard.
Step 5
Enter the name of the EXE file. You do not need to enter the .exe extension.
Step 6
Tap "Enter" on your Android keyboard.
Tip
The command-line interface is not case-sensitive.
mydevilace said:
ohhh yaaa its possible to install .exe file on any android device ..
just follow these simple steps and you are done
Click to expand...
Click to collapse
Excellent! Never say 'Never'!
I also see it's possible to run iOS apps on Android as well.
Wing Nut said:
Excellent! Never say 'Never'!
I also see it's possible to run iOS apps on Android as well.
Click to expand...
Click to collapse
yeaaahhhhh
Sent from my Micromax A110 using XDA Free mobile app
So this confirms exe files r able to run on Android its just slow . Only thing left to do is find a way to lighten it up some by reduced graphics n bmp files ?

VNC server - control android on pc

Hi, my name is José Pereira and i want to share with you the alpha application i'm developing, based on http:/ / code.google.com/p/android-vnc-server/.
It has a simple GUI, so you dont need know nothing about the terminal
As now, it has support for HTC Dream, Hero and Magic (keyboard and mouse), for other devices i need you to send me the "getevent" command output so i can add the input devices names to the application.
PS: YOU NEED ROOT ACCESS
http:/ / zeluispereira.no.sapo.pt/avnc-0.01.apk (i cant post links)
picture: http:/ / zeluispereira.no.sapo.pt/asd.png
thank you
Your screenshot looks great.
This is what I get on my Nexus One (Froyo). I remember others getting the same result with VNC server in the past too. Note: also get high cpu usage.
Keep up the good work, nice and easy to use.
Could you please send me a dump of /dev/graphics/fb0 so i can look into it?
You need to have adb executable, and do something like
"adb pull /dev/graphics/fb0 filename"
and send me the "filename"
Thanks
I've been messing with the vnc server from google, but can't get the touch input to work on my sprint htc hero. I tried installing and pushing your apk, but I don't see the app on my phone.
onaips said:
Could you please send me a dump of /dev/graphics/fb0 so i can look into it?
You need to have adb executable, and do something like
"adb pull /dev/graphics/fb0 filename"
and send me the "filename"
Thanks
Click to expand...
Click to collapse
Here you go. I am having the same problem with my N1 Running Froyo.
View attachment dump.zip
onaips said:
Hi, my name is José Pereira and i want to share with you the alpha application i'm developing, based on http:/ / code.google.com/p/android-vnc-server/.
It has a simple GUI, so you dont need know nothing about the terminal
As now, it has support for HTC Dream, Hero and Magic (keyboard and mouse), for other devices i need you to send me the "getevent" command output so i can add the input devices names to the application.
PS: YOU NEED ROOT ACCESS
http:/ / zeluispereira.no.sapo.pt/avnc-0.01.apk (i cant post links)
picture: http:/ / zeluispereira.no.sapo.pt/asd.png
thank you
Click to expand...
Click to collapse
Any progress on this?
Hey, i've posted on another thread, see h t t p : / / forum.xda-developers.com/showthread.php?t=710805
I've actually found out why nexus isn't compatible, expect to get news soon.
Cheers
need the apk
I need the apk file. Could you please give me the link to download the .apk again the current link you have posted was either removed or doesnt work.
Thanks
Go to onaips.blogspot.com
hows the frame rate with this? i found another similar program that works great, but only gets about 5-10fps on the pc side.
http://forum.xda-developers.com/showthread.php?t=663390&highlight=screencast
onaips said:
Could you please send me a dump of /dev/graphics/fb0 so i can look into it?
You need to have adb executable, and do something like
"adb pull /dev/graphics/fb0 filename"
and send me the "filename"
Thanks
Click to expand...
Click to collapse
hi,
i got the same issue,
i ve did a dump you can download it here
http://no-comp.net/android/dump-nexus-one-froyo
i hope it ll help you out.
do you think it s a client or server issue?
do you know any way to do 20 fps video recording with vnc?
thxx for your effort and your time
best regards
Uninstall your version and install market (search for vnc server), the issue is already fixed!
hi,
that s what i did, and i still get the issue, that s why i ve post you a message.
herve
I run the version
0.2c
sommething funny with the 0.3c V when i clic on "stop server" it s still running...
new screenshot with last version
Make sure you are opening droid VNC server, because i changed names when uploading to market...
nocomp i find it very odd, because i already fixed that issue... can you send me a debug from logcat?
adb logcat
Don't expect to have 20fps in vnc, you cant get it with pcs, so with phones it's even less expected.
Thanks
EDIT: this is a server issue
send me your mail adresse at nocomp (@) gmail and i ll send it to you.
thx for your time
herve

Need help installing the Android SDK

I've read the other threads about this but there is no help to be found there unfortunately.
I've been playing with App Inventor because I wanted to avoid learning Java but my think now is that seeing as I do JavaScript/PHP/mySQL and HTML/CSS anyway I might as well do my app development properly.
I've been following the instructions at the official developer.android.com site.
and the part where I have the problem is with Eclipse - at step 1 on that page. I've installed the JDK but when I try to install Eclipse I get an error telling me that there is no Virtual Java machine in the eclipse\jre\bin\ folder.
Well I'm following the instructions so what can I do about this? I don't even understand the error. Is there supposed to be a file in this folder, a folder which a.doesn't come with the standard Eclipse .zip file and which b.doesn't exist at all!
I tried this all before some time ago and got the same problem. At that time I couldn't even use App Inventor because of some JDK/JRE problem but I un-installed and reinstalled Java and App Inventor is working now.
This is one of the most frustrating computing problems I've faced because I've searched all over for an answer and there is nothing out there. Frankly I'm a little surprised at how poor the installation documentation is
The only thing I can think of is I have the wrong version of Eclipse. Which exact one is everyone else using?
Hello Subjective Effect. There is not a folder named eclipse\jre\bin in eclipse installation folder. The version i m using is eclipse-helios. I was not faced the problem you have.
I've solved that part of the problem by downloading a different version of Eclipse. It is a Helios version and is the one with Java. The installation instructions are not clear on this.
I now have another issue but I'll try work that out for the time being.
So I've no idea (again because the instructions are so poor) what to do about this.
I'm on the Android Developers site and trying to start the Hello World tutorial. I'm already stumped at the stage of creating a New Project because after I set up Project name, Application name, Package name and Create Activity clicking "Finish" gives this error:
[2010-10-28 01:33:03 - HelloAndroid] ERROR: Unable to open class file C:\workspace\HelloAndroid\gen\com\subjectiveeffect\helloandroid\R.java: No such file or directory
The reason I think the docs are poor is am I supposed to have created this directory or does Eclipse create it for you? And if it's supposed to be created for you what am I doing wrong?
Subjective Effect said:
So I've no idea (again because the instructions are so poor) what to do about this.
I'm on the Android Developers site and trying to start the Hello World tutorial. I'm already stumped at the stage of creating a New Project because after I set up Project name, Application name, Package name and Create Activity clicking "Finish" gives this error:
[2010-10-28 01:33:03 - HelloAndroid] ERROR: Unable to open class file C:\workspace\HelloAndroid\gen\com\subjectiveeffect\helloandroid\R.java: No such file or directory
The reason I think the docs are poor is am I supposed to have created this directory or does Eclipse create it for you? And if it's supposed to be created for you what am I doing wrong?
Click to expand...
Click to collapse
Mine seems to have that error no matter what I type in.
So what have you done about it? Or can I continue without worrying, is this a trivial error message?
1) you should download Eclipse 3.5.2 as Helios is not supported by Android plugin yet.
http://www.eclipse.org/downloads/packages/eclipse-classic-352/galileosr2
2) R.java problem should go away if you restart eclipse
Also, to start with better use the existing sample project HelloWorld rather than setting up your own.
This is a common known bug. You can use the latest eclipse version, once you setup a project, you will have to go under project properties and choose compiler version 1.6, which is set to 1.5 usually.
Tha will solve the problem, because i was facing the same a few days ago when starting to mess with SDK and Eclipse.
I had a similar problem and gave up for awhile and when I came back to it I found out that I didn't have my paths set correctly for the java jdk, not sure if that is it but it worked for me.
I find if I restart Eclipse it fixes things.
I've been playing with layouts!

Can I download ADT manually

I've been messing around in google app inventor getting an idea for the flow of code and figured that it's time to step up to an actual coding environment.
So I went and downloaded the most recent SDK and eclipse. I installed all the available resources and revisions.
Then i hit a snag. The guide said that in order to properly set up Eclipse i need the ADT plugin. I opened the help menu and went to install new software and clicked on the add button. In the name section i put "ADT Plugin" and in location i put the exact web address they gave and it kept giving an error that said unable to connect to repository... i even tried http over https but still experienced the same issue. I entered the website enter my web browser in hopes that it would connect to a ftp server or start a direct download but unfortunatly it was a google site that was no longer available.
So i want to know if theres a mirror download somewhere that i can manually install to eclipse.
Also my eclipse info
Eclipse SDK
Version: 3.6.1
Build id: M20100909-0800
Sent from my futuristic phone
Yes mate, from here...
http://developer.android.com/sdk/eclipse-adt.html
Towards the bottom of the page it tells you what to do if the URL doesn't work.
johncmolyneux said:
Yes mate, from here...
http://developer.android.com/sdk/eclipse-adt.html
Towards the bottom of the page it tells you what to do if the URL doesn't work.
Click to expand...
Click to collapse
I freaking love you in a strictly platonic way.
I kinda feel like an idiot cause I didn't read farther lmao
Sent from my futuristic phone
ironlood said:
I freaking love you in a strictly platonic way.
I kinda feel like an idiot cause I didn't read farther lmao
Sent from my futuristic phone
Click to expand...
Click to collapse
lol - glad to help mate.
Okay just ran into another hitch
I downloaded the zip file and go to install new software but instead of the website i use the archive. It provides me with a list of 3 options
Android DDMS
Android Development Tools
Android Hierarchy Viewer
I put a check in each box and click next it says calculating Dependencies and requirements then i get an error that says
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 8.0.1.v201012062107-82219 (com.android.ide.eclipse.adt.feature.group 8.0.1.v201012062107-82219)
Missing requirement: Android Development Tools 8.0.1.v201012062107-82219 (com.android.ide.eclipse.adt.feature.group 8.0.1.v201012062107-82219) requires 'org.eclipse.gef 0.0.0' but it could not be found
Now this has me at a loss. If i downloaded the Archive in theory i shouldn't have to connect to any more sites to install the plugin. I want to know if there is a way to drag and drop the contents of the archive to a plugins folder then open eclipse and refresh the installed plugins in order to show that ADT has been installed.
Not sure if the 64 bit side of things could be an issue (either for you or for anyone), but this guy seems to have solved the same problem...
http://superuser.com/questions/221944/huh-jdk-not-found-on-windows-7-64-bit
Hope it helps mate.
KK ill see if i can follow this and come up with a fix to my issue. not too sure how this will work since im running a 32bit system with windows Vista
I'm still experiencing the same issue with eclipse unfortunately, i even downgraded to Galileo instead of Helios thinking that it was an incompatibility issue with the newest version or the most recent version. I even tried dragging the .JAR files in the ADT zip into the eclipse folder in an attempt to get Eclipse to recognize the plugins without having to install them through the "install new software" dialog.
Everytime I try to connect to the download server it gives me a message that says An exception stack trace is not available. Or Unable to connect to repository http://dl-ssl.google.com/android/eclipse/content.xml
Connection refused: connect

Fix - Apps and websites not working after certificates expire

As identified in this post http://forum.xda-developers.com/showpost.php?p=65344931&postcount=10 lots of apps and websites have stopped working over the past year or so (depending maybe on your ROM). This has been traced to the root certificates (used to trust websites and set up secure ssl connctions) becoming out of date. Modern devices also have many more root certificates installed by default.
Note that this doesn't fix the google market on the nook touch, nor the kindle book store. It does fix the kindle app for syncing books purchased elsewhere.
I'll port the instructions over into this post later (see the link above for now). It requires root (so is slightly risky).
If you identify any more failing sites, please provide an https link which fails to open on the nook (but does work on a PC) and I'll add the root authority to my files. Anyone working on ROMs is welcome to redistribute my cacerts.bks
<reserved>
Aargh!
tshoulihane said:
As identified in this post http://forum.xda-developers.com/showpost.php?p=65344931&postcount=10 lots of apps and websites have stopped working over the past year or so (depending maybe on your ROM). This has been traced to the root certificates (used to trust websites and set up secure ssl connctions) becoming out of date. Modern devices also have many more root certificates installed by default.
Note that this doesn't fix the google market on the nook touch, nor the kindle book store. It does fix the kindle app for syncing books purchased elsewhere.
I'll port the instructions over into this post later (see the link above for now). It requires root (so is slightly risky).
If you identify any more failing sites, please provide an https link which fails to open on the nook (but does work on a PC) and I'll add the root authority to my files. Anyone working on ROMs is welcome to redistribute my cacerts.bks
Click to expand...
Click to collapse
I've been using your updated cacerts.bks file and it is great. In January another certificate expired and I'm fairly confident it's the reason a news app (News Republic) started throwing up security certificate errors and refused to connect with the server. I think I need to be able to do the certificate updates, but I am trying to avoid going down the SDK road (a massive download I will never use for anything else) and all those complexities.
Except, nothing else seems to work. There is an ancient thread in which people discuss various ways to update pre-ICS cacerts. Unfortunately, none of them work--I've tried them all. The browser idea seems promising and Opera Mobile responds as described, but then nothing happens to the cacerts.bks file.
Portecle looks really promising (images below). It can obviously open and inspect the cacerts.bks file (password: changeit). It shows the additions you made and also indicates the expired certificate.
So I went searching for a replacement and found something that seems like the right thing (attached as a zip). It imported easily into Portecle and then appeared along with the new ones you added.
Then I returned the file to the NST and made the permissions the same as the old file. A reboot put me in a loop out of which I just barely managed to recover by inserting my NookManager card at just the right moment.
So I don't get it. The bouncycastle files recommended in the CAcerts wiki for this task are too old to be available. Surprise.
I'm tempted to NOT fix the permissions on the cacerts.bks file when I return it to the NST because I once had a similar problem with a settings.db file and it turned out that restoring the "correct" permissions resulted in a bootloop while leaving them as they were when the file was copied back made it all work just fine. But I'm too timid to try that just now.
Any insights?
From my linked thread,
Download http://www.bouncycastle.org/download...dk15on-146.jar - this is used locally on your PC to manipulate the certificates and needs to be version 146 or 147 to work with android (or old android at least)
Click to expand...
Click to collapse
It seems that when I used a different version, I got a bootloop. Although the link I referenced seems to have died, the filename still turns up plenty of hits. http://polydistortion.net/bc/download/ for example (version 1.47).
I agree its a lot of pain, and I'm not sure I still have the toolchain download that I used for this work. I'll have a dig around...
tshoulihane said:
From my linked thread,
It seems that when I used a different version, I got a bootloop. Although the link I referenced seems to have died, the filename still turns up plenty of hits. http://polydistortion.net/bc/download/ for example (version 1.47).
I agree its a lot of pain, and I'm not sure I still have the toolchain download that I used for this work. I'll have a dig around...
Click to expand...
Click to collapse
Yipes. Well, I downloaded the jar file (many thanks...I did search on the file name and came up empty) and followed your example on the other thread. Everything behaved as it should. Except for the boot loop....... This time it was even harder to get out of it.
Two possibilities come to mind. My JDK is 1.8.0_73. Maybe that's too new to work properly. The other is that the certificate, despite playing nicely as far as console feedback went, is of the wrong format, although this does not show up in the feedback or in Portecle.
Anyway, I'm sufficiently intimidated now that I'm not going back there unless I have a better way of getting out of boot loops (since I'm doing ADB over Wi-Fi).
Edit: temptation... So I went back to the CAcerts Wiki and noticed they suggest Java 6. Now, of course, the Wiki is old, but so is the Java underlying the NST, so I found an install of Java 6 and put it on the laptop we have attached to the TV (which runs Kodi and very little else). Then I repeated the entire procedure with--supposedly--all the right components. Same dreaded bootloop. So either the certificate I have has an incompatible format, or I am just hopeless at this. Maybe both
all of the old bouncy castle api releases are archived on their ftp server under ftp://ftp.bouncycastle.org/pub. i managed to find the .jar files referenced in the other thread on there and updated my cacerts.bks using the cacerts wiki instructions a few days ago. hope it helps you. using the newer release gave me a bootloop as well, but once i grabbed the older version from their ftp all was good!
shadylady said:
all of the old bouncy castle api releases are archived on their ftp server under ftp://ftp.bouncycastle.org/pub. i managed to find the .jar files referenced in the other thread on there and updated my cacerts.bks using the cacerts wiki instructions a few days ago. hope it helps you. using the newer release gave me a bootloop as well, but once i grabbed the older version from their ftp all was good!
Click to expand...
Click to collapse
Which java version were you running?
Edit: Hmm....I'm not having any luck with the link you provided. Using an FTP client I am asked for a logon and in my browser (Firefox) it never connects.
Here we go: http://www.bouncycastle.org/archive/
Remains to be seen if that will do the trick for me...
the bootloop version was whatever bouncycastle.org has as their latest release.
the one i downloaded from the ftp that didn't bootloop was this one: bcprov-jdk16-146.jar
you'll need to ftp in and use the password "anonymous" and some bogus email to get onto the ftp. from that web version of the archive it should be this package: http://www.bouncycastle.org/archive/146/bcprov-jdk16-146.tar.gz
i'm running mac, so my default java was 1.6. i updated to 1.8 but that happened after i got this all up and running already. this was the version that was default:
$ /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
so jdk 1.6 + API 146 (or 147?) seems to be the proper mix.
at first i thought it wasn't working, because although i updated the cacerts.bks, the amazon kindle app kept saying "incorrect email/password". took me a while before i read the entire thread and realized that amazon now does two-step authentication so i had to enter the one time passcode they had sent to my email.
nmyshkin said:
Which java version were you running?
Edit: Hmm....I'm not having any luck with the link you provided. Using an FTP client I am asked for a logon and in my browser (Firefox) it never connects.
Click to expand...
Click to collapse
Well....progress, or at least I think so. This may be an easier method.
Go to http://www.bouncycastle.org/archive/ and download bcprov-jdk15on-146.jar
Go to https://sourceforge.net/projects/portecle/ and download potecle (an executable jar)
Unzip portecle. Rename the bcprov-jdk15on-146.jar to simply bcprov.jar and copy that into the unzipped portecle folder (overwrite the newer version already present).
To run portecle, just double-click on portecle.jar. You will get a statement about the 146 file being out of date, resulting in not everything working, but enough works for our purposes.
Copy cacerts.bks from your NST (system/etc/security) to your PC, open portecle and import your cacerts file (password is "changeit"). You now have a nice graphical interface for perusing and updating your certificates! If you have a *.cer certificate to update, rename the "cer" to "crt" and use the import function. It's really that simple. I tried it, copied the file back onto my NST, fixed the permissions and.......{drumroll}.......no bootloop I'm running jdk 1.8.x
That's the good news. The bad news is that I did not succeed in updating the entrust certificate. I added three from their website and while they did not break cacerts, they did not restore functionality to NewsRepublic, which is what I was hoping to do
So....this may work. It's certainly easy, but clearly you need to have the correct updated certificate to get the desired result. Duh.
Edit: OK, it's ALL bad news
Don't do any of this. It seems to go OK but yesterday I found I could not successfully open the NPR app. I thought, "well, another one bites the dust", but I was curious so I used SearchMarket to see if the app was still listed for the NST. It was. So maybe it got corrupted somehow? Anyway, I uninstalled it and was going to reinstall from the Market but suddenly I got messages about the download failing. Oh no, not another function going south?!
Well, it's all fine, but the problem was the cacerts.bks file that I had made using the method above. Although there is no bootloop on restart, there is bad ju-ju nonetheless. Restoring my backup of cacerts.bks fixed NPR and SearchMarket. So....don't go there (and the two people who thanked me, feel free to unthank me )

Categories

Resources