yozefx / gtge

Automatically exported from code.google.com/p/gtge
0 stars 0 forks source link

BaseIO Error reading Files... #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
com.golden.gamedev.engine.BaseIO.class

public URL getURL(String path, int mode) {
...
case WORKING_DIRECTORY:
                    File f = new File(path);
                    if (f.exists()) {
                        url = f.toURL(); //error
                    }
                    break;
...

}

public InputStream getStream(String path, int mode) {
....
case WORKING_DIRECTORY:
                    stream = new File(path).toURL().openStream(); //error
                    break;
....
}

f.toURL(); and 
File(path).toURL().openStream(); depricated in jre 7 and up 

get error in Fedora 16

need to use f.toURI().toURL(); and File(path.)toURI().toURL().openStream();

and there window of size 0 x 0 pixel...

and there is no applet support in fedora 16, should have extended JFrame

Original issue reported on code.google.com by sumitran...@gmail.com on 3 Jan 2013 at 3:32