• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

unable to launch the application

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers.
I want to use the jgoodies l&f inside my jar (my executable jar file).
inside the main class I wrote :
UIManager.put("ClassLoader", MainManager.class.getClassLoader( ));
try {
UIManager.setLookAndFeel("com.jgoodies.plaf.plastic.PlasticXPLookAndFeel");
}
now, I have the following tree inside my jar :
META-INF\
images\*.gif
com\*.class
plastic.jar // jgoodies jar
forms.jar // jgoodies jar
when writing :
java -jar MyApp.jar it works fine and every thing is ok (the application is uses the jgoodies l&F) but when double clicking on the jar, it doesn't launch.
(I have set the main class attribute inside the manifest file).
so, any ideas , any help please ??
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it works with java -jar it should also work by double-clicking on it. What OS & version of Java are you using?

I'm using Win2K, and my JAR files are associated with some command like this -


I was able to find this by going into explorer, tools menu, folder options, file types tab, select JAR, press 'Advanced' button, select 'open', press 'Edit' button.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using winxp professional and SDK 1.4.0
 
Did you just should on me? You should read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic