Java in Geany - Fully Qualified Classname

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mildly_odd
Level 2
Level 2
Posts: 94
Joined: Sun Nov 13, 2016 8:40 am

Java in Geany - Fully Qualified Classname

Post by Mildly_odd »

Hi
The headline is that I don't know how to get Geany to automatically pick up the fully qualified classname from the project that I'm working on in order to run the project. I've installed Geany and am trying to import some java applications I had previously written elsewhere (Windows + Eclipse, though I've only imported the java files, not attempting to import projects).

So far I've worked out how to get javac up and running so that it finds source files and leaves classfiles in the structure below:

Code: Select all

/home/me/Documents/Java/Source/ProjectA
/home/me/Documents/Java/Source/Utilities/etc/etc
/home/me/Documents/Java/Classes/....
The problem
I know the java command is supposed to use the Fully Qualified Classname, e.g.

Code: Select all

java com.example.ProjectA
I'm getting the error:

Code: Select all

Error: Could not find or load main class
Attached below is a screenshot of the "Set Build Command" screen in Geany. Clearly I can see that it doesn't have the right form of classname in it. Obviously I want it to pick this up automatically from the project. How do I do this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Software & Applications”