Vst embedded in java application?

hi
I am writing here because I was redirected.
I would like to know if it is possibile and where to find information and resources to do this:
calling a vst virtual instrument from a java application displaying it in a frame and controlling it by calls.
thanks

vst is for "virtual instrument", a technology from steinberg.
this kind of programs are dlls and are used in sequencer environments like cubase.
a vst is a dll file that cubase or this sort of software can load and communicate with by function calls. it has a gui too to tweak its parameters.
so, I ask someone who knows how all this work to please help with some information.
thanks

Similar Messages

  • Embedded Tomcat Java Application

    Hi
    I am using an Embedded Tomcat Java Application.
    I am getting the following Exception when i run the program.
    java.lang.NullPointerException
         at org.apache.catalina.startup.DigesterFactory.register(DigesterFactory.java:174)
         at org.apache.catalina.startup.DigesterFactory.registerLocalSchema(DigesterFactory.java:130)
         at org.apache.catalina.startup.DigesterFactory.newDigester(DigesterFactory.java:92)
         at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:435)
         at org.apache.catalina.startup.ContextConfig.createWebDigester(ContextConfig.java:422)
         at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:499)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:623)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:846)
         at EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:77)
         at EmbeddedTomcat.main(EmbeddedTomcat.java:135)
    could anyone tell me how to solve this problem
    Thanx & Regards
    Faisal

    Hi
    R u able to resolve the problems.... If yes please provide me the info... I'm also facing the same problem...
    REgards
    siddhu

  • Embedding a java application (servlets) in a portlet

    Hi all,
    We have an existing java application that we want to run as a portlet in our portal internet site. The application is a simple search form, which submits parameters (search criteria) and returns results, from there can click on a few other things and open some documents etc. We want all this to happen in the same portlet window, rather than opening out to a new window. Can someone please advise if this can be done? We are running release 1 of 9IAS (and we can't upgrade to rel 2 yet) with PDK March. We would preferably like to do this without touching/reprogramming the java code. I have seen a couple of conficting posts in this forum about this - some say can be done, some say can't be done. Please advise:
    1. Is there some kind of wrapper that can be applied to keep this app inside the portlet?
    2. What other alternatives are there to getting this java app inside?
    3. Are there any step by step guides to doing this?
    Any help would be much appreciated. Thanks heaps, Sarah

    I have tried the URL services, it displays the page fine within the portlet. Just one problem though. The links that are embedded in the HTML will open new windows when clicked. We want them to stay within the portlet. Does something need to be changed in my xml file? I have
    <renderer class="oracle.portal.provider.v1.RenderManager">^M
    <showPage class="oracle.portal.provider.v1.http.URLRenderer">^M
    <contentType>text/html</contentType>^M
    <pageExpires>60</pageExpires>^M
    <pageUrl>http://www.oracle.com</pageUrl>^M
    <filter class="oracle.portal.provider.v1.http.HtmlFilter">^M
    <headerTrimTag>&lt;center</headerTrimTag>^M
    <footerTrimTag>/center></footerTrimTag>^M
    <convertTarget>true</convertTarget>^M
    </filter>^M
    </showPage>^M
    </renderer>^M
    perhaps I need a different renderer? I saw another post had something in the xml :
    <inlineRendering>true</inlineRendering>
    that looks promising. Will that deliver the results I'm looking for? Where does it get added?
    Thanks for any replies. Sarah

  • Embedding video in Java Application

    I'm a total newbie, trying to decide if Java is the way to go for our application.
    We want to be able to create an interactive application with buttons, drag & drop, data input fields, hot spots, etc
    AND also show video... windows format, apple format, flash format.
    We want our application to be deployable either as...
    1 - a standalone app... running on a system not on a network or the internet
    2 - a web app
    We want the video player to be embedded in the application and not launch a player in a seperate window... thus we want to maintain as much control within the confines of our application as possible.
    MY QUESTIONS:
    1 - Will the Java Media Framework allow us to embed movies in our application as described?
    2 - Is it fairly easy to code such in our Java application?
    3 - Any code snippets around?
    4 - Re: Standalone/CD distribution version: Can the JMF be installed along with the application so the client doesn't have to "go out and install more stuff" ??
    5 - Re: Web - must the user download and install more stuff... other than the Java Virtual Machine to have the JMF work on their system?
    6 - Is the JMF multi-platform... Windows, Apple, Unix/Linux, etc like the JVM ?
    thanks for any help on this. Will

    Yes all of what you require is doable in Java
    Try
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
    Check some of these samples
    Also for a web version check
    http://java.sun.com/dev/evangcentral/totallytech/jmf2.html
    (Haven't studied this myself - but should give you an idea or two)
    Platform-wise - check here
    http://java.sun.com/products/java-media/jmf/2.1.1/download.html
    In terms of CD distribution - you should be able to package most stuff into a Jar file
    Not completely sure as there are 'Windows Performance pack' downloads which I think toake advantage of native DLLs
    Have a read around the JMF Installation pages - should answer most of your questions

  • Embedding Internet Explorer GUI in Java Application

    let me preface this post by saying that i have seen the javatip66 reference on javaworld.com and that has considerable merit. i may end up using that methodology.
    what i would like to be able to do, of course, is to embed JUST the "HTML pane" of IE/Netscape (excluding ToolBar and Address Bar, etc) inside a Java application. i am not an MFC developer, so i'm not sure where to begin looking or if JNI will allow me to hack that dll.--or even if that canvas/panel/whatever can be invoked independently to render a document.
    i have several complete, fully working GUI applications that use the javax.swing.JEditor interfaces to display various mime formatted documents (content types such as "text/html" and "text/plain"). unfortunately, the Java implementations of these Editors don't sync with what everyone is used to in IE/Netscape...to the degree that content is intractably mis-displayed (is that a word?)
    worst case scenario, i will invoke a new browser to display content, but i would prefer to frame those browsers in my applications. thoughts?
    note: one of the primary problems is the the JFC classes support only up to HTML 3.2 which is as good as archaic these days.

    i think you just nailed it. i do imagine that this is the correct forum for this, but i could cross-post to the Swing forum. certainly it is going to require switching on the version of Windows. perhaps we can find a general/create a discussion on integrating ActiveX controls in Java. [man, this is just the most bass ackwards thing ever. hate doing this kind of thing, but it's the "state of the world."] (at least until Sun/3rd party gets a reasonable HTML document renderer.)

  • Embedding Google earth in Java Application

    I have developed a java application with help of wings i wanna embed google earth can sum1 guide from were to proceed plz

    Hitish wrote:
    I have developed a java application with help of wings i wanna embed google earth can sum1 guide from were to proceed plzPlease don't use silly SMS speak.
    Embed Google Earth? Does it have any exposed APIs. If not then no.

  • Embedding JBoss Naming In My Own Java Application

    Hi all,
    Thanks in advance for taking the time and effort to answer my question.
    I'm trying to embed the JBoss naming server in my own Java application. I'm using the code from version 4.2.1.GA. I've thoroughly read the Java code, and found it a little confusing. Among other classes, I've read the code from org.jboss.naming.NamingService and org.jnp.server.Main. I've been trying for days with no luck. Here's a class from my simplest attempt:
    // Server.java
    package miaJs.server;
    import org.apache.log4j.Logger;
    import org.jboss.naming.NamingService;
    import org.jnp.server.Main;
    import org.quartz.Scheduler;
    import org.quartz.SchedulerException;
    import org.quartz.impl.StdSchedulerFactory;
    public class Server
    * Logger for this class.
    private static final Logger logger =
    Logger.getLogger("miaJs.server.Server");
    * Start the server.
    public void start()
    logger.debug("Server ClassLoader: " +
    this.getClass().getClassLoader().getClass().getName());
    try
    logger.debug("Starting JBoss naming server...");
    Main namingServer = new Main();
    namingServer.start();
    catch (Throwable t)
    logger.error("Error starting Java Job Scheduler: " +
    t.getMessage(),
    t);
    System.exit(1);
    try
    // Register a shutdown hook
    ServerShutdownHook shutdownHook = new ServerShutdownHook();
    Runtime.getRuntime().addShutdownHook(shutdownHook);
    catch (Throwable t)
    logger.error("Error adding server shutdown hook: " +
    t.getMessage(),
    t);
    System.exit(1);
    The above example gives me the following NullPointerException:
    lljava.lang.NullPointerException
    jvm 1 | at org.jnp.server.Main.getNamingInstance(Main.java:301)
    wrapper | Pause reading child output to share cycles.
    wrapperp | socket read failed. (An established connection was aborted by the software in your host machine. (0x2745
    jvm 1 | at org.jnp.server.Main.initJnpInvoker(Main.java:354)
    jvm 1 | at org.jnp.server.Main.start(Main.java:316)
    jvm 1 | at miaJs.server.Server.start(Server.java:45)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
    wrapper | Pause reading child output to share cycles.
    wrapperp | server listening on port 32000.
    jvm 1 | at miaJs.server.Bootstrap.start(Bootstrap.java:135)
    jvm 1 | at miaJs.server.Bootstrap.main(Bootstrap.java:76)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
    jvm 1 | at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
    jvm 1 | at java.lang.Thread.run(Thread.java:595)
    I've tried the JBoss forum but it didn't help.
    What I really want is a simple in-memory JNDI server that doesn't have external dependencies. I really hope the JBoss naming service can achieve this.
    Thanks again.

    I'm sorry, we don't generally have that kind of information in this forum. I'd suggest asking the developer of the add-on. If you're using [https://addons.mozilla.org/en-us/firefox/addon/selenium-expert-selenium-ide/ Selenium Expert (Selenium IDE)], the support link listed is http://blog.reallysimplethoughts.com/

  • Help please! Java application and web application...

    Hi,
    I have a problem with inserting a java application (Main.java) in a web application(index.jsp).
    I found a source demo of a drag and drop application on the Internet, but now I want to
    have the drag and drop application work in a Jpanel/JFrame in a webapplication.
    The drag and drop application code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Main {
        public static void main(final String[] args) {
            final ButtonGroup grp = new ButtonGroup();
            final JPanel palette = new JPanel(new FlowLayout(FlowLayout.LEFT));
            palette.setBorder(BorderFactory.createTitledBorder("Palette"));
            final MainPanel mainPanel = new MainPanel();
            mainPanel.setPalette(palette);
            for(int j=0; j<4; j++){
                final JToggleButton btn = new JToggleButton("Panel "+(j+1));
                palette.add(btn);
                grp.add(btn);
                btn.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mainPanel.setAdding(btn.getText());
            final JFrame f = new JFrame("Drag and drop panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(palette, BorderLayout.WEST);
            f.getContentPane().add(mainPanel, BorderLayout.CENTER);
            f.setSize(800, 600);
            f.setVisible(true);
    class MainPanel extends JPanel implements MouseListener, MouseMotionListener {
        private JPanel palette;
        private String adding="";
        private SubPanel hitPanel;
        private int deltaX, deltaY, oldX, oldY;
        private final int TOL = 4;  //tolerance
        public MainPanel() {
            setLayout(null);
            addMouseListener(this);
            addMouseMotionListener(this);
        public void mousePressed(final MouseEvent e) {
            if( adding != "" ){
                setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                SubPanel sub = new SubPanel(adding);
                add(sub);
                sub.setSize(sub.getPreferredSize());
                sub.setLocation((int)e.getX(),(int)e.getY());
                revalidate();
                adding = "";
                return;
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                hitPanel = (SubPanel) c;
                oldX = hitPanel.getX();
                oldY = hitPanel.getY();
                deltaX = e.getX() - oldX;
                deltaY = e.getY() - oldY;
                if( oldX < e.getX()-TOL ) oldX += hitPanel.getWidth();
                if( oldY < e.getY()-TOL ) oldY += hitPanel.getHeight();
        public void mouseDragged(final MouseEvent e) {
            if (hitPanel != null) {
                int xH = hitPanel.getX();
                int yH = hitPanel.getY();
                int xDiff = e.getX()-oldX;
                int yDiff = e.getY()-oldY;
                int cursorType = hitPanel.getCursor().getType();
                if( cursorType == Cursor.W_RESIZE_CURSOR){           //West resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.N_RESIZE_CURSOR){     //North resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth(), hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.S_RESIZE_CURSOR){     //South resizing
                    hitPanel.setSize( hitPanel.getWidth(), hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.E_RESIZE_CURSOR){     //East resizing
                    hitPanel.setSize( hitPanel.getWidth() + xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.NW_RESIZE_CURSOR){     //NorthWest resizing
                    hitPanel.setBounds( e.getX(), e.getY(), hitPanel.getWidth() - xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.NE_RESIZE_CURSOR){     //NorthEast resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth() + xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.SW_RESIZE_CURSOR){     //SouthWest resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.SE_RESIZE_CURSOR){     //SouthEast resizing
                    hitPanel.setBounds( xH, yH, hitPanel.getWidth() + xDiff, hitPanel.getHeight() + yDiff );
                }else{      //moving subpanel
                    hitPanel.setLocation( e.getX()-deltaX, e.getY()-deltaY );
                oldX = e.getX();
                oldY = e.getY();
        public void mouseMoved(final MouseEvent e) {
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                int x  = e.getX();
                int y  = e.getY();
                int xC = c.getX();
                int yC = c.getY();
                int w  = c.getWidth();
                int h  = c.getHeight();
                if(       y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL   && x <= xC+TOL  ){
                    c.setCursor(new Cursor(Cursor.NW_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.NE_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.SW_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));
                }else if( x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.W_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL ){
                    c.setCursor(new Cursor(Cursor.N_RESIZE_CURSOR));
                }else if( x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h ){
                    c.setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
                }else{
                    c.setCursor(new Cursor(Cursor.MOVE_CURSOR));
        public void mouseReleased(final MouseEvent e) { hitPanel = null; }
        public void mouseClicked(final MouseEvent e) {}
        public void mouseEntered(final MouseEvent e) {}
        public void mouseExited(final MouseEvent e) {}
        public void setAdding(final String string) {
            adding = string;
            setCursor(new Cursor(Cursor.HAND_CURSOR));
        public void setPalette(final JPanel panel) { palette = panel; }
    class SubPanel extends JPanel {
        public SubPanel(final String name) {
            setPreferredSize(new Dimension(100, 100));
            setBorder(new TitledBorder(new LineBorder(Color.BLACK), name));
    }This application works with JFrame, but I want to display the JFrame in a webapplication (JSP Page).
    I'm using Netbeans 6.0 (GlassFish) to create webapplication using Visual Web JavaServer Faces.
    So in summary:
    How can i display the drag and drop application into a JFrame (better in a JPanel) in a webapplication (index.jsp)??
    Hope you can help...
    Thanks in advance...
    Greetings,
    Rajsh

    So have an applet that opens a JFrame... JSP or not has nothing to do with it, since it's nothing but HTML the client gets.
    You can't have a JFrame embedded in an HTML page. And if you could have an applet but don't know how to get that copied code to fit inside (I mean, content pane is content pane), you might want to consider learning how to do that.

  • Problems with WLST embedded in java app.

    Hi,
    I have a problem with the WLST embedded in a java app.
    I want to programatically create or reconfigure a domain from a java application. Following is a simple example of what I want to do.
    import weblogic.management.scripting.utils.WLSTInterpreter;
    public class DomainTester {
      static WLSTInterpreter interpreter = new WLSTInterpreter();
      private void processDomain() {
        if(domainExists()) {
          System.out.println("Should now UPDATE the domain");
        } else {
          System.out.println("Should now CREATE the domain");
      private boolean domainExists() {
        try {
          interpreter.exec("readDomain('d:/myDomains/newDomain')");
          return true;
        }catch(Exception e) {
          return false;
    }The output of this should be one of two possibles.
    1. If the domain exists already it should output
    "Should now UPDATE the domain"
    2. If the domain does not exist it should output
    "Should now CREATE the domain"
    However, if the domain does not exist the output is always :
    Error: readDomain() failed. Do dumpStack() to see details.
    Should now UPDATE the domain
    It never returns false from the domainExists() method therefor always states that the exec() worked.
    It seams that the exec() method does not throw ANY exceptions from the WLST commands. The catch clause is never executed and the return value from domainExists() is always true.
    None of the VERY limited number of examples using embedded WLST in java has exception or error handling in so I need to know what is the policy to detect failures in a WLST command executed in java??? i.e. How does my java application know when a command succeeds or not??
    Regards
    Steve

    Hi,
    I did some creative wrapping for the WLSTInterpreter and I now have very good programatic access to the WLST python commands.
    I will put this on dev2dev somewhere and release it into the open source community.
    Don't know the best place to put it yet, so if anybody sees this and has any good ideas please feel free to pass them on.
    Here is the wrapper class. It can be used as a direct replacement for the weblogic WLSTInterpreter. As I can't overload the actual exec() calls because I want to return a String from this call I created an exec1(String command) that will return a String and throw my WLSTException which is a RuntimeException which you can handle if you like.
    It sets up stderr and stdout streams to interpret the results both from the Python interpreter level and at the JVM level where dumpStack() just seem to do a printStackTrace(). It also calls the dumpStack() command should the result contain this in its text. If either an exception is thrown from the lower level interpreter or dumpStack() is in the response I throw my WLSTException containing this information.
    package eu.medsea.WLST;
    import java.io.ByteArrayOutputStream;
    import java.io.PrintStream;
    import weblogic.management.scripting.utils.WLSTInterpreter;
    public class WLSTInterpreterWrapper extends WLSTInterpreter {
         // For interpreter stdErr and stdOut
         private ByteArrayOutputStream baosErr = new ByteArrayOutputStream();
         private ByteArrayOutputStream baosOut = new ByteArrayOutputStream();
         private PrintStream stdErr = new PrintStream(baosErr);
         private PrintStream stdOut = new PrintStream(baosOut);
         // For redirecting JVM stderr/stdout when calling dumpStack()
         static PrintStream errSaveStream = System.err;
         static PrintStream outSaveStream = System.out;
         public WLSTInterpreterWrapper() {
              setErr(stdErr);
              setOut(stdOut);
         // Wrapper function for the WLSTInterpreter.exec()
         // This will throw an Exception if a failure or exception occures in
         // The WLST command or if the response containes the dumpStack() command
         public String exec1(String command) {
              String output = null;
              try {
                   output = exec2(command);
              }catch(Exception e) {
                   try {
                        synchronized(this) {
                             stdErr.flush();
                             baosErr.reset();
                             e.printStackTrace(stdErr);
                             output = baosErr.toString();
                             baosErr.reset();
                   }catch(Exception ex) {
                        output = null;
                   if(output == null) {
                        throw new WLSTException(e);
                   if(!output.contains(" dumpStack() ")) {
                        // A real exception any way
                        throw new WLSTException(output);
              if (output.length() != 0) {
                   if(output.contains(" dumpStack() ")) {
                        // redirect the JVM stderr for the durration of this next call
                        synchronized(this) {
                             System.setErr(stdErr);
                             System.setOut(stdOut);
                             String _return = exec2("dumpStack()");
                             System.setErr(errSaveStream);
                             System.setOut(outSaveStream);
                             throw new WLSTException(_return);
              return stripCRLF(output);
         private String exec2(String command) {
              // Call down to the interpreter exec method
              exec(command);
              String err = baosErr.toString();
              String out = baosOut.toString();
              if(err.length() == 0 && out.length() == 0) {
                   return "";
              baosErr.reset();
              baosOut.reset();
              StringBuffer buf = new StringBuffer("");
              if (err.length() != 0) {
                   buf.append(err);
              if (out.length() != 0) {
                   buf.append(out);
              return buf.toString();
         // Utility to remove the end of line sequences from the result if any.
         // Many of the response are terminated with either \r or \n or both and
         // some responses can contain more than one of them i.e. \n\r\n
         private String stripCRLF(String line) {
              if(line == null || line.length() == 0) {
                   return line;
              int offset = line.length();          
              while(true && offset > 0) {
                   char c = line.charAt(offset-1);
                   // Check other EOL terminators here
                   if(c == '\r' || c == '\n') {
                        offset--;
                   } else {
                        break;
              return line.substring(0, offset);
    }Next here is the WLSTException class
    package eu.medsea.WLST;
    public class WLSTException extends RuntimeException {
         private static final long serialVersionUID = 1102103857178387601L;
         public WLSTException() {
              super();
         public WLSTException(String message) {
              super(message);
         public WLSTException(Throwable t) {
              super(t);
         public WLSTException(String s, Throwable t) {
              super(s, t);
    }And here is the start of a wrapper class for so that you can use the WLST commands directly. I will flesh this out later with proper var arg capabilities as well as create a whole Exception hierarchy that better suites the calls.
    package eu.medsea.WLST;
    // Provides methods for the WLSTInterpreter
    // just to make life a little easier.
    // Also provides access to the more generic exec(...) call
    public class WLSTCommands {
         public void cd(String path) {
              exec("cd('" + path + "')");
         public void edit() {
              exec("edit()");
         public void startEdit() {
              exec("startEdit()");
         public void save() {
              exec("save()");
         public void activate() {
              exec("activate(block='true')");
         public void updateDomain() {
              exec("updateDomain()");
         public String state(String serverName) {
              return exec("state('" + serverName + "')");
         public String ls(String dir) {
              return exec("ls('" + dir + "')");
         // The generic wrapper for the interpreter exec() call
         public String exec(String command) {
              return interpreter.exec1(command);
         private WLSTInterpreterWrapper interpreter = new WLSTInterpreterWrapper();
    }Lastly here is some example code using these classes:
    its using both the exec(...) and cd(...) wrapper commands from the WLSTCommand.class shown above.
        String machineName = ...; // get name from somewhere
        try {
         exec("machine=create('" + machineName + "','Machine')");
         cd("/Machines/" + machineName + "/NodeManager/" + machineName);
         exec("set('ListenAddress','10.42.60.232')");
         exec("set('ListenPort', 5557)");
        }catch(WLSTException e) {
            // Possibly the machine object already exists so
            // lets just try to look it up.
         exec("machine=lookup('" + machineName + "','Machine')");
    ...After this call a machine object is setup that can be allocated later like so:
         exec("set('Machine',machine)");Regards
    Steve

  • How can i get a java application

    how can i get a java application on my mac pro?

    I'm not sure I understand the question. If the application is a standalone applet, you download it as you would any other application or file. If the applet is embedded in a web site, just go to the appropriate web page.
    If you can provide more specifics about what it is you are trying to download/accomplish, perhaps we can be of more specific assistance.
    Regards.

  • WebDynpro Java application in xMII

    Hi All,
    Is it possible to integrate a web dynpro java application into an xMII dashboard?
    If yes please provide pointers to any suitable documentation.
    Thanks
    Lisha

    Perfectly possible ! I already explained how to include an external application such as your WDJ into a new account assignment block, so to do the same, you just need to add your new component into your business role to have it in your navigation bar.
    Look at this thread: New Assignment Block with embedded BSP in BP Page
    Regards,
    Xavier

  • WebDynpro Java application in Web-UI

    Dear CRM Guru's,
      Can I host a WebDynpro for java application in from Web-UI. My thought is I would deploy the WDJ application in Java stack of CRM server and can I call it from my navigation bar and achieve Single-Sign-On. Appreciate your thoughts on this.
    Thanks!
    Surya.

    Perfectly possible ! I already explained how to include an external application such as your WDJ into a new account assignment block, so to do the same, you just need to add your new component into your business role to have it in your navigation bar.
    Look at this thread: New Assignment Block with embedded BSP in BP Page
    Regards,
    Xavier

  • How connect an HTML page to a running Java Application?

    Hi,
    Exists a way to connect an HTML page to a running Java Application?
    the idea is, If we use SWT, the Browser widget have an instance of IE/Firefox attached to it, and we load local HTML pages inside, then i wish to have a way to bridge Java Application from HTML page. Then with that we can do follow JScript:
    var javaApp = document.getJavaApplication(); //here is the trick
    //below is like we do today with applets
    var person = container.create("myapp.Person");
    person.setName("Test");
    container.save(person);its great if we can Have an attribute for object tag or anything to conect HTML page to Java Application.

    I think that the better idea is to create a new mime type for that, maybe "application/x-java-connect-to-local-jvm", and use embed tag, to connect via plugin to a running JavaApp
    example:
    <embed type="application/x-java-connect-to-local-jvm" width="20" height="20" mainClass="mypackage.AppName"><br>
    <script>
    var javaApp = document.embeds[0];
    function createPerson()
      var person = javaApp.getNew("mypackage.Person");
      person.setName("test");
      javaApp.save(person);
    }The width and height, isnt necessary, but the view can be used to show red if connection failed and green for sucessfull connections, or maybe embed tag can have src to images for sucessfull and unsucessfull states.
    That's the idea, there is a way to extend Java Plugin to achieve that?
    any tip or idea or to achieve that, are welcome.
    Thanks

  • How to allow a Java application to run on any PC without installing jdk?

    I'm doing this program that would retrieve infomation of the PC and send it to the server. In order to do that, i have to email the application to all these PCs. The problem is that some of these PCs may not have JRE or jdk to run the application. Cos, i thought that Java was Write once Run anywhere. I've tried to jar and run it on a PC with no JRE and stuff, How can this be done, I know that using applet is an option, but is there any other way. Pls help me, thanx!

    you need a java virtual machine to run a java application, either it is embedded in the browser ( a native or plug-in ) and you can run your applet in the browser, or, if you don't want your app to be an applet, you have to install a jre on the PC...no other way, i'm afraid
    so write once, run anywhere, provided there's a jre anywhere ! it is the jvm that handles differences between os, and you need to handle that difference somewhere, don't you !

  • Java application to read XMP.

    Would it be possible then to have a Java application reading through the files with XMP embedded and displaying the information?

    Hi Ana, sorry I didn't read your reply earlier, maybe it would have been usefull. There is no e-mail notification on this forum. Now I solved my problem with iView MediaPro and AppleScript. iView can read the "caption" data from the XMP of Photoshop 7 created files.
    Here's my script (not very beautiful mind you, it's the first AS I ever wrote), the comments are in sweidish my native toungue if anyone wonders. Maybe someone else in my situation will benefit from this...
    tell application "iView MediaPro"
    set selectedID to the selection of window 1
    set numItems to the number of items in selectedID
    -- loopa genom de valda filerna
    repeat with i from 1 to numItems
    set j to item i of the selectedID
    set origPath to the path of object j of window 1
    tell application "iView MediaPro"
    --hämta filens namn
    copy the name of object j of window 1 to myFileName
    -- ta bort suffixet ".jpg"
    set KollaAntal to count characters of myFileName
    set myFileNameB to characters 1 thru (KollaAntal - 4) of myFileName
    -- här hämtar vi "caption"/bildtexten
    copy the caption of object j of window 1 to extractedText
    end tell
    -- spara informationen som textfil
    set thePath to path to startup disk as string
    set theData to extractedText
    set fileRef to (open for access file (thePath & myFileNameB & ".txt") with write permission)
    set eof fileRef to 0
    write theData to fileRef
    close access fileRef
    end repeat -- här slutar loopen
    end tell
    -- lite user feedback, ingen egentlig betydelse, men "känns bra"
    tell application "Finder"
    display dialog "Skriptet har utförts" buttons {"OK"} default button 1 with icon note
    end tell

Maybe you are looking for

  • Windows Vista Home Premium Computer Doesn't Connect to Airport Extreme's Hard Drive

    I have a hard drive connected to an Airport Extreme.  The hard drive is recognized by the Windows computer; that is a dialog box appears that states 'The Airport Disk became available'.  But when I attempt to supply a password it tells me "Could not

  • [Solved] Inconsistency detected by ld.so: ../sysdeps/x86_64/...

    I just did a fresh install of Arch, ran "pacman -Syy" and it returned the error: Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 466: elf_machine_rela_relative: Assertion `((reloc->r_info) & 0xffffffff) == 8' failed! Any Ideas? The o

  • String.replaceAll strange behavior...

    I have found strange behavior of String.replaceAll method: "aaaabaaaa".replaceAll("b","a"); // working fine "aaaabaaaa".replaceAll("b","a${"); // throws an exceptionThat could be probably a bug? p.s. using jdk_1.6.0_12-b04

  • WEBI InputControls are now showing in InfoView

    Hi Experts, We have BO XI 3.1 SP3 in both server and client tools, when i try to create report using WebIntelligence Rich Client, i can be able to see InputControls tab. But ! When i use InfoView , i can not see InputControls tab even the server is S

  • Motion 5.2 Callouts

    I'm working on a project that needs to use call-outs that track an object so I'm working in Motion 5.2. I have the motion tracking sorted but the call out is proving difficult as there doesn't seem to be any in the library and I'm not really sure whe