beanshell interpreter thread

Discussion in 'Java' started by timinganalyzer, Sep 10, 2008.

  1. Hi All,

    I'm don't have any experience with threads in Java but when I added
    the beanshell interpreter in a JConsole window as shown in the
    examples on the Beanshell website, its starts in a new thread.
    My beanshell scripts which modify the main application data structures
    apparently conflict the main application paint() methods as they both
    end accessing the data structures at the same time which causes a java
    exception. The same scripts work when starting the interpreter in
    the same thread not using the JConsole.

    Is there a way synchronize the interpreter started in a new thread
    that runs in the JConsole to the main application thread so this
    conflict does not occur?

    Thanks in advance for any help,
    timinganalyzer, Sep 10, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SOl

    [BEANSHELL] Extends

    SOl, Jul 19, 2003, in forum: Java
    Replies:
    0
    Views:
    391
  2. Wolfgang Groiss
    Replies:
    0
    Views:
    395
    Wolfgang Groiss
    Nov 19, 2003
  3. Michael Pitoniak
    Replies:
    1
    Views:
    554
    Michael Pitoniak
    Dec 20, 2003
  4. Uppu
    Replies:
    0
    Views:
    356
  5. timinganalyzer

    beanshell interpreter

    timinganalyzer, Jul 7, 2008, in forum: Java
    Replies:
    0
    Views:
    410
    timinganalyzer
    Jul 7, 2008
Loading...

Share This Page