This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes jar files in vista business Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar files in vista business" Watch "jar files in vista business" New topic
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: 20077
    
  30

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 - OCEEJBD 6 - OCEJPAD 6
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: 20077
    
  30

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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: jar files in vista business
 
It's not a secret anymore!