filenotfoundexception

Java applet can't open files under Safari 7 (Mac OS X 10.9)

萝らか妹 提交于 2019-11-28 16:49:01
We have a web app that uses Java applet to manipulate files on local disk. We develop it for quite a while and we already know all types with issues an applet may have with modern OS'es and browsers and latest Java versions and new security restrictions. Yesterday Apple rolled out its new Mac OS 10.9 Mavericks with new Safari browser (7.0). I tested our web app under Safari 7 / Mac OS X 10.9 just to find that Safari 7 (probably?) blocks access to local files from Java applet. Although the applet (signed with valid Thawte certificate, and with all security requirements specific to Java 7u45

FileNotFoundException when loading dll

≡放荡痞女 提交于 2019-11-28 14:20:39
When I try to execute my program I receive FileNotFoundException, howerver dll exist in the same folder. How is that possible and how to fix the problem? Output below translated from localized messages of Russian Windows Server 2008 R2 Foundation: C:\Oleg\bin\fast>FAST.exe Exception: System.IO.FileNotFoundException: Can't load "QuickFASTDotNet.dll" or dependent component. Can't find this file. in FAST.FAST..ctor() in FAST.Program.Main(String[] args) in C:\Oleg\fast\FAST\FAST\ Program.cs:line 474 C:\Oleg\bin\fast>dir QuickFASTDotNet.dll 16.02.2012 16:45 117 760 QuickFASTDotNet.dll The same

unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown

我怕爱的太早我们不能终老 提交于 2019-11-28 14:06:21
I am creating a class -- just a class, no main() and I am receiving the error of "unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown" at this line: FileOutputStream outStr = new FileOutputStream(FILE, true); I don't understand; I put in a try{} catch{} block and it's still reporting the error. Additionally, it's also reporting an "illegal start of type" for the try and both catch lines, and it's also saying that ';' is expected for both catch lines. I'm using the NetBean IDE, FYI. Thank you for any help. Here is the full code: import java.io

Xamarin build error Exception while loading assemblies: System.IO.FileNotFoundException

≯℡__Kan透↙ 提交于 2019-11-28 13:31:14
always i try to Build my Xamarin app i get this error. And i dont know why. I use the System.Security.dll of .Net Framework 4 and i though this should work. Thanks. C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? Dateiname: 'System.Security.dll' bei Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve

Android FileNotFound Exception - Cannot getInputStream from image URL that does not have file format

蓝咒 提交于 2019-11-28 12:44:00
The title is pretty self explanatory. the following code...: URL imageUrl = new URL(url); try { HttpURLConnection conn= (HttpURLConnection)imageUrl.openConnection(); conn.setDoInput(true); conn.connect(); int length = conn.getContentLength(); InputStream is = conn.getInputStream(); return BitmapFactory.decodeStream(is); } catch (IOException e) { e.printStackTrace(); } Will fail if the url does not contain the file format. For example, some images hosted by google will display the image yet not have the file format (.png, .jpg, etc) as part of the url. As a result, the content-type header of

Why do I keep getting the “must be caught or declared to be thrown” error? [closed]

天涯浪子 提交于 2019-11-28 12:41:29
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . Here is my code import java.io.*; import java.util.*; import java.util.Scanner; import java.io.PrintWriter; public class EncryptionDecryption { public

Managing assets between desktop and device version in libgdx

只愿长相守 提交于 2019-11-28 12:06:44
I'm building a little Android game using libgdx. For now I have a copy of the game's assets in the desktop project folder and the Android project folder. For some strange reason I have to access those files differently in each of the two versions. This works fine in the desktop app but gives me a FileNotFound exception in the android app: Texture texture = new Texture(Gdx.files.internal("assets/someImage.png")); If I remove the "assets" from the filename it's the other way round (Android works, desktop crashes): Texture texture = new Texture(Gdx.files.internal("someImage.png")); I'm not sure

FileNotFoundException, the file exists Java [closed]

眉间皱痕 提交于 2019-11-28 09:56:23
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I have a very strange issue, I'm trying to play some MP3s with some Java code and JLayer. I have a method setup to generate the file path, but it's

xml FileNotFoundException using slick2D library in java

限于喜欢 提交于 2019-11-28 09:56:09
问题 private ConfigurableEmitter emitter; File xmlFile = new File("ressources/emitter.xml"); emitter = ParticleIO.loadEmitter(xmlFile); If I launch the project in eclipse, everything will works fine, but after I export my project and use JarSplice to create a .jar file, when I launch the jar file using the command prompt, the program will crash launching a FileNotFoundException, saying it cannot find the path specified. java.io.FileNotFoundException: ressources\emitter.xml (The system cannot find

getting file not found exception

六月ゝ 毕业季﹏ 提交于 2019-11-28 08:30:41
问题 I have my android activity : try { File root=Environment.getExternalStorageDirectory(); Log.i("root",root.toString()); File dir=new File(root.getAbsolutePath() + "/downloads"); dir.mkdirs(); file=new File(dir,"mytext.txt"); FileOutputStream out=new FileOutputStream(file,true); PrintWriter pw=new PrintWriter(out); pw.println("Hello! Welcome"); pw.println("You are Here...!!!"); pw.flush(); pw.close(); try { out.close(); } catch (IOException e) { // TODO Auto-generated catch block e