| Author |
jar files in vista business
|
terry oliver
Greenhorn
Joined: Jan 04, 2008
Posts: 22
|
|
hi I am presentely using vista business os and the latest jcreator but when trying to make a jar file i get this error message "java.io.FileNotFoundException: classes (Access is denied)" my former machine was xp pro and jar files worked perfectely why am I having problems now setup similar to the other machine thanks a bunch olly
|
 |
terry oliver
Greenhorn
Joined: Jan 04, 2008
Posts: 22
|
|
i forgot to add the errors i am getting java.io.FileNotFoundException: classes (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.tools.jar.Main.run(Main.java:131) at sun.tools.jar.Main.main(Main.java:1022) Process completed. thanks olly
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19214
|
|
|
My first guess is that the folder you want to store the JAR file in is protected, and Vista's User Access Control is preventing your Java code from writing to it.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
terry oliver
Greenhorn
Joined: Jan 04, 2008
Posts: 22
|
|
thanks Rob without compromizing my security how would you proceed thanks olly
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19214
|
|
|
I don't think you can do this without giving up some form of security. You'll either have to disable UAC (which I wouldn't do just for this), or make the folder writable for everyone so that UAC does not need to intervene.
|
 |
 |
|
|
subject: jar files in vista business
|
|
|