Open another jar file in a frame

Hello everybody,
I have some programs that I made separately, and i want to make a parent program that the user can open them from it.
I want them to open inside the parent not separately. Its like opening a webpage in an iframe in HTML.
Is that possible, and how can it be done??
Thanks for all help.

If you want to launch an application from another Application subclass (say, MyApp), you can try the following.  This must be executed on the JavaFX Application Thread, and the jar file containing the application must be on the classpath. This is kind of an unusual way to reuse existing code: I'd recommend Abhinay's approach (expose the root container, or whatever you need, instantiate that, and then create your own scene and stage to display it if necessary).
try {
     Application app = new MyApp();
     Stage stage = new Stage();
     app.start(stage);
} catch (Exception exc) {
     exc.printStackTrace();

Similar Messages

  • Importing open source jar files

    Hi
    I have written a program, a Java application (Prog 1), which uses some opensource jar files and it runs fine.
    Now I am trying to create an applet (another program in same project) which will show the output from Prog 1 on a webpage.
    But when I try to do this, the applet does not get loaded into the browser and shows me the (ClassNotFound) error that a class file which is in the open source jar file cannot be found.
    why is this happening and what can be done?
    Please help.

    ... and what JAR is the class in, which it reportsas
    The jar file is htmlparser.jar, but this file is
    already added in the project classpath
    No it isn't. The run-time "classpath" is specified by what you put in the <applet> tag. It has nothing to do with the classpath you specified at compile-time. You need to add htmlparser.jar to the "archive" entity.
    archive="YahooExt.jar,htmlparser.jar"
    (if I have the correct separator, which I believe is a comma, according to this resource: http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html)
    And of course htmlparser.jar needs to live on the web server, in the same directory as YahooExt.jar in the example above.

  • How to open a .JAR file on the Z30

    Hi,
    Would anyine know how to open a .JAR file on the Z30?
    I get a message saying "Unable to open" when I click on the .jar file i want to open in my blackberry & install.
    Cheers
    Mario

    JAR files are for older java phones, they dont work on BB10
    maybe you should look into using SNAP to get some apps yoru looking for
    http://supportforums.blackberry.com/t5/Downloaded-Applications-for/You-Upgraded-to-OS-10-2-1-and-wan...
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Opening a jar file

    hey all, i only have one class that i want to make a jar file. i make sure the msdos prompt is focused on the right folder, and i use the following command line...
    jar cf writer.jar writer.class
    it makes a jar file without any problems, but when i go to open the jar file, nothing happens. whats goin on? also, how would i go about creating a manifest file?

    First of all, a useful tip: a JAR file is nothing more or less then a ZIP file, so you can use WinZip to open and edit it.
    Second, you have to edit the manifest file in the created jar file. Open it with WinZip and add a line containting "Main-Class: com.test.TestClass", with offcourse your classname instead of "com.test.TestClass".
    Then, last but not least, you have to open the JAR file with java.exe or javaw.exe. In windows (shift+)right click and select "open with". If you select the "always open with" checkbox, windows should remember that it has to open jar files with the particular exe. The difference between both is that javaw will not show a console, while java will.
    greetz.
    if it is not completely clear, let me know.

  • Opening the jar file in Jdeveloper

    Hi,
    I have a executable jar file of the BPEL process. How can I open the jar file in Jdeveloper in my local machine to do some enhancements. i have no source code with me. While i am trying to open in JDev.. The message parts are not being created and showing error messages with partner links.
    Could any one help me regarding this issue..
    very .. very.. urgent.
    Thanks,
    BPEL user

    Yes, i have unzipped and opened in JDeveloper. But exceptions are coming while validating. The exceptions are at the message parts and partnerlinks( asking the location of wsdl ). I have no .jws file.. Is it the problem?.
    Thanks,
    Bpel User

  • Loading classes from another jar file

    I've set up my jnpl file so that it references a core jar file (contains main() function). The jnlp also references another jar file (app.jar) which contains class files that I load and instantiate dynamically (using ClassLoader). The core.jar file contains a manifest that includes a reference to app.jar.
    The app works fine when I use "java -jar core.jar" from the command line.
    However, when I wrap the jars using jnlp, I always get a null pointer exception because it cannot find any class that is in the app.jar file. I've tried different strategies, such as trying to load a class file that sits on the server (in a jar file and not in a jar file), but that also fails if I use jnlp (However, it works if I use "java -jar core.jar")
    Any ideas what is going on?

    This is the "OckCore.jar" manifest before signing:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Class-Path: . OckMaths.jar
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Name: com.Ock.OckCore.OckApp.class
    Java-Bean: FalseThis is the manifest after signing:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Class-Path: http://hazel/Ock/. http://hazel/Ock/OckMaths.jar
    Name: com/Ock/OckCore/OckApp.class
    SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=I have removed a load of irrelevant stuff from the "after" manifest to keep it readable.
    note that :-
    The OckApp.class loads normally from webstart and tries to load a class from OckMaths.jar.
    I can prove that OckApp.class does load because it creates a log file when it does.
    The OckApp.class tries to load a class from the OckMaths.jar. This fails if webstart is used but works if OckCore is launched using "java -jar OckCore.jar".
    The jars do exist at the location specified by the manifest.
    The application launches normally if I use "java -Jar OckCore.jar"
    Here is the jnlp file
    <?xml version='1.0' encoding='UTF-8'?>
    <jnlp
         spec="1.0"
         codebase="http://hazel/Ock"
         href="OckMaths.jnlp">
         <information>
              <title>Ock Maths Demo</title>
              <vendor>Rodentware Inc</vendor>
              <description>Demo of a ported app running as a Java Webstart application</description>
              <description kind="short">An app running as a Java Webstart application"></description>
              <offline-allowed/>
         </information>
         <security>
              <all-permissions/>          
         </security>
         <resources>
              <j2se version="1.3"/>
              <jar href="OckCore.jar"/>
              <jar href="OckMaths.jar"/>
         </resources>
         <application-desc main-class="com.Ock.OckCore.OckApp">
    </jnlp> I have also signed the jars outside of a webdirectory. I get the following manifest file:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Class-Path: . OckMaths.jar
    Name: com/Ock/OckCore/OckApp.class
    SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=
    note that :-
    The jars do exist at the location specified by the manifest.
    The application launches normally if I use "java -Jar OckCore.jar".
    The application doesn't launch from webstart.
    I've found that cache, but the jar files have been renamed.
    OckCore.jar is anOckCore.jar, etc... so I'm not sure if trying to write a cmdline will work anyway.

  • Flash AS3, Need script for .exe to open another .exe file

    Hi all,
    Has anyone got a script to allow an .exe file to open another .exe file? If so, I could sure use the help.
    many thank in advance.
    HD superglide

    You can use fscommand("exec") to run a batch file to open an exe - but exe is a Windows executable, not for Mac OS
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Executing .jar files from another .jar file.

    How would I run one .jar file from another .jar file. and is there anyway to call specific class arguments? Because I have one .jar file that reads a specified file and returns its contents.
    So how would I execute it and specify its arguments and how would I make it return something to the executing jar file?

    Because I have one .jar file that reads
    a specified file and returns its contents. Presumably you have a class that does that, and you have that class stored in a jar. And you want to know how to... um... do something with that class. I say "um..." because normally you don't execute a class, either, you either call its static methods or you create an instance of the class and call its instance methods.
    If you have been writing a whole lot of little classes each of which just has a static main method, then stop doing that. Write real Java classes instead. The tutorial is here:
    http://java.sun.com/docs/books/tutorial/java/index.html

  • JInternalFrame not opening in JAR file, but works when not in JAR

    I have a folder that contains multiple .class files. I make all the class files into one jar file with this command:
    jar cmf mainClass.txt myapplication.jar *.class
    The mainClass.txt contains the following:
    Main-Class: myapplication
    class-path: myapplication.jar
    The myapplication.class opens up a JDesktopPane inside a JFrame. It also contains a start menu, which again has elements that opens up misc JInternalFrames inside the JDesktopPane. The problem is this:
    When I run the application from a .bat file, everything works fine. However, after making the JAR Executable file, everything works except 1 JInternalFrame. Now, the code for this JInternalFrame is far too much to post, so I'll have to ask as follows;
    Are there any reason why a JInternalFrame would not work from inside a JAR Executable, but work when not in the JAR file? Especially when other JInternalFrames are working? What can make 1 JInternalFrame different from the others in this regard?

    Perhaps the problem lies somewhere else.
    Obviously if other JInternalFrames are working then there is a difference in the one missing internal frame that causes it not to show up.
    My guess is that perhaps you are missing one or two classes in your JAR that are used by that JInternalFrame and that an exception is being thrown causing it not to show.
    Double check the contents of your JAR and make sure that all the classes are present and that they are the right versions.

  • Tutorials in SWF output format prompted "Do you trust this content to connect to the Internet?" when opening another SWF file

    Please help.
    I have a tutorial with in the output format of SWF and HTM. I have click boxes that On Success will open another tutorial (SWF file). When I click on the click box, I get prompted “Do you trust this content to connect to the Internet?” by the Adobe Flash Player. I can click “Yes” and continue, however I don’t want the user to get prompted for every click box with this action (there is one for every tutorial and navigation buttons to each tutorial). I also think that SCORM can't handle the prompt, because when I run the tutorial from the LMS the click boxes do not work at all.
    I have tried selecting “Always allow” in the Global Security Settings panel as per the instruction on this website: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l.
    Any ideas?

    Hi,
    I wanted to add on a question to this posting.... I believe Rod's instructions must be followed on a per-PC basis, correct? Is there any way to disable this globally when/after I publish the files rather than telling 1000 users across the globe that they have to change their security settings? I don't think so from the article (very thorough) but just hoping there's something I can do?!
    Thank you!
    Michele

  • To execuete another jar file.

    Hello,
    If I invoke another exeuable jar file using Runtime.getRuntime().exec("java -jar ***");Is there any method to listen to that invoked Jar process? I tried System.out but the invoked jar program gives no out since there is no console.
    How to monitor the process of another JAR program then?
    Thanks!

    that method returns a runtime object.
    you can get input and output streams from it.
    those are the streams used by your jar file.
    i think the method to wait for the process to finish is
    Runtime t;
    t.waitFor();
    it returns the exit code

  • Pass a object from one jar to another jar file

    I have a common jar file which will communicate to the server for data validation purpose.But after validation it has to invoke different different jar file based on its response from the server.So, I might have a object which has to pass from the common jar file to a specific jar file.So, I like to know what will be the best procedure to achieve it.
    Please help me out.

    arpitak wrote:
    Yes,jar file holds class files.one of class files wants to trigger a method of a class file which resides in different jar file.this is the situation I tried to describe.Let consider there are three jar files like JAR A,JAR B ,JAR C.Here JAR A is a common jar where other two jar could be used as a plug in. So based on the condition any one of them (JARS) will be triggered by the common jar(JAR A).this is the situation.The class file of JAR A will trigger some method or main method of the JAR B/JAR C.So,here how could I pass a object from one jar to another is my main question.
    Is it clear now?
    I need a solution for this very urgently.Are you looking for a plug-in framework? That is, dynamically discovering and loading plugins. I am not experienced in developing or using plugins. However Googling "java plugin" brings up JPF.
    If you just have multiple jars that have different classes, the JVM will load the appropriate classes if it can find the jars through the standard classloader on the classpath or through a customer classloader.

  • When I open Firefox I receive the following message on the open tab: jar:file:///C:/Program Files/Mozilla Firefox/chrome/en-US.jar!/locale/branding/browserconfig.properties.

    I have been slowly loading more plugins and extensions for Firefox, as I found that I had a conflict and Firefox would freeze. Two (2) days ago I used Firefox Sync for the first time. After I rebooted my computer, I found that when I opened Firefox I receive this message "jar:file:///C:/Program Files/Mozilla Firefox/chrome/en-US.jar!/locale/branding/browserconfig.properties."
    I use Speed Dial as my home page and at the same time I received this message, Speed Dial stopped working, unless I click on the "open a new tab" button.
    I opened the container for the file listed above, and I show that the file is in the folder.
    I tried reinstalling Firefox in case there was a corrupt setting, however it hasn't helped

    Caused by the Firefox Sync extension. Reset your Homepage to Default.
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • Opening a jar file using labview

    Hi,
    I want my labview program to open a java based jar file on my computer after some processing steps...there is no manipulation of the jar file to be done..It just needs to be opened...Anyone has any answers?????

    Hi Prathiksha,
    As GuenterMueller said, this forum subgroup is dedicated to Machine vision queries and not related to general software queries. Please post your query in Labview Forum or some other appropriate location.
    Coming to ur problem, infact even i've seen that java interfacing all those are really compicated and am afraid i dnt know about that.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • How to open a log file form a frame in linux

    Hy,
    Can anyone knows how to open a pdf file in linux from java?? and also a conf file(when I try Runtime.getRuntime().exec("path") -gives me an error like -I don't have the right to open that file , how can I open that file as root??)
    Thanks in advance

    Are you familiar with java.awt.Desktop?
    http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html
    Try its open() method.

Maybe you are looking for

  • Copy/paste is disabled

    I seem to have killed my copy and paste. It happens in the Finder and my apps. I don't see any way to enable it. When I try to paste, I get "Copy/paste is disabled" in the field I am trying to paste into. I have not had a chance to reboot yet. Thanks

  • Contact disply problem in SMS and calls S850

    I have recently bought S850 from China and using it in Pakistan. When i saved any number without country code (0333xxxxxxx) incoming sms does not recognized the sender and sms incoming number shows with country code like +92 333 xxxxxxx. However, if

  • Problem logging in sql plus

    If you are running Personal Oracle, you do not need to give host string to log in SQL Plus. However, database should be started up first. In order to run SQL Plus on a client workstation in client- server environment, you should create a host string

  • Adjusting the image of a clip / chapter

    I'm burning some clips to a DVD. When I look at the clips in the time line, and when I look at the Chapters in the Chapter list, they're all just blank black images, since that's how the clips all start. How do I make a different image be the "face"

  • Error trying to open photo and doesn't allow me to save photo

    Why is CS6 giving me an error when I try to open a photo?  If I am lucky I can hit open and real fast double click something in the first thing that opens and it might open.  Then I go to save it and the save box pops up and very quickly disappers.