• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating java file

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello!
i'm write an application and the main class in the "gui" package. i i run the app. in command line like this :"java gui.Appl" it run, then i create a jar file, and in Manifest file i already declare like this :"Main-Class: gui.Appl" to run the jar in command line i type like this : "javaw gui.Appl" it run. but i can't run the App. when i click on the jar file in window explore. how i can do this?
thank you!
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens when you double-click on the JAR file? What happens when you try to run the JAR file from a command line using javaw -jar MyJar.jar ?
 
Hiep Nguyen
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i try to run in command line it say that can not find the class java.util.ZipFilereader, anh when run con windown no happen but i think it has the same error
 
Hiep Nguyen
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it has the error :
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greg xin chao Hiep! Trying to be as tactful as possible, I bet your problem has something to do with a typographical error. If you'd like to send me your jar file, I'll look at it for you. Hiep oi, Hiep dang o VN khong? Greg chi hoi vi muon biet thoi.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I hope this is a classpath problem, the jar package is available in <JAVA_HOME>\jre\lib\rt.jar and please ensure that this is available in the class path.
Hope this helps
[ March 05, 2003: Message edited by: Vijayakumar Arya ]
 
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic