Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Program run in Netbeans but NOT running as jar file

807580Mar 25 2010 — edited Mar 25 2010
Dear all ,
i hope any help in this problem.

i am writing program to access parallel port i put next files :

1. [ comm.jar + javax.comm.properties ] in
[ C:\Program Files\Java\jdk1.6.0_18\lib ] and [ C:\Program Files\Java\jdk1.6.0_18\jre\lib ]
2. [ win32com.dll ] in [ C:\WINDOWS\system32 ]


when i run application in NetBeans IDE 6.8 work fine and every think is ok

BUT when i produce jar file , generated jar file does not work [GUI appear but can not get ports on PC]

- I try to set Environment Variable as next :
CLASSPATH = .;C:\Program Files\Java\jdk1.6.0_18\lib\comm.jar

also does not work

any tip please ?

Thanks in advance
Nabil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2010
Added on Mar 25 2010
1 comment
220 views