Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VM can't recognize classpath when used with -Xrun

 
Won Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have following errors keep preventing the agent file from running.
The path is right and prog.dll is right under the specified path.
Why is VM not recognizing the path??

C:\>java -Xrunprog -classpath C:\prog\bin\windows
Error occurred during initialization of VM
Could not find -Xrun library: prog.dll
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Don't know what "-Xrunprog" does; do you mean "-Xrunprof"?

But in any case, the -classpath never refers to DLL files; it can refer to jar files, or to directories. You need to have a closer look at whatever documentation you got this "-Xrunprog" from, and see if you've read it correctly.
 
Won Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isn't it that the classpath is only referring to the directory? I just want it go into the directory specified by the classpath and then VM finds out the prog.dll file which is in that dir.

If it is so, how do you think I can run prog.dll with -Xrunprog and absolute classpath?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic