Source on Github
3D-Ball
Continue reading Computer graphics
Category: IT
Resource file not found
[code language=”java”]
File file = new File(getClass().getResource("resourceFile.txt").getFile());
[/code]
but the file doesn’t exist.
It turned out the problem was due to spaces in my path
I found two solutions:
[code language=”java”]
org.apache.commons.io.FileUtils.toFile(myClass().getResource("resourceFile.txt"));
[/code]
[code language=”java”]
myClass().getResource("resourceFile.txt").toURI();
[/code]
Joshua Bloch – Effective Java
Create and destroy object
Рассмотрите возможность замены конструкторов
статическими методами генерации.
Свойство синглтона oбеспечивайте закрытым конструктором
Отсутствие экземпляров обеспечивает закрытый конструктор
How to build a branch of git repository on remote server
How to execute a bat file on IIS or Apache web-server
How to execute a bat file on IIS or Apache web-server
Continue reading How to execute a bat file on IIS or Apache web-server