SOS: GUI - without JRE?

Hi gurus,
I'm rewriting a client side.of a chat system.
It's written in Swing. I have a few questions:
1.) Is it possible to write a Graphic User Interface (GUI)
without the need for user to install Java Runtime Environment (JRE)?
If it's possible how do I do it?
[Through Internet Explorer's (IE) Virtual Machine (VM)? or simply rewrite the SWING into AWT?]
2.) An programmer told me about a trick: wrap AWT arround SWING so that the SWING-code could run under AWT without any problems. Do you know how it works?
I'm posting these question here because I couldn't find any useful information about it.
All I found is VM specification, SWING, Applet with JRE. Everything require JRE.
I don't see any way arround it.
I believe some of you are smarter and maybe able to help me out. I'd apreciate everyhelp.
Steven Ho

Hi !
1. no JRE or Java at all
- You export the graphics. So The client machine draws olny the graphics, but it does not contain any code.
2. Through Internet Explorer's (IE) Virtual Machine (VM):
If it is a Java 1.1.8 Application, just add the swing package of the sun site to the classpath.
I never tried this, so I can't say you how to do this.
3. Using the Sun JavaPlugin.
Just download it on the client machine.
It contains the whole JDK 1.3 or JDK1.4 functionality, inclusive swing.
4. wrap AWT arround SWING:
I would not do this, because the functionality of AWT is a subset of SWING. For example you have no trees in AWT, like JTree. In order to this you can't wrap an "AWT Tree" to a JTree.
Hope this helps,
Witold.

