Jar 1 « Development « Java Swing Q&A





1. Error running Jar File    stackoverflow.com

I have created a project in java project using NetBeans IDE. I have few forms in it. The netBeans created a Jar file by its own. when i try to run ...

2. Running a Jar file alone    stackoverflow.com

Hai I have an application which is designed in netbeans6.0.1 where i need to display an image as an logo.My coding is as below

mLogo = new JLabel();
URL lUrlLogo = getclass().getResource("/com/images/image.gif");
Image lLogoimage ...

3. Autoupdate feature in a Java Swing desktop App    stackoverflow.com

I've developed a desktop Swing app and I'm thinking about the best way to provide the autoupdate feature. I know that JavaWebStart provides this but I think that It doesn't suit ...

4. Do any Java GUI builders exist that do not require external JAR's?    stackoverflow.com

I am looking for a Java GUI building tool that generates the Java Swing code for me. I'm planning on using it to get all of the Frame/Panel code created ...

5. how to use java jar in c/c++?    stackoverflow.com

i am a new developer of java swing. i want to pack the GUI program. With the help of neatbeans, i get a file of java jar. But i want to ...

6. What is best practice (and implications) for packaging projects into JAR's?    stackoverflow.com

What is considered best practice deciding how to define the set of JAR's for a project (for example a Swing GUI)? There are many possible groupings:

  • JAR per layer (presentation, business, data)
  • JAR ...

  • 7. How to build your non-gui Java program into a console program    stackoverflow.com

    I dont know how to describe it well, but i will try. Ok, i want to be able to build my java program so that when it opens, it will look ...

    8. Encrypt jar executable internally in java swing application    stackoverflow.com

    How to encrypt jar executable internally made in java swing application? [It must be executable without decrypting it.]

    9. Packaging ejb3 swing client    stackoverflow.com

    I get the "java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFac tory" error while running my packaged ejb3 swing client jar. Here's the stack trace.

    G:\Courses\OSUMC\Installables\June 5\New>java -jar MetaDB-Client.jar
    javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interf
    aces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: o
    rg.jnp.interfaces.NamingContextFactory]
      ...





    10. How to view the source code from jar file in my own JAVA GUI?    stackoverflow.com

    I have one GUI with one list box to display the list of methods in the class. I can achieve it using reflection. But can I view the source code in anotehr text ...

    11. ISSUE java.lang.IllegalStateException: zip file closed    stackoverflow.com

    I have created a jar file which throws the below error, Its a simple swing app which inserts a row whn i press a button, not sure where I am going ...

    12. How can I route the output of a console .jar to another .jar appkication(GUI)?    stackoverflow.com

    I have my minecraft_server.jar file as my source. I want to run that and take the output of it to my .jar application. How?

    13. Jasper report working fine in netbeans but gives exception when deployed as jar application    stackoverflow.com

    I'm working on my final year project using java swings and jasper reports for reporting.The application including the reports work fine when I run the application in netbeans but when I ...

    14. What is Java code to download files from a http website(http://example.com/a.jar)?    stackoverflow.com

    I would need to download the files into an different directory that the application path.

    15. Creating Executable Jar with Maven includes Jgoodies GUI    stackoverflow.com

    Im developing a java program and im using jgoodies for its GUI. I was making executable jar from my project, before developing GUI. It was working from command line. But when ...

    16. interfacing with executable JAR to manipulate Swing GUI    stackoverflow.com

    I have a executable JAR which brings up a Swing GUI and, after some choices in select boxes and such and pressing an OK button, runs a process. I would like ...





    17. desktop GUI tool to browse and install new jars to the local maven repo    stackoverflow.com

    Title says it all. It would be even better if the same standalone tool can also support browsing repositories over other protocols than file system

    18. run jar file without swing libraries    stackoverflow.com

    I have program , I create the jar file, but then when I run the jar file nothing is display, is it because it is not an swing program? How should I ...

    19. Including a the JTattoo LAF in an Application    stackoverflow.com


    I am new to java and I searched the web(and JAVA Documantation) a lot, but I don´t get it:
    I want to integrate the JTatto LAF in my Application, but I just don´t ...

    20. Where is swing.jar in jdk1.6.0?    stackoverflow.com

    I read this tut http://www.iam.ubc.ca/guides/javatut99/uiswing/start/swingStart11.html but I can't find swing.jar in my jdk1.6.0 folder ?

    21. LookAndFeel Java Synthetica Problem in Eclipse    stackoverflow.com

    I'm developing an application in Eclipse and WindowBuilder. I tried to add a look and feel to GUI application. I used Synthetica BlueMoon Look and Feel . I added the Synthetica.jar to the class ...

    22. Create a GUI for .jar file, OutputStream not accepting input!    stackoverflow.com

    I usually start this one Java program with a .bat file on my computer. Calling it with a number of parameters, it looks something like this: java -Xincgc -jar program.jar arg0 I ...

    23. Relative path does not work when jar run through command line but works when run through Netbean    stackoverflow.com

    Hi I have added "Images" folder inside "src" folder in Java project. For setting top left image on title bar I am using image from Image folder. To do that I have written code ...

    24. How to create and modify jar files with an easy GUI tool?    stackoverflow.com

    for example we have a jar file that use two library and these library's paths placed in class path in manifest, and we want to add new library to it path. ...

    25. Jar file failing to execute with NullPointerException when it runs fine unpacked    stackoverflow.com

    I'm attempting to restructure a legacy application and reduce the steps needed to deploy. To do this, I'm packaging all the class files, and Resources into a jar file. I'm using this command ...

    26. JD-GUI How re recreate project linkages from decompiled JAR    stackoverflow.com

    I have a legacy .JAR file. I am able to decompile it with JD_GUI, but this gives me a set of class files. I am trying to follow code through but ...

    27. Add files in jar during runtime    stackoverflow.com

    Project is to create exe file. If we run exe file it will open one admin page (designed in Swing) that page contains browse button, max install, max install sys, ...

    28. JAVA swing application+executing jar    stackoverflow.com

    I'm a newbie to java programming. I downloaded netbeans (java EE) bundle in ubuntu and wrote a simple swing application which runs fine from with netbeans. I tried running it from ...

    29. Guice 3.0 - Which jars do I need for a Swing app with just Dependency Injection?    stackoverflow.com

    Although there is already an answer for which jars are needed for Guice 2.0, I haven't found anything for 3.0. I read somewhere that you needed:

    guice-3.0.jar
    aopalliance.jar
    javax.inject.jar
    
    Can anyone please confirm if this ...

    30. Debug SplashScreen from Eclipse without generating the Jar    stackoverflow.com

    I have search all over the web but could not find answer to this question: I need to debug the functioning of an application that changes the SplashScreen based on the module ...

    31. nimbus look and feel not appear after creating jar    stackoverflow.com

    nimbus look and feel not appear after creating jar when i run program in NetBeans at time Nimbus look & Feel work perfectly but when i create Jar and run Application ...

    32. Make a GUI to a .jar file    stackoverflow.com

    I would like to make a GUI for a .jar file in Xcode. I don't know much about coding, that's why I am asking. I have created this GUI1, but how ...

    33. Deploying SWING application - jar file not working    stackoverflow.com

    I want to deploy my SWING app as an executable file. I'm trying to export it as an executable jar file, but the file is not working on my own PC ...

    34. Force System Properties in a JAR    stackoverflow.com

    I currently had a problem similar to this previous question: Why would our Java app not display windows on secondary monitor? The answer was to include:

    • Dsun.java2d.d3d=false
    • Dsun.java2d.noddraw=true
    So I created my shortcut to launch ...

    35. My GUI jar archive    forums.netbeans.org

    Hello I'm new here and i have a problem with my jar application. I have ubuntu operation system. I run on my command line java -jar myjar.jar and my jar runs successfully. My jar run a GUI. When i close the GUI the jar don't stop. The program stop when i give ctr+z in command line. How can i stop the ...

    36. How to decrease the size of jar file    coderanch.com

    Hi, I have a program (For internet application)that uses swing components since the browser doesnt support swing i decided to use swing.jar.The initial size was 1.8MB i removed the unneccessary class files and the size came down to 1.61.By zipping it or compressing it the size is still 1.45Mb due to this the download time is high.There is no way that ...

    37. Swing JARS    coderanch.com

    38. Where is the Swing.jar file ?    coderanch.com

    39. swingall.jar    coderanch.com

    I have made a chat application using Swingall.jar for front end. I had to put swingall in archive attribute of applet tag, on the client side. This has resulted in very difficult dowload of client applet due to size of swingall.jar. 1) Is there anyway to reduce the size of swingall.jar or where shd i put my swingall.jar so that i ...

    40. JAR    coderanch.com

    41. Information on .jar files    coderanch.com

    42. swingall.jar    coderanch.com

    We are using swingall.jar for JDK 1.1 to run our application in IE. Now we are moving to JDK 1.3. Do I need to dowload the swingall.jar for the new version 1.3...? In the first place whether swingall.jar is available for JDK 1.3 version....? or what should I do....? Please help. Thanks Raghu

    44. My JAR is not working !    coderanch.com

    I have developed an application involving internal frames and database connection. The class files are kept in the root directory while the images required as icons are placed in the 'images' folder inside the root directory, and are accessed using the getResources () method. But when I created a jar file of the application, the application wouldn't procced ahead of the ...

    45. jar file    coderanch.com

    47. jar file problem    coderanch.com

    Hi, I've got the following structure: The workspace is bin (folder)and inside this folder I've got the editor (folder) package and images(folder where there are all the images for the buttons). Inside the editor package is the JTEdi.class, which is the class that has the main method and as well some other packages and more classes inside those packages. to create ...

    48. jar file probelm    coderanch.com

    Hi , I have problem with executing jar file . I have create swing application which is bundled in jar file. (execuable jar file). ( jar file contains class file , images and manifest file ) For ex. : My class name ShowImg which display images . (images from images folder) Toolkit kit = comp.getToolkit(); Image img = kit.createImage("./images/nature.jpg"); using following ...

    49. crating an executable jar file    coderanch.com

    50. Absolute/Relative path of jar file?    coderanch.com

    I came across this same exact problem in my apps. I wanted to be able to load the version from the manifest in the jar file. This meant I had to have access to the jar file to load hte manifest. What Nathan said will work, but only if the jar was launched from the directory the jar sits in. It ...

    52. Getting osgi.jar    coderanch.com

    Hi, I'm using Eclipse 3.0 standard installation. While writing my first piece of JFace code (a TableViewer client), I've discovered that I need osgi.jar which I don't seem to have in my eclipse/plugins directory. (It's supposed to be in eclipse/plugins/org.eclipse.osgi_/). Just wondering if somebody knows where I can get it from? Jay.

    53. JAR - SWING - based problem    coderanch.com

    Hi guys, I would appreciate very much if you could give me some clue to solve the following problem I have. I have built a JAR file that simply opens the JFrame window when clicked the JAR file. So far everything is ok (JAR file get correctly opened) but I am wondering how it could be possible to prevent (block) a ...

    54. Executable Jar File    coderanch.com

    You can add other jar files to your classpath by specifying them in the manifest file. If you add a line like Class-Path: jtds-1.1.jar to the manifest, you should not need to do anything else. You can even use relative paths, if the jar is in a different directory than the jar file carrying the manifest. It's also possible to add ...

    55. Application not running from jar    coderanch.com

    I have developed a small UI using Netbeans 5 Beta 2. Have 2 class files as: 1.Main.java : This files builds up my GUI 2.NewClass : Its sets the UI visible The problem is when I select Run Project from Netbeans the application executes smoothly, but when I double click on the generated jar file nothing happens.When I tried to execute ...

    56. symantec.itools jar    coderanch.com

    Dear Techies, I have a OLD Java Code that makes use of, import symantec.itools.util.Timer; import symantec.itools.awt.ImagePanel; Since, I am trying to compile it and I DONT have the respective JAR file for symantec I am getting the compilation error: package symantec.itools.util does not exist import symantec.itools.util.Timer; Can anybody please help me as to where to get this JAR which will compile ...

    57. jar is not functioning    coderanch.com

    59. for creating a JAR files....    coderanch.com

    60. excutable jar file error plz help    coderanch.com

    61. DLL in Swing JARs?    coderanch.com

    I am working on a swing application which uses some third party API. The API consists of some jars and some related DLLs. Usually, under such scenarios, we deploy the jars separately and add the Class-Path entry in the manifest which points to the dependent jar files. However in this case, since I also require DLLs can I need to add ...

    63. Creating jar in Netbeans 5.5    coderanch.com

    64. Unable to run pgm. when in jar....    coderanch.com

    Hi I am using 4 Jframes and correspondigly 4 java classes for them. The program runs fine. But when i package it in jar file while giving the manifest info with the mainclass; the first frames runs ok but when i press submit button what happens is i create the object of another class and this is where the program gets ...

    65. Not able to launch a JAR from another JAR    coderanch.com

    Hi, I have a swing application. On click of a button I am launching another JAR file. This works fine if I run the application from IDE (Netbeans 6.0). The application when I run from the application's JAR, it won't launch another JAR... It will hang. Is this because of classpath problem?? Even I created a env var: CLASSPATH and making ...

    66. Running jar versus within eclipse    coderanch.com

    67. options in jar files....    coderanch.com

    68. how to find out latest jar and install?    coderanch.com

    69. New SwingX jars    coderanch.com

    70. Swing + .jar    coderanch.com

    71. Unable to load lookAnd feel Jar for my java Swing Application Help Please    coderanch.com

    I have been Using a look and feel jar in my swing application to change the look and feel of my application . When i am using the jar with eclipse it is working fine , But as soon as i am creating a jar of the entire project and then running the project it is throwing an exception unable to ...

    72. Runnable jar is not including the files    coderanch.com

    what if you made the top level folder that contains the images be a "source folder" (even though it doesn' thave any code in it) right click folder, build path, use as source folder . For some reason anything that is a source folder, the contents get copied into the eclipse built classes folder, i use that to get .xml files ...

    73. Creating an Executable Jar File    coderanch.com

    74. about executable jar    coderanch.com

    75. ClassNotFoundException on main class in executable Jar file    coderanch.com

    I'm having a problem getting an application to run when packaged as an executable Jar file (java -jar MyJar.jar). The application needs to reference an external Jar file (javamail-1.4's mail.jar). When I include that Jar on the Class-Path attribute of the Manifext.mf file, then I get a ClassNotFoundException on my main class. Without the class-path entry, my main class is found ...

    76. How to edit text file in jar    coderanch.com

    You can certainly extract the file from the jar, but it really isn't practical to try to update the jar. To do that requires rebuilding the jar, which is going to be very inconvenient. Let's suppose that this file is the configuration file for your application, and you want to allow the user to modify the configuration. The way to do ...

    77. packaging up Swing application into Jar file for distribution    coderanch.com

    I am trying to package up my first swing application into a Jar file for distribution. I created it in NetBeans. From the dot prompt in the directory that has all of the class files I am typing: jar -cvmf manifest.txt app.jar *.class. My manifest.txt file has one line: "Main-Class: BeatBoxGui". It seems to package up fine and creates the app.jar ...

    78. [SOLVED] problem in building jar    java-forums.org

    hi all recently i started working with java. i have developed a desktop app using swings in NetBeans IDE. It has 5 classes, a text file and an image. It is working fine in the IDE. but when i create a jar and double click it or run it from console it is giving an error saying that FileNotFoundException. Actually, im ...

    79. Can we Add lib folder insdie Project JAR file ?    java-forums.org

    Hi Guys, While we are creating a build of swing application project with the help of IDE then IDE will create a .jar file and one lib folder contains all libraries. My point is that can we include the lib folder inside .jar file so it would be better to just make a single file instead of having two ...

    80. swing.jar    java-forums.org

    81. Problem in importing jar file in libraries of netbeans    java-forums.org

    I am using Netbeans IDE 6.8 for creating my project.I want to import jfreechart jar file in to my project, for that i right click on the libraries and click on the 'Add Library' and added the jar file.Now my problem is that i want to use classes of that jar file.so how can i use that classes. I used import ...

    82. Error after build to jar file.    java-forums.org

    I have a project working with COM port using comm.jar. It run correctly when i try run on Netbean, but when i build it to jar file, after that run jar file and error occured: Thanks ! --------------------- C:\Documents and Settings\Administrator>java -jar d:\controls\writecomm\dist\wri tecomm.jar Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at SourceCode.COM.writeData(COM.java:76) at SourceCode.Manipulations.SendToDevices(Manipulatio ns.java:57) at SourceCode.Main.BrowseActionPerformed(Main.java:14 8) at SourceCode.Main.access$000(Main.java:27) at SourceCode.Main$2.actionPerformed(Main.java:90) ...

    83. where is the swing jar?    java-forums.org

    84. JAR file creation    java-forums.org

    85. jar file very big    java-forums.org

    Hi initially when i started making changes to my project , the size of jar file was 2 mb not its 6 mb i m sure i ma dding unnecessary things please tell me does the import add modules to jar file. compared to my older jar file , i have seen following packages added.please give me some idea from where ...

    86. Help with error message when running JAR via HTML file    java-forums.org

    java.security.AccessControlException: access denied (java.io.FilePermission book0.jpg read) at java.security.AccessControlContext.checkPermission (Unknown Source) at java.security.AccessController.checkPermission(Unk nown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at sun.awt.SunToolkit.getImageFromHash(Unknown Source) at sun.awt.SunToolkit.getImage(Unknown Source) at javax.swing.ImageIcon.(Unknown Source) at javax.swing.ImageIcon.(Unknown Source) at BookMall.init(BookMall.java:63) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.io.FilePermission book0.jpg read) at java.security.AccessControlContext.checkPermission (Unknown Source) at java.security.AccessController.checkPermission(Unk nown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at ...

    87. Creating jar    java-forums.org

    HI All, I have developed a Application, But I Used the Notepad for Code not any IDE. Now I want to create Jar with the Database file and Images Files. How can i achieve this. Can Any Body write the Command Here for creating the jar with the Database file and Images Files.

    88. need help on jar files    java-forums.org

    hi 2 every1, i used notepad++ for my java coding nd it ws executing perfectly wid command prompt. i used jdbc in my coding. nw when i copy nd paste d same code in netbeans nd then click "build main project" which makes a .jar file fr my code, it ws nt executing properly, i mean that it could not connect ...

    89. How to embed a .chm file in Executable jar file    java-forums.org

    hi, I integrated a help file into to particular pacakage through IDE As Swings Application,and when executing the jar file following code identifies the particular .chm file at Runtime. public static List getClasseNamesInPackage(String jarName, String packageName) { ArrayList arrayList = new ArrayList (); packageName = packageName.replaceAll("\\." , "/"); if (getJar) System.out.println("Jar " + jarName + " for " + packageName); try{ ...

    91. Adding JARs on the fly in swing    java-forums.org

    92. Java webstart having problem with multiple jar files and resource files    java-forums.org

    Hi, I have created a jnlp file using NetBeans IDE, which has one main jar file and 7 reference jar files. I also need to send a few jpg files and text files which should be stored on the local hard drive after installation. Apart from this I also have a few language files (.properties files) which are for the application ...

    93. Setting themes from lookandfeel jar files    forums.oracle.com

    94. One .jar file for each GUI in one big project    forums.oracle.com

    Hi all, Please give me some ideas about my situation with creating jar file for different GUI class in one big project. My situation is: - I am using Netbean IDE 4.1 in order to build a super big project ( lets say it that way); - in this super big project, I have several classes and several GUIs, which share ...

    96. Open jar files through gui    forums.oracle.com

    By open i mean run it. The other program will do some calculation and make its own output. I just want my gui to make it so the program will run. I tried Runtime.exec. Runtime rt = Runtime.getRuntime(); Process p = rt.exec(filename); I tried this however nothing happens. It is in a try condition and when process p tries to execute ...

    97. App can not load a look and feel from an external jar    forums.oracle.com

    Include that jar in ur apps jar file . Don't do that. ("Nested" jar files don't work with out some extra effort. And if you want to reuse that lnf in other apps, or update it with newer versions that extra effort will be wasted.) Rather, find the jar file containing com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel (and verify that the class present) then include the ...

    98. How to invoke a JAR from Java Swing application?    forums.oracle.com

    First try: "cmd /c java -jar app.jar" or cmd start, because it can't jsut run java.exe, it needs to be passed to the cmd interpretor witch further calls java.exe, etc Also read what stevejluke suggested. Its important to know if .waitFor or not. You wont understand these until you read the tutorial.

    99. Swing and Jar    forums.oracle.com

    It could be that an exception is being caught and ignored in your code. One common problem that arises when you move from running your code in the IDE versus as a deployed JAR is that you code is using some third party jars you haven't copied. Take a look at what you import in your code. Anything not in the ...

    100. Jar and Look and Feel    forums.oracle.com

    Hi, When I launch my application and set 3D L&F, this Look and Feel is set across application but when I try to click on combobox the followg exception is thrown ... JRE Version is : 1.6.0 Jar uses for Look & feel : 3DLF.jar Can anyone let me know the problem ? exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at swing.addon.plaf.threeD.ThreeDBorders$ScrollPaneViewportBorder.getBorderInsets(ThreeDBorders.java:277) at ...