Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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

jar an application using comm api

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have developed an program using comm api ...... i created a jar file of the same..... the jar file runs fine when i use the command java -jar filename....... however when i execute the jar by double clicking on it the application runs fine until the class that uses the comm api is encountered..... the jar is executable and works fine but does not recognise the class using comm api ...... help......
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Put the jar of "comm api" in your classpath before running your application.
 
prat chan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did that using the class-path variable in manifest file........... however the comm api requires certain files to be placed at specific location .......... the executable file does not recognise the comm.jar....... the jar works fine when run with the java -jar jarname command at the prompt........... plz help
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
put your comm.jar file in java_home\jre\lib\ext directory. It should solve your problem.
 
prat chan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply
i have already placed the 3 files of the comm api in folders asspecified in the release notes.........

the comm.jar is in <jdk>\jre\lib\ext
win32com.dll in <jdk>\jre\bin
and javax.comm.properties sheet in <jdk.\jre\lib

the jar works perfectly well when i type java - jar jarname command at the command propmt so the jvm recognises the api

however the jar does not recognise the api......... teh jar is selfexecutable and runs fine untill the object of the class which uses comm api is encountered

thanks
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without 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