Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] Running Protégé from a Windows Command Line

O'Neill, Dennis doneill at marathonoil.com
Fri Feb 15 06:31:05 PST 2008


Thomas,

I was able to run the application as you suggested. Apparently you have to use a capital "M" to get the proper effect. I.e.., -Xmx500m does not work under windows, you have to use -Xmx500M.

Thanks very much,

Dennis M. O'Neill
SAIC
Room 2848B
doneill at marathonoil.com
(281) 236-5690

-----Original Message-----
From: protege-discussion-bounces at mailman.stanford.edu [mailto:protege-discussion-bounces at mailman.stanford.edu] On Behalf Of Thomas Russ
Sent: Thursday, February 14, 2008 12:48 PM
To: User support for Core Protege and the Protege-Frames editor
Subject: Re: [protege-discussion] Running Protégé from a Windows Command Line


On Feb 14, 2008, at 10:07 AM, O'Neill, Dennis wrote:

> Still not there:
>
> M:\My Documents\ECRM\GeoNames>java -classpath  
> protege.jar;looks-2.1.3.jar;unicode_panel.jar -Xmx500m  
> edu.stanford.smi.protege.Application
> Exception in thread "main" java.lang.NoClassDefFoundError: edu/ 
> stanford/smi/protege/Application

That's because you are not in the same directory as you were before.   
The classpath as given below was based on you still being in the  
Protege installation directory, instead of somewhere completely  
differently.

You either need to start this from the protege installation directory  
(recommended), or else you will have to properly qualify the pathnames  
to the jar files as well as setting the protege.dir system property.




> Dennis M. O'Neill
> SAIC
> Room 2848B
> doneill at marathonoil.com
> (281) 236-5690
>
> -----Original Message-----
> From: protege-discussion-bounces at mailman.stanford.edu [mailto:protege-discussion-bounces at mailman.stanford.edu 
> ] On Behalf Of Thomas Russ
> Sent: Thursday, February 14, 2008 10:30 AM
> To: User support for Core Protege and the Protege-Frames editor
> Subject: Re: [protege-discussion] Running Protégé from a Windows  
> Command Line
>
>
> On Feb 14, 2008, at 7:03 AM, O'Neill, Dennis wrote:
>
>> I am trying to run Protégé from the command line under Windows XP so
>> that I can specify a larger heap size; but I am having a problem. If
>> I try either of the forms documented in the FAQ (http://protege.stanford.edu/doc/faq.html#02.03
>> ), I get the following error message:
>>
>> C:\Program Files\Protege_3.4_beta>java -jar protege.jar -Xmx500M
>> Exception in thread "main" java.lang.NoClassDefFoundError: com/
>> jgoodies/looks/plastic/PlasticTheme
>>        at edu.stanford.smi.protege.Application.main(Unknown Source)
>>
>> I can run protégé.exe just fine from the protégé directory, but
>> there doesn't seem to be any way to pass Java VM params from that
>> command line.
>>
>> There are other reasons why I cannot just make the desired change in
>> the Protege.lax file, so that method will not work.
>>
>> Any help would be appreciated.
>>
>
> You can't execute protege using the "-jar" flag, because the
> protege.jar is not complete.
>
> Instead, you will need to include more jar files on the classpath and
> then specify the startup class directly.
>
> At a minimum, you will need all of the jar files in the Protege
> directory on the path.
>
> Try
>    java -classpath protege.jar:looks-2.1.3.jar:unicode_panel.jar -
> Xmx500m edu.stanford.smi.protege.Application
>
> Actually, since you seem to be running windows, I think you will need
> to use the semi-colon version instead:
>
>    java -classpath protege.jar;looks-2.1.3.jar;unicode_panel.jar -
> Xmx500m edu.stanford.smi.protege.Application
>
>> Thanks,
>>
>> Dennis M. O'Neill
>> SAIC
>> Room 2848B
>> doneill at marathonoil.com
>> (281) 236-5690
>>
>> _______________________________________________
>> protege-discussion mailing list
>> protege-discussion at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>>
>> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

_______________________________________________
protege-discussion mailing list
protege-discussion at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 



More information about the protege-discussion mailing list