scratch-file

Android Studio could not find or load main class of “Scratch” file

偶尔善良 提交于 2019-12-21 07:14:03
问题 Update : Below problem is remained until Android Studio 3.4.2 . I use Android Studio 3.3 and created a scratch file ( File > new > Scratch File > Java ). The IDE created scratch.java in ~/.AndroidStudio3.3/config/scratches : class Scratch { public static void main(String[] args) { } } But when I run that scratch file ( by pressing green button near to the class name or main method), I get this error: Error: Could not find or load main class Scratch I think that IDE does not make Scratch.class

How do I run the code from a scratch file in IntelliJ 14?

旧城冷巷雨未停 提交于 2019-12-05 18:19:52
问题 I've created a simple Java scratch file containing a class named " TestGenerics " containing some code and a main method. The code seems to be fine, however when I try to run it (by right clicking > Run 'TestGenerics.main()', I get this error: "Module not specified" Similar situation occurs with a scratch file containing Lua code, error message: ' Error running scratch.1 (2): Executable is not specified ' Any ideas? 回答1: This was previously not possible, but is now supported for some

How do I run the code from a scratch file in IntelliJ 14?

余生长醉 提交于 2019-12-04 02:54:15
I've created a simple Java scratch file containing a class named " TestGenerics " containing some code and a main method. The code seems to be fine, however when I try to run it (by right clicking > Run 'TestGenerics.main()', I get this error: "Module not specified" Similar situation occurs with a scratch file containing Lua code, error message: ' Error running scratch.1 (2): Executable is not specified ' Any ideas? Meo This was previously not possible, but is now supported for some languages. such as Java and Ruby . For these languages, you should be able to run the scratch file in the same

Android Studio could not find or load main class of “Scratch” file

孤人 提交于 2019-12-04 01:38:16
Update : Below problem is remained until Android Studio 3.4.2 . I use Android Studio 3.3 and created a scratch file ( File > new > Scratch File > Java ). The IDE created scratch.java in ~/.AndroidStudio3.3/config/scratches : class Scratch { public static void main(String[] args) { } } But when I run that scratch file ( by pressing green button near to the class name or main method), I get this error: Error: Could not find or load main class Scratch I think that IDE does not make Scratch.class and so Java cannot find it. Is there a way for solving this problem and running scratch files from IDE