JFace and SWT -Eclipse

Hi all,
I wanted to know the best resources available on net for JFace and SWT learning. As I have no experience in GUI coding, which is best and faster way to learn JFace and SWT. Also I want to know any good forums for Eclipse.
Please help guys.
Thanks in advance
Mithun K

http://www.eclipse.org/swt/

Similar Messages

  • TreeViewer with JFace and SWT ...help!

    Hi Guys;
    My question is for those familiar with the eclipse platform developement..
    I'm trying to implement a File Explorer under The Eclipse platform using the jface and SWT tools...
    when i Run the code below it gives me a run time exception:
    NoClassDefFound exception...
    it seems that the problem resides at the line:
    tv.setInput(new File("C:\\"));
    if i remove the argument to File "C:\\" i get a blank view with no files..
    here is the Code:
    Any helpfull ideas would be very welcomed indeed...
    import org.eclipse.jface.window.*;
    import org.eclipse.swt.widgets.*;
    import java.io.*;
    import java.util.*;
    import org.eclipse.jface.viewers.*;
    import org.eclipse.jface.viewers.*;
    import org.eclipse.jface.window.*;
    import org.eclipse.swt.*;
    class FileTreeContentProvider implements ITreeContentProvider
    public Object[] getChildren(Object element)
         Object[] kids = ((File) element).listFiles();
         return kids == null ? new Object[0] : kids;
    public Object[] getElements(Object element)
         return getChildren(element);
    public boolean hasChildren(Object element)
         return getChildren(element).length > 0;
    public Object getParent(Object element)
         return ((File)element).getParent();
    public void dispose()
    public void inputChanged(Viewer viewer, Object old_input, Object new_input)
    class FileTreeLabelProvider extends LabelProvider
    public String getText(Object element)
         return ((File) element).getName();
    public class Standalone extends ApplicationWindow
    public Standalone()
         super(null);
    protected Control createContents(Composite parent)
         TreeViewer tv = new TreeViewer(parent);
         tv.setContentProvider(new FileTreeContentProvider());
         tv.setLabelProvider(new FileTreeLabelProvider());
         tv.setInput(new File(" C:\\ "));
         return tv.getTree();
    public static void main(String[] args)
         Standalone w = new Standalone();
         w.setBlockOnOpen(true);
         w.open();
         Display.getCurrent().dispose();

    This is an old post... but in case anyone wants to know... This tutorial is located at http://www-106.ibm.com/developerworks/opensource/library/os-ecgui1/ and I HIGHLY recommend it for people using Eclipse and wanting to learn how to create a File Explorer with JFace/SWT.
    Most likely the error that othmanSilent was getting was the following:
    java.lang.NoClassDefFoundError:
    org/eclipse/core/internal/boot/DelegatingURLClassLoader
    It was pointed out in the eclipse.swt newsgroups quite a few times. The author of the article forgot to also mention that you need to include the following jar file in your Java Build Path: eclipse.core.boot_<eclipse-version>/boot.jar

  • How to install and configure Eclipse???

    Can any one guide me how to install and configure Eclipse to use it with jdk 1.5??

    how to install eclipse?
    you don't need to install eclipse just extract it to a specific path...
    install j2se 1.5 then eclipse will automatically detect it...

  • Using swing and swt together

    i would like to use some of the components of swt such labels or buttons in swing as swt has better look and feel. but in all the examples i found they are using a whole set of swt api to create frames and showing them up.
    Isnt there any way to add button or label of SWT in Swing. i found a method SWT_AWT.newFrame(). But it is returning a awt frame not a Swing JFrame that at the frame level. i need them at individual component level(buttons and labels).
    hope u understood my problem.. any other suggestions??

    Swing and SWT are two different framework. Usually, peoiple choose one and stick with it. I would not mess with mixing SWT with Swing or vice-versa. I really don't understand why you would choose to mix these two framework together. "better look and feel" is not the best answer for this. what i would look into is a look and feel for Java (like JGoodies look n feel)..and check for Swing component that pther people have made (or enhance upon the Swing library).
    Stick with one framework. Your life will be much easier.
    Futhermore, maintainance would be less difficult. (you only have to know one framework instead of two, plus how they interact)

  • How to install and working Eclipse Visual Editor

    How to install and working Eclipse Visual Editor

    GEF (graphical editing framework.)
    download and install the plug-in. it should help.

  • Beans and SWT

    can Beans and SWT be used together?
    thanks

    Useful reference on exactly how this tag works:
    http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html
    http://java.sun.com/products/jsp/syntax/1.2/syntaxref1216.html#8856
    sets all the properties in the bean, that have been specified in the form.
    How does it do this ? Scans the incoming parameters for values that are not null/empty. Uses reflection to see if a setter for that property exists in your javabean. eg with your email textfield, it would look for the method setEmail()
    The method would be invoked if there was a parameter "email=..." in the request that did not have a value of null, OR EMPTY STRING.
    In what order are the beans set methods called in this instance ?Unspecified order.
    Also, if I want to save the properties in the bean into a database, how would you do this ?You would have to call a helper method you write yourself. Something like myBean.save() or myBeanDAO.save(myBean)
    Finally, does calling savename.jsp as the action of the form page, not go against the model/view archecture ?Yes it does - this is a Model1 technique (just using JSP pages)
    If you called servlet from the form post, how would it do the same job ?The jakarta commons BeanUtils package. http://jakarta.apache.org/commons/beanutils/
    It provides helper methods for this functionality - IMO better than the <jsp:setProperty> tag.
    It actually handles empty string values intelligently
    BeanUtils.populate(myBean, myRequest.getParameterMap());
    Cheers,
    evnafets

  • I have 4GB ram running 10.7.5 . Would installing Mavericks make it easier to run apps such as VMware,Xcode and ADT(Eclipse)?

    I have 4GB ram running 10.7.5 . Would installing Mavericks make it easier to run apps such as VMware,Xcode and ADT(Eclipse)?

    I fully agree with Barney-15E above.
    Well if you are entertaing the idea why not up grade the OS
    Then see for yourself how you use your Mac.  You can always upgrade at that point.
    RAM is the best bang for your buck.
    OWC  http://www.macsales.com/
    Crucial  http://www.crucial.com/
    System requirement fot Mavericks actually designate 2GB minimium:
    http://support.apple.com/kb/ht5842

  • Difference between AWT,Swing and swt

    Hello,
    I am giving a seminar about swing in which I need to point out differences between AWT,Swing and SWT(Software Widget Tool).
    I have two questions:
    1)I read that-A heavyweight component is one that is associated with its own native screen resource (commonly known as a peer). A lightweight component is one that "borrows" the screen resource of an ancestor-which makes it lighter.Can anybody explain What native screen resource is and how it is borrowed?
    2)I read that SWT uses native widgets and how can it be better than swing?If it is in what way?

    Use Swing for new projects. AWT is the rendering layer underneath Swing in many cases, and AWT provides utility things like Graphics. SWT is an alternative to Swing which used more native rendering, but actually with Java 6, Swing is using a lot of native rendering.
    Fire up NetBeans and use Matisse. Build an application. Run it under Windows, and then under Linux, and then realize how great it is.

  • The difference between "swing/awt" and "SWT"

    What is the main defference between "swing" and "SWT",
    in other word, when use them to implement a GUI,what is different?
    Once making a choice between them,what do they affect a project?

    They both are GUI toolkits. One is from Sun, one is from IBM.
    Sun's is lightweight, meaning all components paint themselves. IBM's is heavy weight meaning that all components are painted by the platform's native widget toolkits (there are exceptions to both of these, but just bear with me).
    If you use SWT, you will need to create downloads for each platform your app was meant to run on, not only that, you will need to include the corresponding platform SWT jar files in your project. Ontop of that, SWT doesn't have anywhere near the documentation or help that Swing has (but to be fair, its about 1/8th the age of Swing).
    If you are a great programmer that usually doesn't need help and can get by with a few good docs and MUST have native look and feel and fantastic GUI performance, then use SWT.
    But if you are more relaxed and what to do the easiest thing, use Swing.
    Both are good, I prefer Swing right now, but lets wait and see if IBM buys Sun.

  • After update - Safari, Firefox, Thunderbird, Azureus, and SWT crash

    Dear All,
    my PowerBook G4 15" 1.5 GHz, 1.25 GB RAM worked perfectly. Last week I performed the update. I got the newest Java, and I think that this caused a problem.
    Right now, programs like Safari, Firefox, Thunderbird, Azureus, Skype and SWT (needed for Azureus) crash just minutes after starting. I think, that this is a JAVA problem. I start them alone, so there cannot be any problem with CPU power, and they all worked perfectly before.
    Just after rebooting my system I started Safari. It crashed in seconds. I attach the logfile and ask you kindly for help .
    Best, Masterkv
    ================================================================================ ===============
    Date/Time: 2007-02-23 14:51:31.889 +0000
    OS Version: 10.4.8 (Build 8L127)
    Report Version: 4
    Command: Safari
    Path: /Applications/Safari.app/Contents/MacOS/Safari
    Parent: WindowServer [57]
    Version: 2.0.4 (419.3)
    Build Version: 1
    Project Name: WebBrowser
    Source Version: 4190300
    PID: 347
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0xc63943b8
    Thread 0 Crashed:
    0 com.apple.WebCore 0x95895468 DOM::HTMLCollectionImpl::traverseNextItem(DOM::NodeImpl*) const + 56
    1 com.apple.WebCore 0x95946db0 DOM::HTMLCollectionImpl::item(unsigned long) const + 236
    2 com.apple.WebCore 0x95946c88 DOM::HTMLCollection::item(unsigned long) const + 56
    3 com.apple.WebCore 0x958ceb08 KJS::HTMLCollection::tryGet(KJS::ExecState*, KJS::Identifier const&) const + 636
    4 com.apple.WebCore 0x958a91e0 KJS::DOMObject::get(KJS::ExecState*, KJS::Identifier const&) const + 60
    5 com.apple.JavaScriptCore 0x9578d5d0 KJS::ObjectImp::get(KJS::ExecState*, unsigned) const + 140
    6 com.apple.JavaScriptCore 0x9577e9cc KJS::Reference::getValue(KJS::ExecState*) const + 584
    7 com.apple.JavaScriptCore 0x9578b62c KJS::AccessorNode1::evaluate(KJS::ExecState*) + 60
    8 com.apple.JavaScriptCore 0x95783070 KJS::AssignNode::evaluate(KJS::ExecState*) + 260
    9 com.apple.JavaScriptCore 0x95782eac KJS::ExprStatementNode::execute(KJS::ExecState*) + 120
    10 com.apple.JavaScriptCore 0x9577d85c KJS::SourceElementsNode::execute(KJS::ExecState*) + 208
    11 com.apple.JavaScriptCore 0x9577d71c KJS::BlockNode::execute(KJS::ExecState*) + 140
    12 com.apple.JavaScriptCore 0x9578d214 KJS::ForNode::execute(KJS::ExecState*) + 592
    13 com.apple.JavaScriptCore 0x9577d9ac KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    14 com.apple.JavaScriptCore 0x9577d71c KJS::BlockNode::execute(KJS::ExecState*) + 140
    15 com.apple.JavaScriptCore 0x9578a60c KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    16 com.apple.JavaScriptCore 0x95789e88 KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List const&) + 408
    17 com.apple.JavaScriptCore 0x9577f988 KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) + 136
    18 com.apple.JavaScriptCore 0x9577e2a8 KJS::FunctionCallNode::evaluate(KJS::ExecState*) + 1040
    19 com.apple.JavaScriptCore 0x95782eac KJS::ExprStatementNode::execute(KJS::ExecState*) + 120
    20 com.apple.JavaScriptCore 0x95788bf4 KJS::IfNode::execute(KJS::ExecState*) + 440
    21 com.apple.JavaScriptCore 0x9577d9ac KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    22 com.apple.JavaScriptCore 0x9577d71c KJS::BlockNode::execute(KJS::ExecState*) + 140
    23 com.apple.JavaScriptCore 0x9578a60c KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    24 com.apple.JavaScriptCore 0x95789e88 KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List const&) + 408
    25 com.apple.JavaScriptCore 0x9577f988 KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) + 136
    26 com.apple.WebCore 0x959c5f8c KJS::JSAbstractEventListener::handleEvent(DOM::Event&, bool) + 492
    27 com.apple.WebCore 0x95a00c64 DOM::DocumentImpl::handleWindowEvent(DOM::EventImpl*, bool) + 212
    28 com.apple.WebCore 0x958ff7a4 DOM::NodeImpl::dispatchWindowEvent(int, bool, bool) + 200
    29 com.apple.WebCore 0x959ff89c DOM::DocumentImpl::implicitClose() + 392
    30 com.apple.WebCore 0x958f1fac KHTMLPart::checkEmitLoadEvent() + 524
    31 com.apple.WebCore 0x959ab1dc KHTMLPart::checkCompleted() + 212
    32 com.apple.WebCore 0x9588f108 KWQSignal::call(khtml::DocLoader*, khtml::CachedObject*) const + 136
    33 com.apple.WebCore 0x9589a198 khtml::Loader::slotFinished(KIO::Job*, NSData*) + 476
    34 com.apple.WebCore 0x95a13a88 KWQSignal::callWithData(KIO::Job*, NSData*) const + 136
    35 com.apple.WebCore 0x95899f5c -[KWQResourceLoader finishJobAndHandle:] + 80
    36 com.apple.WebKit 0x95697494 -[WebSubresourceClient didFinishLoading] + 72
    37 com.apple.WebKit 0x9569671c -[WebBaseResourceHandleDelegate connectionDidFinishLoading:] + 48
    38 com.apple.Foundation 0x9299184c -[NSURLConnection(NSURLConnectionInternal) _sendDidFinishLoadingCallback] + 188
    39 com.apple.Foundation 0x9298fab8 -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] + 556
    40 com.apple.Foundation 0x9298f810 _sendCallbacks + 156
    41 com.apple.CoreFoundation 0x907dd4cc __CFRunLoopDoSources0 + 384
    42 com.apple.CoreFoundation 0x907dc9fc __CFRunLoopRun + 452
    43 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
    44 com.apple.HIToolbox 0x93205740 RunCurrentEventLoopInMode + 264
    45 com.apple.HIToolbox 0x93204dd4 ReceiveNextEventCommon + 380
    46 com.apple.HIToolbox 0x93204c40 BlockUntilNextEventMatchingListInMode + 96
    47 com.apple.AppKit 0x936e8ae4 _DPSNextEvent + 384
    48 com.apple.AppKit 0x936e87a8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
    49 com.apple.Safari 0x00006740 0x1000 + 22336
    50 com.apple.AppKit 0x936e4cec -[NSApplication run] + 472
    51 com.apple.AppKit 0x937d587c NSApplicationMain + 452
    52 com.apple.Safari 0x0005c77c 0x1000 + 374652
    53 com.apple.Safari 0x0005c624 0x1000 + 374308
    Thread 1:
    0 libSystem.B.dylib 0x9000ab48 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
    2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
    4 com.apple.Foundation 0x9296e164 -[NSRunLoop runMode:beforeDate:] + 172
    5 com.apple.Foundation 0x9296e09c -[NSRunLoop run] + 76
    6 com.apple.WebKit 0x95680ef0 +[WebFileDatabase _syncLoop:] + 176
    7 com.apple.Foundation 0x9295f194 forkThreadForFunction + 108
    8 libSystem.B.dylib 0x9002b508 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x9000ab48 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
    2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
    4 com.apple.Foundation 0x9298669c +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264
    5 com.apple.Foundation 0x9295f194 forkThreadForFunction + 108
    6 libSystem.B.dylib 0x9002b508 pthreadbody + 96
    Thread 3:
    0 libSystem.B.dylib 0x9000ab48 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
    2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
    4 com.apple.Foundation 0x929877dc +[NSURLCache _diskCacheSyncLoop:] + 152
    5 com.apple.Foundation 0x9295f194 forkThreadForFunction + 108
    6 libSystem.B.dylib 0x9002b508 pthreadbody + 96
    Thread 4:
    0 libSystem.B.dylib 0x9002bbc8 semaphorewait_signaltrap + 8
    1 libSystem.B.dylib 0x900306ac pthreadcondwait + 480
    2 com.apple.Foundation 0x92966300 -[NSConditionLock lockWhenCondition:] + 68
    3 com.apple.Syndication 0x9a4a242c -[AsyncDB _run:] + 192
    4 com.apple.Foundation 0x9295f194 forkThreadForFunction + 108
    5 libSystem.B.dylib 0x9002b508 pthreadbody + 96
    Thread 5:
    0 libSystem.B.dylib 0x9001f08c select + 12
    1 com.apple.CoreFoundation 0x907ef40c __CFSocketManager + 472
    2 libSystem.B.dylib 0x9002b508 pthreadbody + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x0000000095895468 srr1: 0x000000000200f030 vrsave: 0x0000000000000000
    cr: 0x42022244 xer: 0x0000000020000004 lr: 0x00000000958957ac ctr: 0x0000000095889bc0
    r0: 0x0000000006409948 r1: 0x00000000bfffd290 r2: 0x00000000c63943a0 r3: 0x0000000006409948
    r4: 0x0000000006396f00 r5: 0x0000000000000029 r6: 0x0000000000000000 r7: 0x0000000000000000
    r8: 0x0000000000000000 r9: 0x0000000000000014 r10: 0x0000000000000000 r11: 0x00000000a577ea08
    r12: 0x0000000095889bc0 r13: 0x0000000000000000 r14: 0x0000000000000001 r15: 0x0000000000000001
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000006f2f r19: 0x0000000000000000
    r20: 0x00000000bfffe210 r21: 0x00000000bfffe1e0 r22: 0x00000000bfffdcc0 r23: 0x00000000bfffdbf0
    r24: 0x00000000a5782f80 r25: 0x00000000bfffd4a0 r26: 0x00000000bfffdbf0 r27: 0x0000000005168dc0
    r28: 0x0000000005db6c60 r29: 0x0000000000000000 r30: 0x0000000006409948 r31: 0x0000000095895448
    Binary Images Description:
    0x1000 - 0xdcfff com.apple.Safari 2.0.4 (419.3) /Applications/Safari.app/Contents/MacOS/Safari
    0x553b000 - 0x553dfff com.apple.textencoding.unicode 2.0 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
    0x8fe00000 - 0x8fe51fff dyld 45.3 /usr/lib/dyld
    0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x9021b000 - 0x90268fff com.apple.CoreText 1.0.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90373000 - 0x9072dfff com.apple.CoreGraphics 1.258.38 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x908dc000 - 0x908dcfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90ae8000 - 0x90b5afff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
    0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.8 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f90000 - 0x90fd1fff com.apple.CFNetwork 4.0 (129.19) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90fe6000 - 0x90ffefff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100e000 - 0x9108ffff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d5000 - 0x910fefff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9110f000 - 0x9111dfff libz.1.dylib /usr/lib/libz.1.dylib
    0x91120000 - 0x912dbfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913da000 - 0x913e3fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913ea000 - 0x91412fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91425000 - 0x91430fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x91435000 - 0x9143dfff libbsm.dylib /usr/lib/libbsm.dylib
    0x91441000 - 0x914bcfff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914f9000 - 0x914f9fff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914fb000 - 0x91533fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9154e000 - 0x9161bfff com.apple.ColorSync 4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91670000 - 0x91701fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x91748000 - 0x917fffff com.apple.QD 3.10.21 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x9183c000 - 0x9189afff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x918c9000 - 0x918eafff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x918fe000 - 0x91923fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x91936000 - 0x91978fff com.apple.LaunchServices 181 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x91994000 - 0x919a8fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x919b6000 - 0x919f8fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91a0e000 - 0x91ad5fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91b23000 - 0x91b38fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91b3d000 - 0x91b5bfff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b61000 - 0x91bd0fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91be7000 - 0x91bebfff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91bed000 - 0x91c4cfff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91c51000 - 0x91c8efff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91c95000 - 0x91caefff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91cb3000 - 0x91cb6fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91cb8000 - 0x91cb8fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91cba000 - 0x91d9ffff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91da7000 - 0x91dc6fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91e32000 - 0x91ea0fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91eab000 - 0x91f40fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91f5a000 - 0x924e2fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x92515000 - 0x92840fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92870000 - 0x928f8fff com.apple.DesktopServices 1.3.5 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x92939000 - 0x92b64fff com.apple.Foundation 6.4.6 (567.27) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92c82000 - 0x92d60fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92d80000 - 0x92e6efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92e80000 - 0x92e9efff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92ea9000 - 0x92f03fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92f21000 - 0x92f21fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92f23000 - 0x92f37fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92f4f000 - 0x92f5ffff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92f6b000 - 0x92f80fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92f92000 - 0x93019fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x9302d000 - 0x93038fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x93042000 - 0x9306ffff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x93089000 - 0x93098fff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x930a4000 - 0x9310afff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x9313b000 - 0x9318afff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x931b8000 - 0x931d5fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x931e7000 - 0x931f4fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x931fd000 - 0x9350afff com.apple.HIToolbox 1.4.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x93659000 - 0x93665fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x9366a000 - 0x9368afff com.apple.DirectoryService.Framework 3.1 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x936de000 - 0x936defff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x936e0000 - 0x93d13fff com.apple.AppKit 6.4.7 (824.41) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x940a0000 - 0x94110fff com.apple.CoreData 80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x94149000 - 0x9420cfff com.apple.audio.toolbox.AudioToolbox 1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x9425e000 - 0x9425efff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x94260000 - 0x94433fff com.apple.QuartzCore 1.4.9 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x94489000 - 0x944c6fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x944ce000 - 0x9451efff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x945af000 - 0x945e7fff com.apple.vmutils 4.0.0 (85) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x9462a000 - 0x94646fff com.apple.securityfoundation 2.2 (27710) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x9465a000 - 0x9469efff com.apple.securityinterface 2.2 (27692) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x946c2000 - 0x946d1fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x946d9000 - 0x946e6fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x9472c000 - 0x94745fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x94cea000 - 0x94e1afff com.apple.AddressBook.framework 4.0.4 (485.1) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x94eac000 - 0x94ebbfff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x94ec3000 - 0x94ef0fff com.apple.LDAPFramework 1.4.1 (69.0.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x94ef7000 - 0x94f07fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x94f0b000 - 0x94f3afff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x94f4a000 - 0x94f67fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x9567e000 - 0x9570cfff com.apple.WebKit 418.9.1 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x95768000 - 0x957fefff com.apple.JavaScriptCore 418.3 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCor e.framework/Versions/A/JavaScriptCore
    0x9583b000 - 0x95b47fff com.apple.WebCore 418.21 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x95cd0000 - 0x95cf9fff libxslt.1.dylib /usr/lib/libxslt.1.dylib
    0x9a49f000 - 0x9a4d5fff com.apple.Syndication 1.0.6 (54) /System/Library/PrivateFrameworks/Syndication.framework/Versions/A/Syndication
    0x9a4f2000 - 0x9a504fff com.apple.SyndicationUI 1.0.6 (54) /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
    Model: PowerBook5,4, BootROM 4.8.6f0, 1 processors, PowerPC G4 (1.1), 1.5 GHz, 1.25 GB
    Graphics: ATI Mobility Radeon 9700, ATY,RV360M11, AGP, 64 MB
    Memory Module: SODIMM0/J25LOWER, 256 MB, DDR SDRAM, PC2700U-25330
    Memory Module: SODIMM1/J25UPPER, 1 GB, DDR SDRAM, PC2700U-25330
    AirPort: AirPort Extreme, 405.1 (3.90.34.0.p18)
    Modem: Jump, , V.92, Version 1.0,
    Bluetooth: Version 1.7.8f2, 2 service, 0 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    PCI Card: TXN,PCIXXXX-00, cardbus, PC Card
    Parallel ATA Device: MATSHITADVD-R UJ-825, 791.07 MB
    Parallel ATA Device: FUJITSU MHT2080AT, 74.53 GB
    USB Device: Hub, , Up to 480 Mb/sec, 500 mA
    USB Device: Mass Storage Device, Generic, Up to 480 Mb/sec, 500 mA
    USB Device: Cypress AT2LP RC7, , Up to 480 Mb/sec, 500 mA
    USB Device: USB OpticalWheel Mouse, , Up to 1.5 Mb/sec, 500 mA
    USB Device: USB Mass Storage Device, Myson Century, Inc., Up to 480 Mb/sec, 500 mA
    USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
    FireWire Device: PL-3507C Drive, Prolific, Up to 400 Mb/sec
    Powerbook G4 15" 1.5 GHz   Mac OS X (10.4.8)   All automatical updates performed

    Sometimes the automatic Software Update mechanism built into Mac OS X fails to display appropriate, available updates, or fails to properly apply updates that have been successfully downloaded. It also is sometimes inaccessible via its normal location in the Apple menu.
    "Grayed-Out" Software Update menu item Generally, Software Update can be universally accessed via the Apple menu. In some cases however -- sometimes after a major system update -- the Software Update menu item appears in a grey shade indicating that it cannot be selected
    The most consistent workaround for this issue has been clearing of system caches -- a task easily accomplished with a tool like Panther Cache Cleaner.
    Unable to apply updates Some users are presented with a permissions error referring to the directory: "/tmp/501/TemporaryItems/com.apple.SoftwareUpdate." when attempting to check for new updates, install updates, or launch the Software Update application.
    There are a number of causes for, and solutions to this issue.
    Moved applications First, if you have moved any Apple applications from their original locations inside the "Applications" folder, Software Update may not be able to locate them. Make sure to leave Apple-installed applications where they are originally installed.
    Permissions repairs Next, try using Apple's Disk Utility (located in Applications/Utilities) to repair permissions, then try running Software Update again. This works for a high percentage of afflicted systems. Failing this, try starting up from your Mac OS X CD/DVD and repairing permissions again.
    Deleting Receipts In some cases, the issue can be resolved by deleting one or a handful of files inside the Mac OS X Library folder. Try deleting the "receipt(s)" that corresponds to the application or Mac OS X version you are attempting to install (i.e. iPhotoUpdate403.pkg or MacOSXUpdate10.3.8.pkg). The receipts are located in /Library/Receipts, and appear as .pkg files (these files tell Software Update whether or not a specific update has been installed).
    Modifying permissions A somewhat more tedious process involves using the tool BatChmod to modify folder permissions for the "/tmp/501" directory implicated by the error message mentioned above. Use the Finder to search for names containing 501 or 502 (depending on your error message) with second criteria both visible and invisible then drag the enclosing invisible Temp folder on to the BatChmod icon and select the 'Apply Ownership and Privileges' then press apply 'Apply' button.
    tar missing (Developer Tools uninstalled) In some cases, applications critical to Software update -- in particular tar and pax may be missing from your Mac OS X installation. In order to make sure that these applications to indeed reside on your startup drive, you may want to try an Archive and Install process, restoring these critical components that may have been otherwise damaged.
    This problem can occur, for instance, if you previously installed XCode and then used the XCode Tools uninstaller. The uninstaller may mistakenly break the tar utility, causing Software Update to fail. Reinstalling the XCode Tools from the Panther CD can cause this issue.
    Logical link broken In other cases, the logical link for the /tmp directory may be broken. Entering the following commands through the Terminal application (located in Applications/Utilities on a standard Mac OS X installation) usually resolves this problem (note that you will be asked for your administrator password):
    sudo mv /tmp /tmp_old
    sudo ln -s /private/tmp /tmp
    Waiting Finally simply waiting and trying the update again at a later time has proved successful for a number of users.
    Of course, if the update is available from Apple's software download page, you can obtain the appropriate installers via this route until you can solve the issue with Software Update.

  • JMF and SWT

    This has probably been discussed a million times but I'm really struggling with it. I'm creating an SWT application built on the eclipse rcp, and I'm trying to add a video player to a view.
    I have been trying to add a MediaPlayer bean to the view, that will for the time being, just play a short clip from my hard-drive. I've created a new AWT frame for it to live in, and have successfully managed to add this to the view.
    However, when I try and add my MediaPlayer bean, I am faced with the following exception:
    java.lang.NoClassDefFoundError: javax/media/bean/playerbean/MediaPlayerThe jmf.jar has been added to my project, and I have added the following to my product VM arguments:
    -Djava.library.path=C:\\WINDOWS\\system32Can anyone help me out with fixing this problem?

    Did you eventually get this to work?
    I am looking at developing a simple bespoke player using SWT and JMF and was wondering if you could give me any pointers to start,
    Thanks
    Jonathan

  • Cannot delete reports, unless I close and open Eclipse/Tomcat

    Please can someone help me.
    I cannot delete reports. I have not worked out all the details yet but this is what I got so far...
    First I thought it was a problem with my tomcat setup, I would deploy my WAR and run the app. After
    viewing the report and closing the browser. I would not beable to delete the rpt file until I close Tomcat.
    I have now got a similar problem within Eclipse. (as far as I can tell its the same problem but even worse)
    If i create any report and design it or even a new blank report. And not do anything to it, just save it as a blank report. I then try delete the
    report. Right click and then delete.
    After a few seconds Eclipse brings up an error and says it cant delete the file, the reason it gives is
    Problems encountered while deleting resources.
      Could not delete 'C:\WorkSpace\Project\WebContent\Report1.rpt'.
        Problems encountered while deleting files.
          Could not delete: C:\WorkSpace\Project\WebContent\Report1.rpt.
    I have tried creating a fresh new project and only one report. And I still get the error.
    If I try delete the whole project perminatly it also gives the same error. (But deletes the default crystal report)
    I have to close Eclipse and then open it again before I can delete the rpt files properly.
    I have not always had this problem. It used to work fine (dont ask what I have done since
    cause I would not beable to tell, sorry)
    Hopefully someone can help me, as this is driving me insane, and having to stop and start Tomcat every
    time I want to deploy a new test version is not really an option.
    Cheers
    Darren

    Hi Merry,
    Thanks for getting back to me.
    My reports within Eclipse seem to be behaving themselves now and dying gracefully without and hassles,
    so I dont know what fixed that problem as I have not made any changes or done any updates. One of
    those things I guess.
    With regards to TOMCAT still having a handle on the reports, As far as I am aware I am putting the
    report source in session
    Below is my JSP that loads the report
    I store report name in session via a servlet and set all the DB connection details in the servlet also.
    imports....
    try {
       String reportName = session.getAttribute("Report").toString();
       ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
       if (clientDoc == null) {
          clientDoc = new ReportClientDocument();
          // Open report
          clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
          // ****** BEGIN LOGON DATASOURCE SNIPPET **************** 
             //Call the process to set all the database detail retrieved from web.xml
             // Custom function to set the connection details
             ReportFunctions.setConnection(clientDoc);
          // ****** END LOGON DATASOURCE SNIPPET ****************           
          // Store the report document in session
          session.setAttribute(reportName, clientDoc);
       // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
          // Create the CrystalReportViewer object
          CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
          //set the reportsource property of the viewer
          IReportSource reportSource = clientDoc.getReportSource();                    
          crystalReportPageViewer.setReportSource(reportSource);
          // set viewer attributes
          crystalReportPageViewer.setOwnPage(true);
          crystalReportPageViewer.setOwnForm(true);
          crystalReportPageViewer.setDisplayGroupTree(false);
          crystalReportPageViewer.setHasToggleGroupTreeButton(false);
          crystalReportPageViewer.setHasPrintButton(false);
          crystalReportPageViewer.setEnableDrillDown(false);
          // Process the report
          crystalReportPageViewer.processHttpRequest(request, response, application, null);
       // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
       } catch (ReportSDKExceptionBase e) {
        out.println(e);
    So far its very basic.
    How best can I kill and clean up once the web page is closed. I have tried a few options but dont seem to
    know the best way,
    I tried "onbeforeunload" but I dont know if this is the best practice,
    I have a session listener with sessionDestroyed but have not learnt how to envoke this correctly, or atleast when to correctly call it. And then I dont know how to clean out any loaded reports from here.
    I have used 
    request.getSession().invalidate();
    at the end of my JSP but that destoys everything everytime a user does anything on the page, (selecting any of the buttons on the report)
    I am still learning everyday, and so I appoligise for questions that I should really know, am being pushed into the deep end here so trying my best :).
    Thanks again.
    Cheers
    Darren
    Sorry for bumping this back the list, but I am at my wits end as how best to "clean out" the reports
    once they have been closed or timed out.
    Surely there must be a way to release all objects (be it a actaul rpt file or the classes12.jar) once the
    reports have been viewed and closed.
    Even if there is something I can load via another servlet that destroys anything that has to do
    with the main website.
    Thanks and again sorry for moving this back up the list. If i get no replies, ill assume this is impossible
    and that the only way to upload a new version of a report is to shut the whole Tomcat service and
    make the changes.
    Cheers
    Edited by: Darren Jackson on Dec 3, 2008 12:31 PM

  • Sql statement add an "N" literal wher reporting trough oracle 10g and lib eclipse

    <p>the same select created with crystal report 9 and oracle 8.04 with crystal report XI and oracle 10G have some difference. In the crystal report XI the statement contains an &#39;N&#39; literal that should not be there.</p><p>I have used the Service pack 1 of Business Object XI r2 on the server and here i haven&#39;t problem.</p><p>When I use the same report throught an applet with the CRXI library&#39;s I have the problem of "N" literal</p><p>I work with Eclipse, java, CRXI, and oracle10g</p>

    JRC/Crystal Report XI generated SQL automatically add an "N" literal in front of some values which can not even execute in the SQL*Plus.

  • Questions about ActiveX Bridge and SWT

    Hi !
    I found few weeks ago the www.reallyusefulcomputing.com site answering my question about Java & Macro of MSWord. Now I've found two steps that I am not able to overcome.
    First, when I build a simple application and I have internal libraries to use, am I compelled to place the jars in the lib/ext directory of the Java Runtime Directory? I have many difficulties in placing a convenient class-path in the manifest file. Why does the application ignore the manifest string?
    The second problem (and the biggest one) is that I am trying to build an SWT java-bean-application but I have problems during runtime. Is it possible to use this technology for my software or am I compelled to use AWT and SWING?
    I really hope you can help me.
    Thank you in advance.

    hi,
    I have to catch events from excel sheet in my java code..events like some change in value or a click of some user defined button etc.I have written th follwoing code but it does not gives me any event.It simply opens the specified file in the excel in a seperate window.but when i click on the sheet or change some value no event is captured by my code....can ne one pls tell me how to go about it....
    public class EventTry2 {
         private Shell shell;
         private static OleAutomation automation;
         static OleControlSite controlSite;
         protected static final int Activate = 0x00010130;
         protected static final int BeforeDoubleClick = 0x00010601;
         protected static final int BeforRightClick = 0x000105fe;
         protected static final int Calculate = 0x00010117;
         protected static final int Change = 0x00010609;
         protected static final int Deactivate = 0x000105fa;
         protected static final int FollowHyperlink = 0x000105be;
         protected static final int SelectionChange = 0x00010607;
         public void makeVisible()
              Variant[] arguments = new Variant[1];
              arguments[0]=new Variant("true");
              //Visible---true
              automation.setProperty(558,arguments);
              //EnableEvent--true
              boolean b =automation.setProperty(1212,arguments);
            System.out.println(b);
             public Shell open(Display display){
             this.shell=new Shell(display);
              this.shell.setLayout(new FillLayout());
              Menu bar = new Menu(this.shell,SWT.BAR);
              this.shell.setMenuBar(bar);
              OleFrame frame = new OleFrame(shell,SWT.NONE);
            File file= new File("C:\\Book1.xls");
              try{
              controlSite =  new OleControlSite(frame, SWT.NONE, "Excel.Application");
              this.shell.layout();
              boolean a2=true;
              a2=(controlSite.doVerb(OLE.OLEIVERB_SHOW|OLE.OLEIVERB_OPEN|OLE.OLEIVERB_UIACTIVATE|OLE.OLEIVERB_HIDE|OLE.OLEIVERB_PROPERTIES|OLE.OLEIVERB_INPLACEACTIVATE)== OLE.S_OK);
              System.out.println("Activated::\t"+a2);
            }catch(SWTException ex)
                 System.out.println(ex.getMessage());
                 return null;
              automation = new OleAutomation(controlSite);
              //make the application visible
              makeVisible();
              System.out.println("Going to create Event listener");
              OleListener eventListener=new OleListener(){
                   public void handleEvent(OleEvent event){
                        System.out.println("EVENT TYPE==\t"+event.type);
                   switch(event.type){
                   case Activate:{
                        System.out.println("Activate Event");
                   case BeforeDoubleClick:{
                        System.out.println("BeforeDoubleClick Event");
                   case BeforRightClick:{
                        System.out.println("BeforeRightClick Event");
                   case Calculate:{
                        System.out.println("Calculate Event");
                   case Change:{
                        System.out.println("Change Event");
                   case Deactivate:{
                        System.out.println("DeActivate Event");
                   case FollowHyperlink:{
                        System.out.println("Activate Event");
                   case SelectionChange:{
                        System.out.println("Activate Event");
                        Variant[] arguments = event.arguments;
                        for(int i=0;i<arguments.length;i++)
                             System.out.println("@@");
                             arguments.dispose();
              System.out.println("outside");
              OleAutomation sheetAutomation=this.openFile("C:\\Book1.xls");
              controlSite.addEventListener(sheetAutomation,Activate,eventListener);
              controlSite.addEventListener(sheetAutomation,BeforeDoubleClick,eventListener);
              controlSite.addEventListener(sheetAutomation,BeforRightClick,eventListener);
              controlSite.addEventListener(sheetAutomation,Calculate,eventListener);
              controlSite.addEventListener(sheetAutomation,Change,eventListener);
              controlSite.addEventListener(sheetAutomation,Deactivate,eventListener);
              controlSite.addEventListener(sheetAutomation,FollowHyperlink,eventListener);
              controlSite.addEventListener(sheetAutomation,SelectionChange,eventListener);
              shell.open();
              return shell;
         public OleAutomation openFile(String fileName)
              Variant workbooks = automation.getProperty(0x0000023c);//get User Defined Workbooks
              Variant[] arguments = new Variant[1];
              arguments[0]= new Variant(fileName);
              System.out.println("workbooks::\t"+workbooks);
              IDispatch p1=workbooks.getDispatch();
              int[] rgdispid = workbooks.getAutomation().getIDsOfNames(new String[]{"Open"});
              int dispIdMember = rgdispid[0];
              Variant workbook = workbooks.getAutomation().invoke( dispIdMember, arguments );
              System.out.println("Opened the Work Book");
              try {
                   Thread.sleep(500);
              } catch (InterruptedException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              int id = workbook.getAutomation().getIDsOfNames(new String[]{"ActiveSheet"})[0];
              System.out.println(id);
              Variant sheet = workbook.getAutomation().getProperty( id );
              OleAutomation sheetAutomation=sheet.getAutomation();
              return(sheetAutomation);
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Display display=new Display();
              Shell shell=(new EventTry2()).open(display);
              while(!shell.isDisposed()){
                   if(!display.readAndDispatch()){
                        display.sleep();
              controlSite.dispose();
              display.dispose();
              System.out.println("-----------------THE END-----------------------------");

  • Using And Managing Eclipse

    How do people manage Eclipse?
    I have read the wiki and I find that installing plugins running as root is a pain because java isn't setup for the root user.
    If I install plugins as me through the IDE itself then they are blown away when Eclipse upgrades.
    Themes don't work if I try to install them as me.
    How the heck do people manage using Eclipse?  I just want to use PyDev with the Juno theme and have all parts of the IDE working.
    Does anyone have any way they manage it in a sane manner?

    install your own copy and put it anywhere you like. you will be much happier in terms of being able to install additional plugins etc. I find managing eclipse separately from the package manager to be much easier than using the repo version.
    I just unzipped eclipse under my home/dev folder. I have never had any problems with themes either.

Maybe you are looking for