• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to launch the application

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • 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 ??
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using winxp professional and SDK 1.4.0
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!