Skip to main content

FileNotFoundException on sunrsasign.jar, expected in java-6-openjdk/jre/lib

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
JPP34
Offline
Joined: 2012-02-23

Hi,

first, a bit of context: I am developping a new project, which I compile with open-jdk 1.6. In this project, I'm using bits of code from a former project, which, if I recall properly, was compiled with java 1.5 (btw, is there a way to check which version of java some given bytecode was created with?).

When executing part of the old code, I get a FileNotFoundException, thrown on trying to get the file .../java-6-openjdk/jre/lib/sunrsasign.jar (according to the debugger). After checking out the directory, this jar file is indeed missing.

What triggers the error in my own code is a call to java.util.ResourceBundle.getBundle(myResourceName) [I get myResourceName from a message.properties file].

Does it make any sense?

I've been trying to google the problem, but haven't found anything helpful so far.

Any suggestions?

Thanks for your help.

Regards,

JP