[gme-users] Create model programmatically

Kevin Smyth ksmyth at isis.vanderbilt.edu
Wed Jan 19 10:15:21 CST 2011


gme.jar uses jaut.dll through JNI. You need to tell Java where to find
jaut.dll.

 

Here's how to do it on the command line:

java -cp "%GME_ROOT%\sdk\java\gme.jar";.
-Djava.library.path="%GME_ROOT%\bin" Main

 

Here's how to do it in Eclipse:

Project>Properties>Java Build Path> Libraries Tab>Add External
JARs...>Browse to gme.jar

Expand the gme.jar tree node, select Native library location, Edit....
Browse to jaut.dll (typically in c:\Program Files\GME\bin)

 

Kevin

 

From: Arun Prakash [mailto:arun.prakash at gmail.com] 
Sent: Wednesday, January 19, 2011 10:03 AM
To: gme-users
Cc: Kevin Smyth
Subject: Re: [gme-users] Create model programmatically

 

Hi Kevin,

I am trying to do something similar to what Lusiana is also trying. I tried
your suggestion and i got the following error.

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jaut in
java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.isis.jaut.Apartment.<clinit>(Apartment.java:314)
    at
org.isis.gme.mga.TestMgaLayer1.createProjectTest(TestMgaLayer1.java:79)
    at org.isis.gme.mga.TestMgaLayer1.main(TestMgaLayer1.java:109)


I checked the source, and found that it occurs at 

    /**
     * Load the "jaut" library.
     */
    static
    {
        System.loadLibrary("jaut");
    }

in the Apartment.java class. 


Could you kindly help me resolve this.

Regards
Arun



On Fri, Dec 10, 2010 at 5:37 PM, Kevin Smyth <ksmyth at isis.vanderbilt.edu>
wrote:

Hi Lusiana,

 

GME Java examples are included in gme.jar. Have a look at
org.isis.gme.mga.TestMgaLayer1. If it does not run, please reply with the
stack trace.

 

Have fun,

Kevin

 

P.S.

The address to post to the mailing list is gme-users at isis.vanderbilt.edu.
gme-users-request at isis.vanderbilt.edu is for list administration.

 

 

 

From: Lucy_efrizoni [mailto:lusi_dl at yahoo.co.id] 
Sent: Friday, December 10, 2010 12:47 AM
To: Kevin Smyth
Cc: montelalu at yahoo.co.id
Subject: Create model programmatically

 

Dear Kevin, I have sent an email below to gme-users, but I have got no
response yet. 

 

I read ebook pdf for MGE and found how to create model programmatically. I
have tried it but always failed. Please advise.. is there any setting that I
must do so that my java script to create model can be run well. For my quick
instance learn, I am very please if you would like to share a simple example
code even java script to create "Hello Word".


 Thank you for your help.

 

Lusiana Efrizoni 

*	Software Engineering Department
Faculty of Computer Science and Information Systems
Universiti Teknologi Malaysia
81300 UTM Skudai Johor, Malaysia (Phone: +60167825101)
*	STMIK-AMIK Riau  Pekanbaru
Jl. Purwodadi Indah Km. 10 Panam Pekanbaru
Riau - Indonesia (Phone: +628127516817)

 

 

----- Forwarded Message ----
From: Lucy_efrizoni <lusi_dl at yahoo.co.id>
To: gme-users-request at list.isis.vanderbilt.edu
Cc: montelalu at yahoo.co.id
Sent: Tue, December 7, 2010 4:49:37 PM
Subject: help





	


Dear GME Users,

please, would any one of GME user list can help me to solve my current
problem.

 

In GME I have a class diagram in which the class diagram consist of class
name, set of properties (attribute, association etc) and operations of a
class. The problem is how to create a class diagram and how to make a
relationship between existing classes through java scrips/coding.

 

When GME toolkit is installed, there have been 3 PDF files including MGA
library. Yet, in MGA library I have not found sample coding using java,
please advise how to use MGA library and step by step setting properly

 

Thank you and looking forward to hear from you all.

 

Lusiana Efrizoni 

*	Software Engineering Department
Faculty of Computer Science and Information Systems
Universiti Teknologi Malaysia
81300 UTM Skudai Johor, Malaysia (Phone: +60167825101)
*	STMIK-AMIK Riau  Pekanbaru
Jl. Purwodadi Indah Km. 10 Panam Pekanbaru
Riau - Indonesia (Phone: +628127516817)

	
	

 

 


_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20110119/c0a94263/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 9536 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20110119/c0a94263/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4934 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20110119/c0a94263/attachment.bin 


More information about the gme-users mailing list