Java and GAMS

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
Dewan
User
User
Posts: 2
Joined: 9 months ago

Java and GAMS

Post by Dewan » 9 months ago

Hi All,
I am trying to use Eclipse Java api of GAMS. After following all the steps in https://www.gams.com/latest/docs/API_JA ... SE_PROJECT , I am getting following error while running example problem transport1.

Code: Select all

Exception in thread "main" com.gams.api.GAMSException: GAMS system directory is both not specified and not found from your environment!
	at com.gams.api.GAMSWorkspace.verifySystemDirectory(GAMSWorkspace.java:570)
	at com.gams.api.GAMSWorkspace.initializeAttributes(GAMSWorkspace.java:337)
	at com.gams.api.GAMSWorkspace.<init>(GAMSWorkspace.java:319)
	at com.gams.api.GAMSWorkspace.<init>(GAMSWorkspace.java:175)
	at com.gams.examples.transport.Transport1.main(Transport1.java:35)
Can anyone please give an idea, that, how can I solve it?

Thanks.

Jeed
User
User
Posts: 1
Joined: 9 months ago

Re: Java and GAMS

Post by Jeed » 9 months ago

Dewan,

Depending on which gams version you are using, you might need to set up your system environment variable before running Eclipse and GAMS Java API. (See
https://www.gams.com/latest/docs/API_JA ... A_SETUPENV).

Hope this helps,
Jeed

Post Reply