Picon
Favicon

WebNavigation setDocument

Hi all.
WebNavigationImpl has the getDocument() method that retrieves the current DOM 
document for the frame.
Is there a setDocument() method? I want to get the DOM of the page, make some 
changes and then perform a setDocument() in order to render the modified page 
in JRex browser.
Thanks
Fernando Cassia | 21 Jul 17:28
Picon
Gravatar

Excellent project!

Congratulations for this great project. It should get more publicity. I always vouched for more integration between popular open souce projects like Mozilla and OpenOffice with the Java world.


JRex sounds great. 

Now one question... I´ve been looking for a way to render web pages as JPG or PNG files. 
For example, I´d supply www.nytimes.com as the target url and a target resolution (1024 pixels wide) and the program would return a bitmap of 1024-by-whatever-it-takes to render the complete web page.

Would this be doable with JRex?. 

Second question: does JRex have -or need to display- a GUI or is it possible to call JRex (for instance, for the above purpose) entirely from text mode without gecko rendering anything on the screen?

Thanks in advance,
FC

_______________________________________________
JRex mailing list
JRex@...
https://www.mozdev.org/mailman/listinfo/jrex
Todd Clark | 23 Feb 23:24
Picon

problem loading DLLs on AMD64 Windows Server 2003

My goal is to get JRex running via webstart on a 64-bit AMD machine with 
Windows Server 2003 (Intel 64 and 64bit running 32bit OS' work fine). It 
seems, told by the error output(pasted below), that the 32 bit DLLs cannot 
be loaded on said machine. Has anyone run into this problem before or know 
of a way around by modifying/recompiling source, java code, etc ?

Thanks

ERROR OUT:

Java Web Start 1.6.0_16
Using JRE version 1.6.0_16-b01 Java HotSpot(TM) 64-Bit Server VM
User home directory = C:\Documents and Settings\ceklof
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
-- constructing main class --
-- about to call startEngine() --
-- getting install path --

-- setting jrex.gre.path --
-- jrex.gre.path = C:\Documents and Settings\ceklof\jrex_gre --

-- enabling debug --
-- debug enabled --

-- calling startEngine() --
***************** JRexL inited *****************
***************** Starting of JREX-Logging Tue Feb 23 13:19:30 PST 2010 
*****************
org.mozilla.jrex.JRexFactory --->static()--> **** loading implementers ****
org.mozilla.jrex.JRexFactory --->loadImplementers()--> **** impl 
TABLE<{JRexStatusBar=org.mozilla.jrex.ui.JRexStatusBarImpl, 
JRexPopupMenu=org.mozilla.jrex.ui.JRexPopupMenuImpl, 
ObserverEventHandler=org.mozilla.jrex.event.observer.ObserverEventHandler, 
WindowManager=org.mozilla.jrex.window.JRexWindowManagerImpl, 
TooltipEventHandler=org.mozilla.jrex.event.tooltip.TooltipEventHandler, 
HistoryEventHandler=org.mozilla.jrex.event.history.HistoryEventHandler, 
JRexPrintPreviewToolBar=org.mozilla.jrex.ui.JRexPrintPreviewToolBarImpl, 
URIContentEventHandler=org.mozilla.jrex.event.uricontent.URIContentEventHandler, 
ProgressEventHandler=org.mozilla.jrex.event.progress.ProgressEventHandler, 
WindowEventHandler=org.mozilla.jrex.event.window.WindowEventHandler, 
JRexMenuBar=org.mozilla.jrex.ui.JRexMenuBarImpl, 
JRexToolBar=org.mozilla.jrex.ui.JRexToolBarImpl, 
ContextMenuEventHandler=org.mozilla.jrex.event.context.ContextMenuEventHandler}>***
org.mozilla.jrex.JRexFactory --->**** startEngine()-->engineStarted <false>
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->startXPCOM()--> **** USING GRE_PATH 
<C:\Documents and Settings\ceklof\jrex_gre> ***
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library list... ****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<#The list of GRE libraries to load>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<nspr4>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\nspr4.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\nspr4.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\nspr4.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<plc4>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\plc4.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\plc4.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\plc4.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<plds4>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\plds4.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\plds4.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\plds4.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<xpcom>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\xpcom.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\xpcom.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\xpcom.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<xpcom_compat>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\xpcom_compat.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\xpcom_compat.dll> 
FAILED!!! reason<C:\Documents and Settings\ceklof\jrex_gre\xpcom_compat.dll: 
Can't load IA 32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<mozz>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\mozz.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\mozz.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\mozz.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<mozjs>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library 
<C:\Documents and Settings\ceklof\jrex_gre\mozjs.dll> does not exsist!!!****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<gkgfx>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\gkgfx.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\gkgfx.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\gkgfx.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<js3250>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\js3250.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\js3250.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\js3250.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<jsj3250>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\jsj3250.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\jsj3250.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\jsj3250.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<jsj>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library 
<C:\Documents and Settings\ceklof\jrex_gre\jsj.dll> does not exsist!!!****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<mozctl>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library 
<C:\Documents and Settings\ceklof\jrex_gre\mozctl.dll> does not 
exsist!!!****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<mozctlx>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library 
<C:\Documents and Settings\ceklof\jrex_gre\mozctlx.dll> does not 
exsist!!!****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<softokn3>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\softokn3.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\softokn3.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\softokn3.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<nss3>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\nss3.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\nss3.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\nss3.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<nssckbi>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\nssckbi.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\nssckbi.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\nssckbi.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<ssl3>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\ssl3.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\ssl3.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\ssl3.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<smime3>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\smime3.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\smime3.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\smime3.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<msgbsutl>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library 
<C:\Documents and Settings\ceklof\jrex_gre\msgbsutl.dll> does not 
exsist!!!****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Library to 
load<jrex>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\jrex.dll>...****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->loadLibraries()--> **** Loading 
library <C:\Documents and Settings\ceklof\jrex_gre\jrex.dll> FAILED!!! 
reason<C:\Documents and Settings\ceklof\jrex_gre\jrex.dll: Can't load IA 
32-bit .dll on a AMD 64-bit platform>****
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->startXPCOM()--> **** USING 
forceNoProfile <false> ***
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->startXPCOM()--> **** USING 
profileName <.JRex> ***
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->startXPCOM()--> **** USING 
profilePath <C:\Documents and Settings\ceklof> ***
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->notifyXPCOMInited()--> **** 
xpcomInitRV<-1>***
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->startXPCOM()--> **** XPCOM INIT 
FAILED 
<org.mozilla.jrex.xpcom.JRexXPCOMImpl.InitXPCOM(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V>
org.mozilla.jrex.xpcom.JRexXPCOMImpl --->startXPCOM()--> **** xpcomInitRV 
<-1>

-- Unable to start up Browser Engine: [ 
JRexFactory.getInstance().startEngine() ] --
org.mozilla.jrex.exception.JRexException-- startEngine() called --
-- setting jrex preferences --
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: 
org.mozilla.jrex.pref.JRexPreference.SetDefaultBoolPref(Ljava/lang/String;Z)V
    at org.mozilla.jrex.pref.JRexPreference.SetDefaultBoolPref(Native 
Method)
    at 
org.mozilla.jrex.pref.JRexPreference.setDefaultBoolPref(JRexPreference.java:302)
    at test_jrex.Main.startEngine(Main.java:79)
    at test_jrex.Main$1.run(Main.java:37)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source) 
martin | 22 Jan 16:41
Picon

Status of the project

Hi,

I want to know what the status of this project is, is it still 'alive'

I am looking for a open-source/free/low cost alternative to 

http://www.webrenderer.com/index.php?source=google&term=sdk&gclid=CO2m-IequJ8CFUGAzAodPFA1zg

We need a off-screen server side html to image generating software, can
JRex do those things, can it be used in a commercial project?

Can it work with new mozzila releases ? 

Thanks
Fazekas László | 11 Oct 13:09
Picon

jrex license

Hi!

Can I use JRex in a closed source commercial product as a library (LGPL
like license), or it is not allowed by it's license (GPL like)?

Thank you.

Kind regards,
  Laszlo 
Jerome | 23 Mar 07:13
Picon
Favicon

HGap and VGap

Hi,
When I create the canvas, I can see an horizontal and a vertical gap (5 
pixels ?) between the container (JPanel) and the browser  :-(
Could you please tell me how to delete this gap (set it to 0) ?
Thank you very much by advance :-) 
valérian girard | 23 Dec 11:21
Picon

problem with the class JRexPreference

Hello,

When I try to set a proxy with this code (found on the mailling list)

JRexPreference prefs = JRexPreference.getInstance();
prefs.setDefaultCharPref("network.proxy.http","XXX.XXX.XXX.XXX");
prefs.setDefaultIntPref("network.proxy.http_port",80);
prefs.setDefaultIntPref("network.proxy.type", 1);

Java return me this exception :
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.mozilla.jrex.pref.JRexPreference.SetDefaultCharPref(Ljava/lang/String;Ljava/lang/String;)V

I don't know what it may come?
Nobody has an idea?

Thanks for all

Best regards
Waldo2188

_______________________________________________
JRex mailing list
JRex@...
https://www.mozdev.org/mailman/listinfo/jrex
Alexander Dejonghe | 17 Dec 11:44
Picon

Flash support

Hi,

This project looks very interesting to me as I need a browser for a sort
of simulations. I would like to know if JRex includes Flash support or
if it is possible to add it.

Thanks

Alexander
Benjy Cline | 15 Dec 22:22
Picon
Favicon

WebVAT, example code

Greetings,

Two tidbits for you:

1.  Several people want to use JRex to access the pixel
coordinates of rendered objects such as buttons and text
fields.  JRex doesn't appear to expose the Gecko's page
renderer's Frame Tree data structure.  However, I found
an article about WebVAT that is an open source tool
that uses a modified JRex and Gecko to expose Frame
Trees.

I can't find the source code, but here are the links to
the article and another blurb:

http://www.cs.sunysb.edu/~jmahmud/ICWE2007.pdf
http://www.acm.org/src/subpages/borodin/YevgenBorodin.htm

I don't need this facility; however, I thought others might
be interested in the article.

2.  I found this source code for a JRex-based browser:
http://svn.openqa.org/fisheye/browse/floyd/trunk/src/java/jrex/floyd/jrex/JRexBrowser.java?r=45
I'm not sure what the project is all about; however, it
has methods that illustrate how to programmatically generate
click events.  Someone might be able to use that as an
example.

I haven't actually tried the code.

Benjy
www.benjysbrain.com
Mitesh51 | 21 Oct 06:15
Picon
Favicon

Question for JRexPreference


>From Where we get the prefName like in bold?

org.mozilla.jrex.pref.JRexPreference
prefs=org.mozilla.jrex.pref.JRexPreference.getInstance();

prefs.setDefaultCharPref("network.proxy.http","http-proxy.asdf.com");
prefs.setDefaultIntPref("network.proxy.http_port",80);
prefs.setDefaultIntPref("network.proxy.type", 1);

--

-- 
View this message in context: http://www.nabble.com/Question-for-JRexPreference-tp20083170p20083170.html
Sent from the MozDev - jrex mailing list archive at Nabble.com.
Mitesh51 | 15 Oct 07:38
Picon
Favicon

Questions on Loading Notifications & URIContentListener


Is there any method in API which will be invoked just before the document
loading starts in JREX and method which will be invoked when complete
document is loaded(With all Images and other files)?

When I add URIContentListener in canvas then also its methods are not
invoked until and unless i manually create JrexEvent and post it in the
JRexEventManager...Is there any solution?
canvas.addURIContentListener(contentListenerTest);
--

-- 
View this message in context: http://www.nabble.com/Questions-on-Loading-Notifications---URIContentListener-tp19987035p19987035.html
Sent from the MozDev - jrex mailing list archive at Nabble.com.

Gmane