TypeBrowser -- jawin newbie
Patrick <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
I recently ran into the need to go from Java to COM in order to complete a
project. To make a long story short, after searching all over, I found
JAWIN. I followed the instructions and combed the forums -- put simply,
why won't the typebrowser generate stubs for me from the .tlb file I point
it to? Aside from the instructions that come with the JAWIN download, is
there any other place to find a simple step by step howto where the
typebrowser is concerned?
As I am new to JAWIN, I realize that there will be (is) some sort of
learning curve, yet, at the same time, after following the instructions,
it seems like the TypeBrowser should work. Below is the output thrown to
my command prompt -- perhaps this will help someone tell me where I am
going wrong.
I appreciate any input where my problem is concerned. A finger pointing me
in the right direction will suffice.
Thanks!
WHAT I DID:
- Started JAWIN TypeBrowser from typebrowser folder in the command prompt
- Created a new project
- Chose .tlb file
- Set Properties
- Hit OK
- Tried Full CodeGen
Command Prompt:
C:\Program Files\Jawin\jawin-1.0.19\typebrowser>java -jar jawinBrowser.jar
Loaded TypeLibWrapper
Loaded TypeLibWrapper
[DEBUG] ********************************************
[DEBUG] TypeInfo GUID: GUID{51964d33 74a6 3d12 00 00 00 00 00 00 00 00
}
[DEBUG] TypeInfo Locale: 0
[DEBUG] TypeInfo Platform: 1
[DEBUG] TypeInfo Major version: 1
[DEBUG] TypeInfo Minor version: 17
[DEBUG] TypeInfo Flags: 8
[EXCEPTION] InfoPanel.generateInfo() failed to generated info
org.jawin.browser.xsl.TransformationException:
TransformationManager.cacheStyles
heet() failed to compile stylesheet from: stylesheets/info/library.xsl -
javax.x
ml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerC
onfigurationException: javax.xml.transform.TransformerException:
java.net.Malfor
medURLException: no protocol: stylesheets/info/library.xsl
at org.jawin.browser.xsl.TransformationManager.cacheStylesheet
(TransformationManager.java:130)
at org.jawin.browser.xsl.TransformationManager.checkStylesheet
(TransformationManager.java:180)
at org.jawin.browser.xsl.TransformationManager.transform
(TransformationManager.java:147)
at org.jawin.browser.info.InfoPanel.generateInfo(InfoPanel.java:68)
at org.jawin.browser.info.InfoPanel.selectionChanged
(InfoPanel.java:61)
at org.jawin.browser.tree.TypeDataTree.fireSelectionChanged
(TypeDataTree.java:61)
at org.jawin.browser.tree.TypeDataTree$1.valueChanged
(TypeDataTree.java:71)
at javax.swing.JTree.fireValueChanged(Unknown Source)
at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown
Source)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged
(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange
(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths
(UnknownSource)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath
(Unknown Source)
at javax.swing.JTree.setSelectionPath(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown
Source)
at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection
(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed
(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
AFTER CODE GEN ATTEMPT:
[EXCEPTION] CodeGenerator.run() failed to complete code generation
org.jawin.browser.codegen.CodeGenerationException:
CodeGenerator.generateCode()
failed to complete code generation -
org.jawin.browser.xsl.TransformationExcepti
on: TransformationManager.cacheStylesheet() failed to compile stylesheet
from: s
tylesheets/codegen/jawin/coclass.xsl -
javax.xml.transform.TransformerConfigurat
ionException: javax.xml.transform.TransformerConfigurationException:
javax.xml.t
ransform.TransformerException: java.net.MalformedURLException: no
protocol: styl
esheets/codegen/jawin/coclass.xsl
at org.jawin.browser.codegen.CodeGenerator.generateCode
(CodeGenerator.java:225)
at org.jawin.browser.codegen.CodeGenerator.run
(CodeGenerator.java:59)
at java.lang.Thread.run(Unknown Source)