OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How To Open A Link In A Browser On Ppc, jni call?
jeremyhoo
post Apr 24 2005, 07:32 AM
Post #1





Group: Members
Posts: 4
Joined: 24-April 05
Member No.: 6,978



Hi, I use java to parse a xml file and then get the URL from the file.

I want to open this URL in a browser. But I can't find a good method.

I try Runtime.exec, but the windows CE 2003 can't deal the stdin and stdout so it always's throws Exceptions.

Then I try to use JNI to call a dll file which created to open the browser.

But in the Jeode CDC enviroment, It always throws an java.lang.unsatisfiedlink error. Though I try all the method to locate the dll file.

So I wonder If anyone have encountered this problem.

anyone has fufilled it?

HJ
Go to the top of the page
 
+Quote Post
Omicron
post Apr 24 2005, 02:16 PM
Post #2





Group: Members
Posts: 608
Joined: 14-April 04
Member No.: 2,853



QUOTE(jeremyhoo @ Apr 24 2005, 10:32 AM)
Hi, I use java to parse a xml file and then get the URL from the file.

I want to open this URL in a browser. But I can't find a good method.

I try Runtime.exec, but the windows CE 2003 can't deal the stdin and stdout so it always's throws Exceptions.

Then I try to use JNI to call a dll file which created to open the browser.

But in the Jeode CDC enviroment, It always throws an java.lang.unsatisfiedlink error. Though I try all the method to locate the dll file.

So I wonder If anyone have encountered this problem.

anyone has fufilled it?

HJ
*


If this is an applet, then in the html code, you can embedd java script to open a Url that you pass from java (java can pass javascript a hashtable with a single entry: URL page)....Only I am not sure of this ability in j2me, etc.
Go to the top of the page
 
+Quote Post
jeremyhoo
post Apr 25 2005, 12:10 AM
Post #3





Group: Members
Posts: 4
Joined: 24-April 05
Member No.: 6,978



QUOTE(Omicron @ Apr 24 2005, 02:16 PM)
QUOTE(jeremyhoo @ Apr 24 2005, 10:32 AM)
Hi, I use java to parse a xml file and then get the URL from the file.

I want to open this URL in a browser. But I can't find a good method.

I try Runtime.exec, but the windows CE 2003 can't deal the stdin and stdout so it always's throws Exceptions.

Then I try to use JNI to call a dll file which created to open the browser.

But in the Jeode CDC enviroment, It always throws an java.lang.unsatisfiedlink error. Though I try all the method to locate the dll file.

So I wonder If anyone have encountered this problem.

anyone has fufilled it?

HJ
*


If this is an applet, then in the html code, you can embedd java script to open a Url that you pass from java (java can pass javascript a hashtable with a single entry: URL page)....Only I am not sure of this ability in j2me, etc.
*



Well I think with applet we can use the getAppletContext().showDocument method to open link in the browser. but unfortunately this is a stand alone java application. So I wonder if it's possible for embedded java to do this.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2014 - 01:24 AM