This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes jar files in vista business Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jar files in vista business
 
Similar Threads
Main class not found
How to generate jar using NetBeans
tomcat on vista
Jini2.1 installation problem in Windows Vista
how to install tomcat 5.5 in windows vista