Page 1 of 2 12 LastLast
Results 1 to 20 of 25
  1. #1
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Problem generating a runnable .jar file

    I can compile and run a java applet with the Eclipse environment. However, when I try to create a runnable .jar file, the applet does not work and I get a message of the sort:


    Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at Symmetry.init(Symmetry.java:53)
    at Symmetry.main(Symmetry.java:74)
    Caused by: java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java: 1126)
    at java.awt.EventQueue.invokeAndWait(EventQueue.java: 1103)
    at javax.swing.SwingUtilities.invokeAndWait(SwingUtil ities.java:1326)
    at Symmetry.init(Symmetry.java:49)
    ... 1 more
    Caused by: java.lang.NullPointerException
    ...


    I wonder what could be the cause of the problem?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,017
    Rep Power
    10

    Default Re: Problem generating a runnable .jar file

    Can you create an MCVE that demonstrates the problem? What is null on that line?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by KevinWorkman View Post
    Can you create an MCVE that demonstrates the problem? What is null on that line?
    When did the acronym change from SSCCE (or whatever it was)?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,275
    Rep Power
    6

    Default Re: Problem generating a runnable .jar file

    I guess its the Stackoverflow version of it.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,017
    Rep Power
    10

    Default Re: Problem generating a runnable .jar file

    Yeah, it's from StackOverflow. It's written by Andrew Thompson, who also authors the SSCCE page. He wrote the MCVE page to be a shorter, more concise, and easier to read version of the SSCCE page. I stuck with SSCCE until Andrew himself told me to start using MCVE instead, so I guess I can't argue with the author!

    More info here: Can we create a Help Center topic that outlines what a SSCCE / MWE means for Stack Overflow? - Meta Stack Overflow
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #6
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by KevinWorkman View Post
    Yeah, it's from StackOverflow. It's written by Andrew Thompson, who also authors the SSCCE page. He wrote the MCVE page to be a shorter, more concise, and easier to read version of the SSCCE page. I stuck with SSCCE until Andrew himself told me to start using MCVE instead, so I guess I can't argue with the author!

    More info here: Can we create a Help Center topic that outlines what a SSCCE / MWE means for Stack Overflow? - Meta Stack Overflow
    This is the class which is compiling fine but cannot generate a .jar file (sorry for not being able to generate a better SSCCE/MWE)

    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.Graphics;
    import java.awt.dnd.DropTarget;
    import java.awt.dnd.DropTargetListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.PrintStream;
    import java.lang.reflect.InvocationTargetException;
    import java.net.MalformedURLException;
    import java.net.URL;

    import javax.swing.ImageIcon;
    import javax.swing.JApplet;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.SwingUtilities;

    import main.MainPane;

    public class Symmetry extends JApplet implements Runnable {
    static final String title = "Introduction to the symmetry of polyhedra";
    static final String titleInit = title + " is starting up. Please wait...";
    static final int width = 900, height = 700;
    private static final String defCodeBase = "http://escher.epfl.ch/crystalOgraph/";

    public static boolean isApplet = true;
    public JFrame frame;
    public MainPane mainPane;
    public boolean started;

    public Symmetry() {
    }

    public void init() {
    try {
    SwingUtilities.invokeAndWait(this);
    } catch (InterruptedException e) {
    throw new RuntimeException(e);
    } catch (InvocationTargetException e) {
    throw new RuntimeException(e);
    }
    }

    public void start() {
    started = true;
    }

    public void stop() {
    started = false;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    mainPane.stop();
    }
    });
    }

    public void destroy() {
    mainPane.destroy();
    }

    public static void main(String[] args) {
    isApplet = false;
    Symmetry mainApp = new Symmetry();
    mainApp.init();
    mainApp.start();
    }

    // initialisation in GUI thread
    public void run() {
    createMainFrame();
    if (isApplet)
    createWebPane();
    createMainPane();
    showMainPane();
    // new DropTarget(frame, new CifFileDropper(mainPane));
    }

    private void createMainFrame() {
    frame = new JFrame(titleInit);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    if (isApplet) {
    stop();
    frame.setVisible(false);
    } else {
    System.exit(0);
    }
    }
    });
    // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setSize(width, height);
    frame.setVisible(true);
    }

    private void createWebPane() {
    if ("true".equals(getParameter("mini"))) {
    getContentPane().add(new AppletMiniPane());
    } else {
    getContentPane().add(
    new JLabel(
    "Applet launched. Refresh page to load again...",
    JLabel.CENTER));
    }
    }

    private void createMainPane() {
    try {
    mainPane = new MainPane();
    } catch (Error e) {
    showException(e);
    throw e;
    }
    }

    private void showMainPane() {
    frame.getContentPane().add(mainPane.jPanel);
    frame.validate();
    frame.setTitle(title);
    frame.setVisible(true);
    frame.toFront();
    }

    public URL getCodeBase() {
    URL codeBase = null;
    try {
    return super.getCodeBase();
    } catch (Exception e) {
    try {
    return new URL(defCodeBase);
    } catch (MalformedURLException e1) {
    throw new RuntimeException(e1);
    }
    }
    }

    public void showUp() {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    if (!started)
    start();
    frame.setVisible(true);
    frame.toFront();
    }
    });
    }

    public void setDndDropListener(DropTargetListener listener) {
    new DropTarget(frame, listener);
    }

    public void showException(Throwable error) {
    ErrorPane errorPane = new ErrorPane();
    JFrame errorFrame = new JFrame("There was a problem");
    errorFrame.getContentPane().add(errorPane);
    errorFrame.setSize(500, 400);
    errorFrame.setVisible(true);
    if (error instanceof NoClassDefFoundError
    && error.getMessage().indexOf("javax/media/j3d") != -1) {
    errorPane.out.println("Java3D is not installed on your computer.");
    errorPane.out
    .println("Please visit What to do if applets don't show up ? to learn how to install it.");
    errorPane.out.println("");
    }
    error.printStackTrace(errorPane.out);
    }

    class ErrorPane extends JPanel {
    public PrintStream out;
    private JTextArea textArea;

    public ErrorPane() {
    textArea = new JTextArea();
    textArea.setEditable(false);
    JScrollPane scrollPane = new JScrollPane(textArea);
    setLayout(new BorderLayout());
    add(scrollPane);

    out = new PrintStream(new OutputStream() {
    public void write(byte[] bb) throws IOException {
    write(bb, 0, bb.length);
    }

    public void write(byte[] bb, int off, int len)
    throws IOException {
    textArea.setText(textArea.getText()
    + new String(bb, off, len));
    }

    public void write(int b) throws IOException {
    textArea.setText(textArea.getText() + (char) b);
    }
    });
    }
    }

    class AppletMiniPane extends JPanel {
    public AppletMiniPane() {
    setCursor(Cursor.getPredefinedCursor(Cursor.HAND_C URSOR));
    addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    if (!started)
    start();
    if (frame != null) {
    frame.setVisible(true);
    frame.toFront();
    }
    }
    });
    }

    public void paint(Graphics g) {
    new ImageIcon(getClass().getResource("/applet-mini.png"))
    .paintIcon(this, g, 0, 0);
    }
    }
    }

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default Re: Problem generating a runnable .jar file

    Your Exception is a Null pointer.
    The stack trace you gave misses out the actual NullPointerException stack trace.

    You need to post that part of the stack trace and highlight in your code which line it is.

    Finally, when posting code you need to wrap it in [ code] [ /code] tags.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,275
    Rep Power
    6

    Default Re: Problem generating a runnable .jar file

    But it is an applet, you generally run those through a browser (or in an applet runner which is probably what Eclipse is doing). If you want to create an executable jar then you create a regular client application based on a JFrame.

    EDIT:

    Okay note to self: spend 1 minute reading the code and not 1 second. I see that the code is designed to be able to go both ways.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  9. #9
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by Tolls View Post
    Your Exception is a Null pointer.
    The stack trace you gave misses out the actual NullPointerException stack trace.

    You need to post that part of the stack trace and highlight in your code which line it is.

    Finally, when posting code you need to wrap it in [ code] [ /code] tags.
    this is the NullPointerException stack trace

    Caused by: java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(ImageIcon.java:181)
    at main.MainPane$ButtonPanel.<init>(MainPane.java:100 )
    at main.MainPane.<init>(MainPane.java:58)
    at Symmetry.createMainPane(Symmetry.java:116)
    at Symmetry.run(Symmetry.java:81)


    lines 114-119 of Symmetry.java

    Java Code:
    private void createMainPane() {
    		try {
    			mainPane = new MainPane();
    		} catch (Error e) {
    			showException(e);
    			throw e;
    lines 77-83 of Symmetry.java

    Java Code:
    public void run() {
    		createMainFrame();
    		if (isApplet)
    			createWebPane();
    		createMainPane();
    		showMainPane();
    		// new DropTarget(frame, new CifFileDropper(mainPane));
    lines 88-110 of MainPane.java

    Java Code:
    public ButtonPanel() {
    			top();
    			expand(false);
    			buttons = new JToggleButton[polyedres.length];
    			for (int i=0; i<polyedres.length; i++) {
    				if (files[i]==null) {
    					buttons[i] = new JToggleButton(names[i]);
    					buttons[i].setVerticalTextPosition(AbstractButton.CENTER);
    					buttons[i].setHorizontalTextPosition(AbstractButton.CENTER);
    				}
    				else {
    					URL u = getClass().getResource("/"+files[i]);
    					buttons[i] = new JToggleButton(names[i], new ImageIcon(u));
    					Insets insets = buttons[i].getMargin();
    					insets.left=0; insets.right=0;
    					buttons[i].setMargin(insets);
    					buttons[i].setVerticalTextPosition(AbstractButton.BOTTOM);
    					buttons[i].setHorizontalTextPosition(AbstractButton.CENTER);
    					buttons[i].setHorizontalAlignment(AbstractButton.CENTER);
    				}
    				addButtonGroupped(buttons[i]);
    			}
    		}

    lines 52-63 MainPane.java

    Java Code:
    public MainPane() {
    		univers = new Univers(ColorConstants.white);
    		
    		HVPanel.h p = new HVPanel.h();
    		p.expand(false);
    		
    		buttonPanel = new ButtonPanel();
    		JScrollPane scrollPane = new JScrollPane(buttonPanel.jPanel);
    		scrollPane.setMinimumSize(new Dimension(125, 0));
    		scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    		scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    		p.addComp(scrollPane);

  10. #10
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default Re: Problem generating a runnable .jar file

    Caused by: java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(ImageIcon.java:181)
    at main.MainPane$ButtonPanel.<init>(MainPane.java:100 )
    Where is the code for the MainPane class?
    Last edited by Norm; 06-18-2014 at 05:54 PM.
    If you don't understand my response, don't ignore it, ask a question.

  11. #11
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default Re: Problem generating a runnable .jar file

    Expanding on Norm's post a bit.
    This is where your NullPointer is coming from:
    Java Code:
    new ImageIcon(u);
    and is because 'u' is null. Which means this:
    Java Code:
    getClass().getResource("/"+files[i]);
    is not finding whatever it is it's looking for.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  12. #12
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by Norm View Post
    Where is the code for the MainPane class?
    here is the code for MainPane.java

    Java Code:
    package main;
    
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.GridBagConstraints;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.net.URL;
    
    import javax.media.j3d.Appearance;
    import javax.media.j3d.BranchGroup;
    import javax.media.j3d.Group;
    import javax.media.j3d.Material;
    import javax.media.j3d.PolygonAttributes;
    import javax.media.j3d.Transform3D;
    import javax.media.j3d.TransformGroup;
    import javax.media.j3d.TransparencyAttributes;
    import javax.swing.AbstractButton;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JToggleButton;
    import javax.swing.border.TitledBorder;
    import javax.vecmath.Color3f;
    import javax.vecmath.Matrix3d;
    import javax.vecmath.Point3d;
    
    import objects.*;
    
    import u3d.TranspObject;
    import u3d.Univers;
    import utils.ColorConstants;
    import utils.HVPanel;
    import utils.HVPanel.SliderAndValue;
    import utils.HVPanel.h;
    import utils.HVPanel.v;
    
    import com.sun.j3d.utils.geometry.Box;
    import com.sun.j3d.utils.geometry.ColorCube;
    
    public class MainPane extends HVPanel.v {
    	Univers univers;
    	ButtonPanel buttonPanel;
    	BottomPanel bottomPanel;
    	Polyedre currentPoly;
    	HVPanel fixedPane;
    	
    	public MainPane() {
    		univers = new Univers(ColorConstants.white);
    		
    		HVPanel.h p = new HVPanel.h();
    		p.expand(false);
    		
    		buttonPanel = new ButtonPanel();
    		JScrollPane scrollPane = new JScrollPane(buttonPanel.jPanel);
    		scrollPane.setMinimumSize(new Dimension(125, 0));
    		scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    		scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    		p.addComp(scrollPane);
    		
    		JPanel panel3d = new JPanel();
    		panel3d.setLayout(new BorderLayout());
    		panel3d.add(univers.getCanvas());
    		p.expand(true);
    		p.addComp(panel3d);
    		
    		expand(true);
    		addSubPane(p);
    		expand(false);
    		bottomPanel = new BottomPanel();
    		//bottomPanel.jPanel.setMinimumSize(new Dimension(0, 100));
    		addSubPane(bottomPanel);
    		
    		buttonPanel.actionPerformed(new ActionEvent(buttonPanel.buttons[0], 0, null));
    	}
    	
    	private class ButtonPanel extends HVPanel.v {
    		JToggleButton[] buttons;
    		
    		Polyedre[] polyedres = {new OrthoSphenoide(), new TetraSphenoide(), new Sphericon(), new Rhomboedre(), new Bipyramide(), new Tetraedre(), new Cube(), new Octaedre(), new Dodecaedre(), new Icosaedre()};
    		String[] names = {"<html><center>Orthorhombic<p>spheno‘d", "<html><center>Tetragonal<p>spheno‘d", "Sphericon", "Rhombohedron", "<html><center>Trigonal<p>bipyramid", "Tetrahedron", "Cube", "Octahedron", "<html><center>Pentagonal<p>dodecahedron", "Icosahedron"};
    		String[] files = {"orthosphenoid.png", "tetrasphenoid.png", "sphericon.png", "rhomboedre.png", "bipyramid.png", "tetraedre.png", "cube.png", "octaedre.png", "dodecaedre.png", "icosaedre.png"};
    		
    		public ButtonPanel() {
    			top();
    			expand(false);
    			buttons = new JToggleButton[polyedres.length];
    			for (int i=0; i<polyedres.length; i++) {
    				if (files[i]==null) {
    					buttons[i] = new JToggleButton(names[i]);
    					buttons[i].setVerticalTextPosition(AbstractButton.CENTER);
    					buttons[i].setHorizontalTextPosition(AbstractButton.CENTER);
    				}
    				else {
    					URL u = getClass().getResource("/"+files[i]);
    					buttons[i] = new JToggleButton(names[i], new ImageIcon(u));
    					Insets insets = buttons[i].getMargin();
    					insets.left=0; insets.right=0;
    					buttons[i].setMargin(insets);
    					buttons[i].setVerticalTextPosition(AbstractButton.BOTTOM);
    					buttons[i].setHorizontalTextPosition(AbstractButton.CENTER);
    					buttons[i].setHorizontalAlignment(AbstractButton.CENTER);
    				}
    				addButtonGroupped(buttons[i]);
    			}
    		}
    
    		public void actionPerformed(ActionEvent e) {
    			for (int i=0; i<buttons.length; i++) {
    				if (e.getSource()==buttons[i]) {
    					if (currentPoly!=null) currentPoly.detach();
    					currentPoly = polyedres[i];
    					currentPoly.attach(univers.getRoot(), bottomPanel.transformPanel);
    					bottomPanel.transformPanel.jPanel.revalidate();
    					bottomPanel.jPanel.revalidate();
    					bottomPanel.jPanel.repaint();
    				}
    			}
    		}
    	}
    
    	private Help help;
    
    	public void destroy() {
    		univers.cleanup();
    	}
    	public void stop() {
    		help.show(false);
    	}
    
    	private class BottomPanel extends HVPanel.h {
    		public HVPanel transformPanel;
    		public BottomPanel() {
    			help = new Help();
    						
    			HVPanel.v h1 = new HVPanel.v();
    			HVPanel.h h2 = new HVPanel.h();
    
    			h1.bottom();
    			h1.fillSpace();
    			h1.addSubPane(transformPanel = new HVPanel.h());
    
    			fixedPane = new HVPanel.v();
    			fixedPane.fillSpace();
    			((HVPanel.v)fixedPane).bottom();
    			//fixedPane.addButton(new JButton("Inversion"));
    			fixedPane.addButton(new JButton("Help"));
    			//fixedPane.addButton(new JButton("Reset"));
    			
    			h2.fillSpace();
    			h2.right();
    			h2.addSubPane(fixedPane);
    			
    			expand(false);
    			left();
    			addSubPane(h1);
    			expand(false);
    			right();
    			addSubPane(h2);
    		}
    		public void actionPerformed(ActionEvent e) {
    			if (e.getActionCommand().equals("Reset")) {
    				currentPoly.reset();
    			}
    			if (e.getActionCommand().equals("Help")) {
    				help.show(true);
    			}
    		}
    	}
    }

  13. #13
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default Re: Problem generating a runnable .jar file

    Code has too many other packages to compile on my system.
    If you don't understand my response, don't ignore it, ask a question.

  14. #14
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,275
    Rep Power
    6

    Default Re: Problem generating a runnable .jar file

    Don't ignore Toll's reply as that contains the source of your problem. If you don't understand it, ask questions.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  15. #15
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by gimbal2 View Post
    Don't ignore Toll's reply as that contains the source of your problem. If you don't understand it, ask questions.
    Many thanks to all of you for helping me solving the problem. i just placed the missing files in the same folder as the .jar and the applet is working fine.
    Last edited by GeCe; 06-21-2014 at 12:12 PM.

  16. #16
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by GeCe View Post
    Many thanks to all of you for helping me solving the problem. i just placed the missing files in the same folder as the .jar and the applet is working fine.
    The solution I mentioned here is not sufficient when the applet is executed from a web browser. I use the Eclipse environment to generate the .jar files. Most of the applets I am dealing with require some additional files in order to be executed, typically .png or .html files for examples. Is there a way with Eclipse to also include those .png or .html files in the .jar file ?

  17. #17
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,275
    Rep Power
    6

    Default Re: Problem generating a runnable .jar file

    I don't get the question. The eclipse jar export tool allows you to select precisely what to include in the jar.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  18. #18
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by gimbal2 View Post
    I don't get the question. The eclipse jar export tool allows you to select precisely what to include in the jar.
    The generated .jar file only contains classes and not png. I don't see in the jar generation where I can decide which files to include. This is the panel I get



    Problem generating a runnable  .jar file-capture-d-cran-2014-06-26-11.56.41.png

  19. #19
    GeCe is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: Problem generating a runnable .jar file

    Quote Originally Posted by gimbal2 View Post
    I don't get the question. The eclipse jar export tool allows you to select precisely what to include in the jar.
    I have some difficulties in finding where to select the resources I want to include in the .jar. The following picture illustrates my problem with the jar export wizard. How can I also include the e.g. .png files listed on the left?
    Problem generating a runnable  .jar file-capture-d-cran-2014-06-28-17.13.42.png

  20. #20
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,923
    Rep Power
    5

    Default Re: Problem generating a runnable .jar file

    If you click on the Charge Flip name don't they appear in the right window?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Page 1 of 2 12 LastLast

Similar Threads

  1. Using JarOutputStream to create a runnable jar file
    By madcrazydrumma in forum New To Java
    Replies: 4
    Last Post: 04-26-2014, 07:27 PM
  2. Replies: 4
    Last Post: 12-31-2013, 05:11 PM
  3. Replies: 0
    Last Post: 06-07-2013, 02:39 AM
  4. Replies: 3
    Last Post: 05-07-2012, 07:07 PM
  5. Generating image file with GPS data
    By sbuster in forum Advanced Java
    Replies: 0
    Last Post: 11-30-2011, 02:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •