Author Topic: How To Open A Link In A Browser On Ppc  (Read 3984 times)

jeremyhoo

  • Newbie
  • *
  • Posts: 4
    • View Profile
How To Open A Link In A Browser On Ppc
« on: April 24, 2005, 11:32:10 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

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
How To Open A Link In A Browser On Ppc
« Reply #1 on: April 24, 2005, 06:16:24 pm »
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76625\"][{POST_SNAPBACK}][/a][/div]

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.
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

jeremyhoo

  • Newbie
  • *
  • Posts: 4
    • View Profile
How To Open A Link In A Browser On Ppc
« Reply #2 on: April 25, 2005, 04:10:41 am »
Quote
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76625\"][{POST_SNAPBACK}][/a][/div]

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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76653\"][{POST_SNAPBACK}][/a][/div]

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.