Re: [Geany-Users] Newbie Question
El 22/02/13 00:27, Bill Piazzetta escribió: Hello there! Trying to get a java program to work, typed everything correctly, click on compile, click on run, program doesn't run. Gives back an error message in the console that it can't find the class, or the file... Kinda think I must be missing something here because when I do the same thing with NetBeans if the code is OK it just runs... Am I missing some plugin or configuration...? -- Bill Piazzetta +55 21 8118-3742 billpiazze...@gmail.com mailto:billpiazze...@gmail.com Hi, I've found that if - as you should - you use a package other than the default one for your Java classes, you need to modify the run command on a project-by-project (even a file-by-file) basis. The link below shows the Build properties for one of the files I've been playing with: http://dl.dropbox.com/u/52685983/geany-propiedades-del-proyecto.png You will also see that the build command is altered to use 'javac -d . filename'. This will create the necessary directories if they don't already exist and put the .class file in the correct one when the file is built. This can be the same for all projects. (You also have to make special arrangements to run Applets, but I don't show that as it's off-topic and covered elsewhere if you Google for it) I'm a newbie too, so there may be better solutions. I read all the docs, but couldn't find anything better that worked. Which might reflect more on my understanding than on what is available. Hope this helps. Peter -- *Peter Bradley* peredur.net http://www.peredur.net ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Newbie Question
El 22/02/13 11:42, Lex Trotman escribió: Modifying them on a project by project basis is fine, just use the project-properties-build tab which provides the same dialog as the build-set build commands, but stores the result in the project file so it only applies when the project is open. Cheers Lex Thanks Lex. That's good to know. I hadn't spotted the distinction. The re-use of the same dialog had me fooled. Hopefully, it will help Bill, too. Cheers Peter -- *Peter Bradley* peredur.net http://www.peredur.net ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Newbie Question
On 22 February 2013 22:52, Peredur pere...@peredur.net wrote: El 22/02/13 11:42, Lex Trotman escribió: Modifying them on a project by project basis is fine, just use the project-properties-build tab which provides the same dialog as the build-set build commands, but stores the result in the project file so it only applies when the project is open. Cheers Lex Thanks Lex. That's good to know. I hadn't spotted the distinction. The re-use of the same dialog had me fooled. Hopefully, it will help Bill, too. I would recommend reading the manual and the follow up wiki link Matthew posted to understand the possibilities of the build system. Its simple once you know, but without the background it can be confusing when you start modifying both project and the non-project settings. Cheers Lex Cheers Peter -- Peter Bradley peredur.net ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users