Similar Messages

  • Applet can not run without JRE

    I have compiled the applet with J2SE 1.4.0. When I tested on the browser IE 5.0 in my computer, it could run because there is JRE included by J2SE 1.4.0 in my computer. When I tested in other computers, it can not run.the display only gray rectangle and there was a statement x.class is not found in bottom bar.The browser IE 5.0 is java enable. But when I access the webpage that include java application in the same computer without JRE, that could run.
    what wrong?
    thanks

    It is likely that the applet you compiled is using bytecode or features that the other machines don't recognize/have. If the other machines have the MS Java virtual machine but don't have the Sun virtual machine, try compiling the applet with the compiler option "-target 1.1" and see if that helps. It may, unless you used Java features that don't exist in Java 1.1 (for instance Swing classes). If so, then the other machines won't be able to run the applet unless they have the Sun jvm installed (like your machine).

  • Can you start a Java GUI without having a prompt??

    Is it possible to start up a Java GUI without it having to be opened from a dos or unix prompt?

    In windows you can use the WScript host to launch your apps.
    var shell = WScript.CreateObject("WScript.shell");
    shell.run("jdk.1.3.1\\bin\\javaw.exe YourClass");
    shell.popup("Finished",0,"Launch YourClass",0);just copy this to a text file, save it with the extension ".js" and double-click it

  • Does any software let java could  be running without JRE?

    hi all.
    Does any software let java could be running without JRE in Micosoft palot?

    You can compile to native for some platforms.
    ( http://mycgiserver.com/~mrmlk/nativejava.html )

  • Windows version without JRE

    Hi,
    I just downloaded the version without JRE.
    Unfortunately there isn't a sqldeveloper.exe, on a shell script???
    The download file for the linux version has the same size.
    I suspect that the download file is the same as for Linux and that's wrong, correct?
    Thanks in advance
    Stefan

    solved,
    RTFM helps!
    sorry
    Stefan

  • Urgent - How to Run Applet without JRE installation

    I am creating an applet which displays information using JTree. This applet needs to be deployed in 'n' systems which may or may not contain JRE. Is there any way where in i can deploy in all the systems without any error.

    You could provide swing.jar and have the applet load that. It is
    slow though.

  • Using text in a GUI without using .swing classes

    In a Java application, is there any way to create a text object that can be positioned in a GUI like an ImageIcon (using a class from the standard Java API)? For example, when using ImageIcon, you feed the x and y-coordinates, whereas with .swing, you'd have to create a new panel, position the panel, and re-position the panel using BorderLayout.(direction).
    Ex. (with ImageIcon, you'd place it like so):
    //construct ImageIcon w/ URL
    ImageIcon myImage = new ImageIcon(new URL("http://..."));
    //x and y are pixels to the right and to the bottom from the top left corner
    myImage.paintIcon( (Component), (Graphics), x, y);
    //I'm looking for one that does the same, like this (without using an image, preferrably), TextMessage is what the class might be:
    TextMessage myText = new TextMessage("Here is some string to print out");
    myText.printText( (Component), (Graphics), x, y)

    or you can paint a string, like this
    public void paint(Graphics g) {
         super.paint(g);
         g.drawString("Hello World!", x,y);  // replace x, y with your own coordinates
    }hope that helps

  • Running a java exe without JRE

    i have created an exe for a java application by using a C program...The c program invokes the DOS shell and runs the JAVA application...
    now how do i make this exe executable on a windows XP machine without JDK being installed...
    The second issue is that if i wrap my exe with the required JRE components the size becomes too large...how do i ship my java application as a single EXE runnable on all WINDOWS machines!!!!!!!!!!!

    Including the JRE with your app, if you zip it, will add about 14MB to your distribution. It's annoying but in the days of broadband, it's not so much of a problem. You could also check this:
    http://www.excelsior-usa.com/jet.html

  • Run applets without JRE

    Hello to all developers,
    I know that to run applets in IE we should have the JRE installed on our machines. But is there any way that we can run applets without the JRE being installed on our machines. I have also heard of something called as the Microsoft JVM. How can we use it to run the java applets.
    Thanking in advance.

    The Microsoft JVM is extremely outdated and not recommended at all. You can't really run a Java applet without a JVM, and I'm not sure if any but the one Sun makes comes with a browser plugin.

  • SiI3114 RAID GUI and JRE error

    I have an ASUS mobo with onboard SiI3114 SATA RAID 5 configured. The array manager is a gui file, sam.jar. This file is opened by:
    C:\Program Files\Java\j2rel.4.2_7\bin\javaw.exe" -jar "%1"%*
    When I boot this system, the GUI runs fine. But, if I then try to open the file using the desktop shortcut, I get a "Controller Not Found" error with the following details in the log:
    Application Exception
    App: smu.jar version X.0.0
    Sys: speedserver
    OS: Windows 2000 version 5.0
    Java: JRE version 1.4.2_07 from Sun Microsystems Inc.
    Time: Wed Jul 13 17:40:16 CDT 2005
    Device Database Exception
    Message <si:Fault><si:Code><si:Value>Sender</si:Value><si:Subcode>Cannot Be Processed</si:Subcode></si:Code><si:Reason><si:Text>None Found</si:Text></si:Reason></si:Fault>
    String index out of range: -2397java.lang.StringIndexOutOfBoundsException: String index out of range: -2397
         at java.lang.String.substring(Unknown Source)
         at EventDatabase.readLog(EventDatabase.java:158)
         at EventDatabase.initialize(EventDatabase.java:54)
         at DatabaseManager.initializationComplete(DatabaseManager.java:185)
         at AbstractDatabase.initializationComplete(AbstractDatabase.java:324)
         at TaskDatabase.processNewData(TaskDatabase.java:133)
         at AbstractDatabase$1.handleMessage(AbstractDatabase.java:122)
         at AbstractMessageHandler.dispatchMessageHandler(AbstractMessageHandler.java:33)
         at CommManager$MessageProcessingThread.run(CommManager.java:462)
    I haven't a clue what this means or what to do about it and am hoping somebody here can help. I've tried uninstalling and re-installing the JRE, updating to the latest version, etc., but always have the same problem.
    Any help will be much appreciated!

    The fact that you're using SATA RAID is probably not pertinent, as I my Windows system has a Gigabyte mb with SATA RAID 1 and has no problems.
    The error is a bad index into a string:
    String index out of range: -2397java.lang.StringIndexOutOfBoundsException: String index out of range: -2397
    The Java application is telling you what code is being referenced, by classname/method/line number. However, if you don't have the source code, that doesn't help much. In that case, see if the code provider will analyze the fault. The application may not be compatible with the Java version you use - check that.

  • Installing JMS 3.6 without JRE and JDK

    I'm looking for a way to install JMS only, without installing the new versions of JRE and JDK. The application I'm working on works with JRE 1.5.0_02 only, and there is no plan to change that in the near future, however we want to upgrade to JMS 3.6 to be able to use the new imqPingInterval.

    Are you shure you have included the jre PATH (not CLASSPATH) in your PATH variable?
    Assuming you're working in a Linux (or unix) environmet, check the PATH: it should contain /usr/local/jdk1.3.1_01/jre/bin.
    I'm not sure this is really the answer, but there's no damage on trying it! :-)
    bye
    Michele

  • Closing a gui without closing its parent

    hi,
    I am building a GUI that is opened up by another GUI. My problem is that when I close that new GUI, it closes all the other ones that I have open. It is because I am using System.exit(0);
    My question is, what do I need to do to just close the new smaller GUI that I have opened, without closing the rest?
    thanks in advance...

    Yup its because of System.exit(0);
    you need to this.dispose();

  • Is it possible to run applet without JRE

    hello friends,
    Presently I hava developed chating application. Now I want to download my applet on client side and run ther wether client's computer has JRE or not.
    so is it possible to run applet on computer which doesnt have JRE?
    Thanks in advance

    Not unless you create an executable file and jam the whole JRE into it.

  • How to packaging javaFX without jre runtime?

    When I packaging javaFX application to native application, I found the package will include binary jre folder, and ubuntu developer has gave me feedback about I must have a hard copy of license agreement before I publish my software.  So my question as title.

    Look at the output from the javafxpackager call - it prints all kinds of helpful messages that tell you how to customize (search for the word icon). On Mac it told me to put add the image: package/macosx/MyApp.icns. On windows it told me to add the image package/windows/MyApp.ico. I don't know about linux.
    I've been running javafxpackager from the command line - I find that the package directory needs to be in the same directory I run from (though maybe I just need to set the -classpath arg).

  • Help in making this GUI without using IDE (snapshot attached)

    [Layout image| [https://rapidshare.com/files/2954811682/layout.JPG]]
    hi, i am new java swing library and i want to create a layout just like a image posted above without using IDE.
    i need some idea/help regarding two issues which i m facing at the moment one how to set the size of the button and how im suppose to set the alignment of labels,textboxes and buttons according to the image here is the source code below :
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Font;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.border.TitledBorder;
    public class Form extends JFrame {
    private JLabel lblUserName;
    private JLabel lblNewPassword;
    private JTextField txtUserName;
    private JPasswordField txtNewPassword;
    private JButton btnLogin;
    private JButton btnClear;
    private JPanel mainPanel;
    private JPanel centerPanel;
    public Form() {
    // initialize the components
    initComponents();
         // add the components
    addComponents();
         // add the listeners
    //addListeners();
    // display components
    displayComponents();
    private void initComponents() {
    getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER, 10, 10));
    mainPanel = new JPanel(new BorderLayout());
    centerPanel = new JPanel(new GridLayout(3, 4, 20, 5));
    lblUserName = new JLabel("Username : ");
    lblNewPassword = new JLabel("password : ");
    txtUserName = new JTextField(15);
    txtNewPassword = new JPasswordField(15);
    btnLogin = new JButton("Login");
    btnLogin.setPreferredSize(new Dimension(2,2));
    btnClear = new JButton("Clear");
    btnClear.setPreferredSize(new Dimension(2,2));
    private void addComponents() {
    centerPanel.add(lblUserName);
    centerPanel.add(txtUserName);
    centerPanel.add(new JLabel(""));
    centerPanel.add(lblNewPassword);
    centerPanel.add(txtNewPassword);
    centerPanel.add(new JLabel(""));
    centerPanel.add(new JLabel(""));
    centerPanel.add(btnLogin);
    centerPanel.add(btnClear);
    Font titleFont = new Font("San Serif",Font.PLAIN,12);
    Color titleColor = Color.blue;
    mainPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Admin Login",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,titleFont,titleColor));
    mainPanel.add(centerPanel, BorderLayout.CENTER);
    getContentPane().add(mainPanel);
    private void displayComponents() {
    setTitle("Form");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setSize(600, 200);
    setVisible(true);
    public void actionPerformed_BtnUpdate(ActionEvent e) {
    JOptionPane.showMessageDialog(this, "Your profile has been updated successfully.");
    public void actionPerformed_BtnBrowse(ActionEvent e) {
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.showOpenDialog(this);
    public static void main(String[] args) {
    try {
    Form myForm = new Form();
         catch (Exception exception) {
    System.err.println("ERROR - " + exception.getMessage());
    Edited by: 932179 on May 4, 2012 1:30 PM
    Edited by: 932179 on May 4, 2012 1:30 PM

    Welcome to the forum.
    Take the list of +"All Known Implementing Classes"+ from here http://docs.oracle.com/javase/7/docs/api/java/awt/LayoutManager.html and find out what combination best fits your needs.
    I usually have some nested BorderLayouts and GridLayouts.
    When I need lables and input fields aligned I use GroupLayout (which I personally prefer over GridBagLayout...).
    Anyway, you may have got better answers if you postet this in the right place:
    Swing
    bye
    TPD

Maybe you are looking for