Menu

#184 Setting -Djava.library.path=

open
5
2008-03-21
2008-03-20
Anonymous
No

Hi,

To run a jmonkey program, the following line is used from a command window:

java -Djava.library.path="C:\projects\jme\lib" HelloWorld

The following error generated when used in the interactions window:

> java -Djava.library.path="C:\projects\jme\lib" HelloWorld
Error: Bad left expression in assignment

I tried adding the following to .drjava:

jvm.args = -Djava.library.path=c:\\projects\\jme\\lib

but received a runtime error:

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

Any help would be greatly appreciated

Ken

Discussion

  • Dan Smith

    Dan Smith - 2008-03-21
    • assigned_to: nobody --> dlsmith
     
  • Dan Smith

    Dan Smith - 2008-03-21

    Logged In: YES
    user_id=1060117
    Originator: NO

    "java foo.Class" in the Interactions pane is not a command-line invocation. It's just a shortcut for invoking "foo.Class.main()". Hence the error you get when trying to use command-line options.

    To change the arguments used to run the Interactions pane, got to "Edit -> Preferences -> Miscellaneous" and put your arguments in the "JVM Args for Interactions JVM" field.

    We don't have much experience dealing with native code and the "java.library.path" setting. So I think the above will solve your problem, but please let us know how it goes.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.