This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes jar an application using comm api Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "jar an application using comm api " Watch "jar an application using comm api " New topic
Author

jar an application using comm api

prat chan
Greenhorn

Joined: Mar 25, 2005
Posts: 7
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......
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
Put the jar of "comm api" in your classpath before running your application.
prat chan
Greenhorn

Joined: Mar 25, 2005
Posts: 7
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
Bonagiri UmaMaheshwar Rao
Greenhorn

Joined: Mar 27, 2005
Posts: 12
put your comm.jar file in java_home\jre\lib\ext directory. It should solve your problem.
prat chan
Greenhorn

Joined: Mar 25, 2005
Posts: 7
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jar an application using comm api
 
Similar Threads
comm api
Help with jar files
problem with jar
Use jar file to run console based program
Creating an executable jar for a complex Java project