File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar files in vista business

 
terry oliver
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
terry oliver
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Rob without compromizing my security how would you proceed

thanks
olly
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic